Difference between revisions of "FitSin Command"
From GeoGebra Manual
m (Bot: Automated text replacement (-{{command +{{command|cas=true)) |
|||
Line 2: | Line 2: | ||
{{command|cas=true|statistics}} | {{command|cas=true|statistics}} | ||
;FitSin[ <List of Points> ] | ;FitSin[ <List of Points> ] | ||
− | :Calculates the regression curve in the form ''a + b sin( | + | :Calculates the regression curve in the form ''a + b sin(c x + d)''. |
− | :{{example| 1=<div><code><nowiki>FitSin[{(1, 1), (2, 2), (3, 1), (4, 0), (5, 1), (6, 2)}]</nowiki></code> | + | :{{example| 1=<div><code><nowiki>FitSin[{(1, 1), (2, 2), (3, 1), (4, 0), (5, 1), (6, 2)}]</nowiki></code> yields ''1 + sin(1.5708 x - 1.5708)''.</div>}} |
{{note| 1=<div> | {{note| 1=<div> | ||
− | *The list should have at least | + | *The list should have at least four points, preferably more. The list should cover at least two extremal points. The first two local extremal points should not be too different from the absolute extremal points of the curve. |
*See also [[FitExp Command]], [[FitLog Command]], [[FitPoly Command]] and [[FitPow Command]]. | *See also [[FitExp Command]], [[FitLog Command]], [[FitPoly Command]] and [[FitPow Command]]. | ||
</div>}} | </div>}} | ||
==CAS Syntax== | ==CAS Syntax== | ||
;FitSin[ <List of Points> ] | ;FitSin[ <List of Points> ] | ||
− | :Calculates the regression curve in the form ''a + b sin( | + | :Calculates the regression curve in the form ''a + b sin(c x + d)''. |
+ | :{{example| 1=<div><code><nowiki>FitSin[{(1, 1), (2, 2), (3, 1), (4, 0), (5, 1), (6, 2)}]</nowiki></code> yields ''1 + sin(1.5708 x - 1.5708)''.</div>}} | ||
+ | {{note| 1=<div> | ||
+ | *The list should have at least four points, preferably more. The list should cover at least two extremal points. The first two local extremal points should not be too different from the absolute extremal points of the curve. | ||
+ | *See also [[FitExp Command]], [[FitLog Command]], [[FitPoly Command]] and [[FitPow Command]]. | ||
+ | </div>}} |
Revision as of 16:29, 13 September 2012
- FitSin[ <List of Points> ]
- Calculates the regression curve in the form a + b sin(c x + d).
- Example:
FitSin[{(1, 1), (2, 2), (3, 1), (4, 0), (5, 1), (6, 2)}]
yields 1 + sin(1.5708 x - 1.5708).
Note:
- The list should have at least four points, preferably more. The list should cover at least two extremal points. The first two local extremal points should not be too different from the absolute extremal points of the curve.
- See also FitExp Command, FitLog Command, FitPoly Command and FitPow Command.
CAS Syntax
- FitSin[ <List of Points> ]
- Calculates the regression curve in the form a + b sin(c x + d).
- Example:
FitSin[{(1, 1), (2, 2), (3, 1), (4, 0), (5, 1), (6, 2)}]
yields 1 + sin(1.5708 x - 1.5708).
Note:
- The list should have at least four points, preferably more. The list should cover at least two extremal points. The first two local extremal points should not be too different from the absolute extremal points of the curve.
- See also FitExp Command, FitLog Command, FitPoly Command and FitPow Command.