beautypg.com

Plot – HP Prime Graphing Calculator User Manual

Page 352

background image

346

Functions and commands

Plot

Function

Used to define a function graph in the Symbolic view of the

Geometry app. Plots the graph of an expression written in

terms of the independent variable x. Note that the variable is

lowercase.

plotfunc(Expr)

Example:

plotfunc(3*sin(x))

draws the graph of

y=3*sin(x)

Implicit

Used to define an implicit graph in the Symbolic view of the

Geometry app. Plots the graph of an equation written in terms

of the independent variable x and the dependent variable y.

Note that the variables are lowercase.

plotimplicit(Expr)

Example:

plotimplicit(x^2-2*y^2+3*x*y)

plots a rotated

hyperbola

Slopefield

Used to define a slopefield graph in the Symbolic view of the

Geometry app. Plots the graph of the slopefield for the

differential equation y’=f(x,y) over the given x-range and y-

range.

plotfield(Expr, x=X1..X2, y=Y1..Y2)

Example:

plotfield(x*sin(y), x=-6..6, y=-6..6)

draws the slopefield for y’=x*sin(y) in the square region defined

by the x-interval [–6, 6] and the y-interval [–6, 6].

Contour

Used to define a contour graph in the Symbolic view of the

Geometry app. Given an expression in x and y, as well as a

list of variables and a list of values, plots the contour graph of

the surface z=f(x,y). Specifically, plots the contour lines z1,

z2, etc. defined by the list of values.
Example:

plotcontour(x^2+2*y^2-2, {x, y}, {2, 4,
6})

draws the three contour lines of z=x^2+2*y^2–2 for z=2,

z=4, and z=6.