Difference between revisions of "FitPoly Command"
From GeoGebra Manual
m (Freehand Shape Tool.) |
m (added link for freehand shape tool) |
||
Line 5: | Line 5: | ||
;FitPoly( <Freehand Function>, <Degree of Polynomial> ) | ;FitPoly( <Freehand Function>, <Degree of Polynomial> ) | ||
− | :Calculates the regression polynomial of degree ''n'' for a function drawn by the Freehand Shape Tool. | + | :Calculates the regression polynomial of degree ''n'' for a function drawn by the [[Freehand Shape Tool]]. |
==CAS Syntax== | ==CAS Syntax== |
Revision as of 09:20, 20 July 2018
- 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.
- FitPoly( <Freehand Function>, <Degree of Polynomial> )
- Calculates the regression polynomial of degree n for a function drawn by the Freehand Shape Tool.
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.