Difference between revisions of "FitPoly Command"
From GeoGebra Manual
m (Bot: Automated text replacement (-{{command +{{command|cas=true)) |
|||
Line 5: | Line 5: | ||
:{{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>}} | ||
{{note| 1=<div> | {{note| 1=<div> | ||
+ | For order ''n'' there must be at least ''n + 1'' Points in the list.</div>}}{{note| 1=<div> | ||
See also [[FitExp Command]], [[FitLog Command]], [[FitPow Command]] and [[FitSin Command]]. | See also [[FitExp Command]], [[FitLog Command]], [[FitPow Command]] and [[FitSin Command]]. | ||
</div>}} | </div>}} |
Revision as of 19:49, 8 August 2012
- 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:
For order n there must be at least n + 1 Points in the list.
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.