Difference between revisions of "SlopeField Command"
From GeoGebra Manual
Line 2: | Line 2: | ||
{{command|function}} | {{command|function}} | ||
;SlopeField[ <f(x,y)> ] | ;SlopeField[ <f(x,y)> ] | ||
− | :Plots a | + | :Plots a [[w:Slope_field|slope field]] for the differential equation <math>\frac{dy}{dx}=f(x,y)</math> |
+ | :{{example|1= <code>SlopeField[x+y]</code> plots the slope field. ''}} | ||
;SlopeField[ <f(x,y)>, <Number n> ] | ;SlopeField[ <f(x,y)>, <Number n> ] | ||
:Plots a slopefield for the differential equation <math>\frac{dy}{dx}=f(x,y)</math> on an n by n grid (if the Graphics View is square) or a smaller grid if not. Default is 40. | :Plots a slopefield for the differential equation <math>\frac{dy}{dx}=f(x,y)</math> on an n by n grid (if the Graphics View is square) or a smaller grid if not. Default is 40. | ||
Line 10: | Line 11: | ||
:Plots a slopefield for the differential equation <math>\frac{dy}{dx}=f(x,y)</math> inside the specified rectangle (rather than filling the Graphics View) | :Plots a slopefield for the differential equation <math>\frac{dy}{dx}=f(x,y)</math> inside the specified rectangle (rather than filling the Graphics View) | ||
+ | {{Note|1= Use the following tools: [[Move_Graphics_View_Tool|Move Graphics View]], [[Zoom_In_Tool|Zoom In]], [[Zoom_Out_Tool|Zoom Out]] and observe the effect.}} | ||
{{Note|1= See also [[SolveODE Command|SolveODE]]}} | {{Note|1= See also [[SolveODE Command|SolveODE]]}} |
Revision as of 15:43, 2 July 2012
This page is about a feature that is supported only in GeoGebra 4.2. |
- SlopeField[ <f(x,y)> ]
- Plots a slope field for the differential equation \frac{dy}{dx}=f(x,y)
- Example:
SlopeField[x+y]
plots the slope field.
- SlopeField[ <f(x,y)>, <Number n> ]
- Plots a slopefield for the differential equation \frac{dy}{dx}=f(x,y) on an n by n grid (if the Graphics View is square) or a smaller grid if not. Default is 40.
- SlopeField[ <f(x,y)>, <Number n>, <Length Multiplier a> ]
- Plots a slopefield for the differential equation \frac{dy}{dx}=f(x,y). The Length Multiplier 0<a≤1 determines how long the segments are.
- SlopeField[ <f(x,y)>, <Number n>, <Length Multiplier a>, <Min x>, <Min y>, <Max x>, <Max y> ]
- Plots a slopefield for the differential equation \frac{dy}{dx}=f(x,y) inside the specified rectangle (rather than filling the Graphics View)
Note: Use the following tools: Move Graphics View, Zoom In, Zoom Out and observe the effect.
Note: See also SolveODE