Maple 11 Cheat Sheet Page 3

ADVERTISEMENT

Plots
• f
is
represented
parametrically:
[f1(x,y), f2(x,y), f3(x,y)].
e.g.
plot(f, x=xmin..xmax, options ); Creates
a
two-
plot3d([x*sin(x)*cos(y), x*cos(x)*cos(y),
dimensional plot of the real function f (x) over the
x*sin(y)], x=0..2*Pi, y=0..Pi);
horizontal range from xmin to xmax.
Options are
• f
is a list of functions to be graphed on
specified in the form option=value (see box below).
the
same
plot:
[f1(x,y), f2(x,y), ...,
fn(x,y)].
If there are three functions, use
• f is a function with an independent variable. e.g.
the
option
to
avoid
a
parametric
plotlist
plot(x^2, x=-5..5);.
plot.
plot3d([sin(x*y),cos(x*y),x+y],
e.g.
• f
is
represented
parametrically:
x=-1..1, y=-1..1, plotlist); puts the functions
[x(t),y(t),t=t0..t1].
e.g.
z = sin(xy), z = cos(xy), and z = x + y on the same
plot([cos(t),sin(t),t=-2*Pi..2*Pi]);
plot.
• f is a list of functions to be graphed on the same
implicitplot3d(eqn, x=a..b, y=c..d, z=i..j, options );
plot: [f1, f2, ..., fn]. e.g. plot([1,x,x^2],
In the plots package. Creates the three-dimensional plot
x=-2..2); puts the functions y = 1, y = x, and
of an implicitly defined surface eqn on the specified
2
y = x
on the same plot.
intervals: x = [a, b], y = [c, d] and z = [i, j]. Options are
specified in the form option=value (see box below). e.g.
implicitplot(eqn, x=xmin..xmax, y=ymin..ymax, options );
implicitplot3d(x^2+y^2+z^2=1, x=-1..1, y=-1..1,
In the plots package.
i.e.
Must be preceded by
z=-1..1);.
with(plots); Creates the two-dimensional plot of an
implicitly defined curve eqn on the specified intervals:
Options for Plot3d and Implicitplot3d
[xmin, xmax] and [ymin, ymax].
Options are speci-
fied in the form option=value (see box below).
Type of axes
axes=boxed/frame/none/normal
e.g.
implicitplot(x^2+y^2=1, x=-1..1, y=-1..1);.
Color of curves
color=blue/black/green/red/etc.
Contours
contours=number
inequal(ineqs, x=xmin..xmax, y=xmin..xmax, options );
Coordinate System
coords=cartesian/cylindrical/
In the plots package.
Plots regions defined by
spherical/etc.
inequalities ineqs in the specified x and y inter-
Grid Dimensions
grid=[m,n]
vals.
Options are in the form optionsfeasible /
Label Axes
labels=[x,y,z]
optionsopen / optionsclosed / optionsexcluded
Scaling
scaling=constrained/unconstrained
=
(optionsList),
where
optionsList
is
of
the
Line thickness
thickness=number
format
(option=value, option2=value2, ...).
Title
title="plot title"
inequal(x+y>0, x-y<=1, x=-3..3, y=-3..3,
e.g.
View window
view=[xmin..xmax,ymin..ymax,
optionsexcluded=(color=blue,thickness=2));
zmin..zmax]
animate(plotcommand, plotargs, t=a..b, options );
Options for Plot, Implicitplot, and Inequal
In the plots package. Creates a 2-D or 3-D animation
on paramter t, ranging from a to b.
plotcommand is
Type of axes
axes=boxed/frame/none/normal
a Maple command that generates a 2-D or 3-D plot
Color of curves
color=blue/black/green/red/etc.
(e.g.
plotargs is
plot, plot3d, implicitplot).
Determine input
discont=true/false
a list of arguments to the plot command. Possible op-
discontinuities
tions are those used in the plot command or the following:
Draw gridlines
gridlines=true/false
Label Axes
labels=[x,y]
Number of frames
frames=n
Scaling
scaling=constrained/unconstrained
Display a trace of n frames
trace=n
Line thickness
thickness=number
animate(plot, [A*sin(x), x=0..10], A=0..2,
e.g.
Title
title="plot title"
frames=50, trace=5);
Min/max y values
y=ymin..ymax
View window
view=[xmin..xmax,ymin..ymax]
display(L, options); In the plots package. Combines the
plot3d(f, x=a..b, y=c..d, options ); Creates a three-
list L of plot structures into a single plot or animation.
dimensional plot of the real function f (x, y) over the
options are those used for plot or plot3d.
horizontal range [a, b] and vertical range [c, d]. Options
with(plots):
e.g.
are specified in the form option=value (see box below).
p1:=plot3d(sin(x*y), x=-Pi..Pi, y=-Pi..Pi):
p2:=plot3d([x+y, sin(x)], x=-Pi..Pi, y=-Pi..Pi):
• f is a function with two independent variables. e.g.
display([p1,p2], axes=boxed, title="test plot");
plot(sin(x+y), x=-1..1, y=-1..1);.
Maple 11 Cheat Sheet
3
Margaret Yau. Mt. San Antonio College

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 3