Difference between revisions of "FitLine Command"
From GeoGebra Manual
(command syntax: changed [ ] into ( )) |
(* If you work with big/small numbers, you should consider normalizing them for a more accurate result, see Normalize Command.) |
||
Line 7: | Line 7: | ||
: Calculates the ''y'' on ''x'' regression line of the points. | : Calculates the ''y'' on ''x'' regression line of the points. | ||
:{{example|1=<code><nowiki>FitLine({(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)})</nowiki></code> yields ''0.4x + 2''.}} | :{{example|1=<code><nowiki>FitLine({(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)})</nowiki></code> yields ''0.4x + 2''.}} | ||
− | {{ | + | |
− | See also [[File:Mode fitline.svg|link=|24px]] [[Best Fit Line Tool|Best Fit Line]] tool and [[FitLineX Command]].}} | + | {{note| 1=<div> |
+ | *See also[[File:Mode fitline.svg|link=|24px]] [[Best Fit Line Tool|Best Fit Line]] tool and [[FitLineX Command]] | ||
+ | * If you work with big/small numbers, you should consider normalizing them for a more accurate result, see [[Normalize Command]]. | ||
+ | </div>}} |
Latest revision as of 12:44, 4 February 2019
- FitLine( <List of Points> )
- Calculates the y on x regression line of the points.
- Example:
FitLine({(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)})
yields 0.4x + 2.
CAS Syntax
- FitLine( <List of Points> )
- Calculates the y on x regression line of the points.
- Example:
FitLine({(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)})
yields 0.4x + 2.
Note:
- See also Best Fit Line tool and FitLineX Command
- If you work with big/small numbers, you should consider normalizing them for a more accurate result, see Normalize Command.