Difference between revisions of "FitPoly Command"
From GeoGebra Manual
Line 11: | Line 11: | ||
:Calculates the regression polynomial of degree ''n''. | :Calculates the regression polynomial of degree ''n''. | ||
:{{example| 1=<div><code><nowiki>FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]</nowiki></code> gives ''x<sup>3</sup> - x<sup>2</sup> + 1''.</div>}} | :{{example| 1=<div><code><nowiki>FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]</nowiki></code> gives ''x<sup>3</sup> - x<sup>2</sup> + 1''.</div>}} | ||
− | |||
− | |||
− |
Revision as of 21:36, 8 August 2011
- FitPoly[ <List of Points>, <Degree n of Polynomial> ]
- Calculates the regression polynomial of degree n.
- Example:
FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]
gives x3 - x2 + 1.
Note:
See also FitExp Command, FitLog Command, FitPow Command and FitSin Command.
CAS Syntax
- FitPoly[ <List of Points>, <Degree n of Polynomial> ]
- Calculates the regression polynomial of degree n.
- Example:
FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]
gives x3 - x2 + 1.