beautypg.com

Plot – HP Prime Graphing Calculator User Manual

Page 346

background image

342

Functions and commands

Legendre

Returns the Legendre polynomial of degree n.

legendre(Intg(n))

Example:

legendre(4)

gives

35*x^4/8+-15*x^2/4+3/8

Chebyshev Tn

Returns the Tchebyshev polynomial of first kind of degree n.

tchebyshev1(Intg(n))

Example:

tchebyshev1(3)

gives

4*x^3-3*x

Chebyshev Un

Returns the Tchebyshev polynomial of second kind of degree

n.

tchebyshev2(Intg(n))

Example:

tchebyshev2(3)

gives

8*x^3-4*x

Plot

Function

Plots the graph of an expression of one or two variables with

superposition.

plotfunc(Expr,[Var(x)],[Intg(color)])

or

plotfunc(Expr,[VectVar],[Intg(color)])

Example:

plotfunc(3*sin(x))

draws the graph of

y=3*sin(x)

Density

Plots the graph of the function z=f(x,y) in the plane where the

values of z are represented by different colors.
plotdensity(Expr,[x=xrange,y=yrange],[z],[x
step],[ystep])

Slopefield

Draws the tangent of the differential equation y'=f(t,y), where

the first argument is the expression f(t,y) (y is the real variable

and t is the abscissa), the second argument is the vector of

variables (abscissa must be listed first), and the third argument

is the optional range.

plotfield(Expr,VectVar,[Opt])