Anonymous user
Polynomial regression: Difference between revisions
Emacs Lisp: Fix formatting, avoid use of format
No edit summary |
(Emacs Lisp: Fix formatting, avoid use of format) |
||
Line 746:
=={{header|Emacs Lisp}}==
<libheader|Calc>
▲(setq x '[0 1 2 3 4 5 6 7 8 9 10])
▲(setq y '[1 6 17 34 57 86 121 162 209 262 321])
▲ (format "fit(a*x^2+b*x+c,[x],[a,b,c],[%s %s])" x y))
{{out}}
"3. x^2 + 1.99999999996 x + 1.00000000006"
=={{header|Fortran}}==
|