beautypg.com

HP Prime Graphing Calculator User Manual

Page 333

background image

Functions and commands

329

Zeros

With an expression as argument, returns the zeros (real or

complex according to the mode) of the expression. With a list

of expressions as argument, returns the matrix where the rows

are the solutions of the system (i.e. expression1=0,

expression2=0,...,).

zeros(Expr,[Var])

or

zeros([LstExpr],[LStVar])

Example:

zeros(x^2+4

) gives

[]

in real mode and

[-2*i,2*i]

in complex mode

Complex Solve

Returns a list where the elements are complex solutions of the

system of polynomial equations.

csolve(LstEq,LstVar)

Example:

csolve(x^4-1,x)

gives

list[1,-1,-i,i]

Complex Zeros

With an expression as argument, returns the complex zeros of

the expression. With a list of expressions as argument, returns

the matrix where the rows are the solutions of the system (i.e.

expression1=0, expression2=0,...,).

Czeros(Expr,[Var])

or

Czeros([LstExpr],[LStVar])

Example:

cZeros(x^2-1)

gives

[1,-1]

Numerical Solve

Returns the numerical solution of an equation or a system of

equations.

nSolve(Expr,Var||Var=Guess)

Examples:

nSolve(cos(x)=x,x)

gives

0.999847741531

nSolve(cos(x)=x,x=1.3)

gives

0.999847741531