Difference between revisions of "FitSin Command"
From GeoGebra Manual
Line 3: | Line 3: | ||
;FitSin[ <List of Points> ] | ;FitSin[ <List of Points> ] | ||
:Calculates the regression curve in the form ''a + b sin(cx + d)''. | :Calculates the regression curve in the form ''a + b sin(cx + d)''. | ||
− | :{{example| 1=<div><code><nowiki>FitSin[{(0, 1), (2, 4)}]</nowiki></code> gives '' | + | :{{example| 1=<div><code><nowiki>FitSin[{(0, 1), (2, 4)}]</nowiki></code> gives ''''.</div>}} |
{{note| 1=<div> | {{note| 1=<div> | ||
*The list should have at least 4 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. | *The list should have at least 4 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 [[ | + | *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(cx + d)''. | :Calculates the regression curve in the form ''a + b sin(cx + d)''. | ||
− | :{{example| 1=<div><code><nowiki>FitSin[{(0, 4), (1, 0), (2, -4), (3, 0)}]</nowiki></code> gives '' | + | :{{example| 1=<div><code><nowiki>FitSin[{(0, 4), (1, 0), (2, -4), (3, 0)}]</nowiki></code> gives ''''.</div>}} |
{{note| 1=<div> | {{note| 1=<div> | ||
*The list should have at least 4 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. | *The list should have at least 4 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 [[ | + | *See also [[FitExp Command]], [[FitLog Command]], [[FitPoly Command]] and [[FitPow Command]]. |
</div>}} | </div>}} |
Revision as of 15:25, 5 August 2011
- FitSin[ <List of Points> ]
- Calculates the regression curve in the form a + b sin(cx + d).
- Example:
FitSin[{(0, 1), (2, 4)}]
gives '.
Note:
- The list should have at least 4 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(cx + d).
- Example:
FitSin[{(0, 4), (1, 0), (2, -4), (3, 0)}]
gives '.
Note:
- The list should have at least 4 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.