Difference between revisions of "FitPoly Command"
From GeoGebra Manual
m |
m |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=5.0}}</noinclude> | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|statistics}} |
− | {{command|cas=true|statistics}} | ||
;FitPoly[ <List of Points>, <Degree of Polynomial> ] | ;FitPoly[ <List of Points>, <Degree of Polynomial> ] | ||
:Calculates the regression polynomial of degree ''n''. | :Calculates the regression polynomial of degree ''n''. |
Revision as of 10:40, 5 August 2015
- FitPoly[ <List of Points>, <Degree of Polynomial> ]
- Calculates the regression polynomial of degree n.
- Example:
FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]
yields f(x) = x3 - 1 x2 + 1.
CAS Syntax
- FitPoly[ <List of Points>, <Degree of Polynomial> ]
- Calculates the regression polynomial of degree n.
- Example:
FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]
yields x3 - x2 + 1.
Note:
- For order n there must be at least n + 1 Points in the list.
- See also FitExp Command, FitLog Command, FitPow Command and FitSin Command.