Difference between revisions of "Fit Command"

From GeoGebra Manual
Jump to: navigation, search
Line 5: Line 5:
 
{{example|1=With  ''L={A,B,C,...}, f(x)=1, g(x)=x, h(x)=e^x, F={f,g,h}''
 
{{example|1=With  ''L={A,B,C,...}, f(x)=1, g(x)=x, h(x)=e^x, F={f,g,h}''
 
the command <code> Fit[L,F]</code> calculates a function of the form ''a + b x + c e^x'' to the points in the list.}}
 
the command <code> Fit[L,F]</code> calculates a function of the form ''a + b x + c e^x'' to the points in the list.}}
 +
;Fit[<List of points>, <Function>]
 +
:Calculates a minimum squared error function  to the points in the list. The Function must depend on one or more sliders, that are taken as start values of parameters to be optimized. The non-linear iteration might not converge, but adjusting the sliders
 +
to a better starting point might help.

Revision as of 19:59, 14 March 2011



Fit[ <List of Points>,<List of Functions> ]
Calculates a linear combination of functions to the points in the list.
Example: With L={A,B,C,...}, f(x)=1, g(x)=x, h(x)=e^x, F={f,g,h} the command Fit[L,F] calculates a function of the form a + b x + c e^x to the points in the list.
Fit[<List of points>, <Function>]
Calculates a minimum squared error function to the points in the list. The Function must depend on one or more sliders, that are taken as start values of parameters to be optimized. The non-linear iteration might not converge, but adjusting the sliders

to a better starting point might help.

© 2024 International GeoGebra Institute