Difference between revisions of "FitPoly Command"

From GeoGebra Manual
Jump to: navigation, search
(command syntax: changed [ ] into ( ))
(;FitPoly( <Freehand Function>, <Degree of Polynomial> ))
Line 4: Line 4:
 
:{{example| 1=<code><nowiki>FitPoly({(-1, -1), (0, 1), (1, 1), (2, 5)}, 3)</nowiki></code> yields ''f(x) = x<sup>3</sup> - 1 x<sup>2</sup> + 1''.}}
 
:{{example| 1=<code><nowiki>FitPoly({(-1, -1), (0, 1), (1, 1), (2, 5)}, 3)</nowiki></code> yields ''f(x) = x<sup>3</sup> - 1 x<sup>2</sup> + 1''.}}
  
 +
;FitPoly( &lt;Freehand Function>, <Degree of Polynomial> )
 +
:Calculates the regression polynomial of degree ''n'' for a function drawn by the Freehand Function Tool.
  
 
==CAS Syntax==
 
==CAS Syntax==

Revision as of 10:15, 18 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 Function 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:
© 2024 International GeoGebra Institute