Polynomial regression: Difference between revisions

m
→‎{{header|Perl}}: missing newline (was outputting "const 1.000X 2.000X**2 3.000")
(→‎{{header|Perl}}: added PDL version)
m (→‎{{header|Perl}}: missing newline (was outputting "const 1.000X 2.000X**2 3.000"))
Line 1,317:
my @coeff = $reg->theta();
 
printf "%-6s %8.3f\n", $model[$_], $coeff[$_] for 0..@model-1;</lang>
{{output}}
<pre>const 1.000
Anonymous user