Difference between revisions of "FitPoly Command"
From GeoGebra Manual
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact ) |
|||
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> yields < | + | :{{example| 1=<div><code><nowiki>FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]</nowiki></code> yields ''f(x) = x<sup>3</sup> - x<sup>2</sup> + 1''.</div>}} |
− | + | ||
− | + | ||
− | |||
− | |||
==CAS Syntax== | ==CAS Syntax== | ||
;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 < | + | :{{example| 1=<div><code><nowiki>FitPoly[{(-1, -1), (0, 1), (1, 1), (2, 5)}, 3]</nowiki></code> yields ''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. | + | * 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]]. | + | * See also [[FitExp Command]], [[FitLog Command]], [[FitPow Command]] and [[FitSin Command]]. |
</div>}} | </div>}} |
Revision as of 09:06, 27 August 2013
- 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 f(x) = x3 - x2 + 1.
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 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.