Difference between revisions of "FitPoly Command"
From GeoGebra Manual
Line 3: | Line 3: | ||
;FitPoly[ <List of Points>, <Degree n of Polynomial> ] | ;FitPoly[ <List of Points>, <Degree n of Polynomial> ] | ||
: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> | + | :{{example| 1=<div><code><nowiki>FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]</nowiki></code> yields <math>x^3 - x^2 + 1</math>.</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> | For order ''n'' there must be at least ''n + 1'' Points in the list.</div>}}{{note| 1=<div> | ||
Line 11: | Line 11: | ||
;FitPoly[ <List of Points>, <Degree n of Polynomial> ] | ;FitPoly[ <List of Points>, <Degree n of Polynomial> ] | ||
: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> yields <math>x^3 - x^2 + 1</math>.</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]]. | ||
+ | </div>}} |
Revision as of 09:05, 14 September 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]
yields x^3 - x^2 + 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.
- Example:
FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]
yields x^3 - x^2 + 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.