Difference between revisions of "FitPoly Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|statistics}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|statistics}}
;FitPoly[ &lt;List of Points>, <Degree of Polynomial> ]
+
;FitPoly( &lt;List of Points>, <Degree 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 ''f(x) = x<sup>3</sup> - 1 x<sup>2</sup> + 1''.</div>}}
 
:{{example| 1=<div><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''.</div>}}
Line 6: Line 6:
  
 
==CAS Syntax==
 
==CAS Syntax==
;FitPoly[ &lt;List of Points>, <Degree of Polynomial> ]
+
;FitPoly( &lt;List of Points>, <Degree 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 ''x<sup>3</sup> - x<sup>2</sup> + 1''.</div>}}
 
:{{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>}}

Revision as of 17:15, 7 October 2017


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:
© 2024 International GeoGebra Institute