plotpolar(f(x),x,a,b) draws the polar curve r=f(x) for x in [a,b]
Sequence
Syntax: plotseq(f(Var), Var={Start, Xmin, Xmax}, Integer n)
Given an expression in x and a list containing three values, draws the line y=x, the plot of the function dened
by the expression over the domain dened by the interval between the last two values, and draws the cobweb
plot for the rst n terms of the sequence dened recursively by the expression (starting at the rst value).
Example:
plotseq(1-x/2, x={3 -1 6}, 5) plots y=x and y=1–x/2 (from x=–1 to x=6), then draws the rst
5 terms of the cobweb plot for u(n)=1-(u(n–1)/2, starting at u(0)=3
Implicit
Syntax: plotimplicit(Expr, [XIntrvl, YIntrvl])
Plots an implicitly dened curve from Expr (in x and y). Specically, plots Expr=0. Note the use of lowercase x
and y. With the optional x-interval and y-interval, this command plots only within those intervals.
Example:
plotimplicit((x+5)^2+(y+4)^2-1) plots a circle, centered at the point (-5, -4), with a radius of 1
Slopeeld
Syntax: plotfield(Expr, [x=X1..X2 y=Y1..Y2], [Xstep, Ystep], [Option])
Plots the graph of the slopeeld for the dierential equation y’=f(x,y) over the given x-range and y-range. If
Option is normalize, the slopeeld segments drawn are equal in length.
Example:
plotfield(x*sin(y), [x=-6..6, y=-6..6],normalize) draws the slopeeld for
y'=x*sin(y), from -6 to 6 in both directions, with segments that are all of the same length
ODE
Syntax: plotode(Expr, [Var1, Var2, ...], [Val1, Val2. ...])
Draws the solution of the dierential equation y’=f(Var1, Var2, ...) that contains as initial condition for the
variables Val1, Val2,... The rst argument is the expression f(Var1, Var2,...), the second argument is the vector
of variables, and the third argument is the vector of initial conditions.
Example:
plotode(x*sin(y), [x,y], [–2, 2]) draws the graph of the solution to y’=x*sin(y) that
passes through the point (–2, 2) as its initial condition
List
Syntax: plotlist(Matrix 2xn)
Plots a set of n points and connects them with segments. The points are dened by a 2xn matrix, with the
abscissas in the rst row and the ordinates in the second row.
Example:
plotlist([[0,3],[2,1],[4,4],[0,3]]) draws a triangle
180 Chapter 9 Geometry
Komentarze do niniejszej Instrukcji