beautypg.com

HP Prime Graphing Calculator User Manual

Page 384

background image

380

Functions and commands

two arguments, but only for those roots lying in the rectangle

with sides parallel to the axis having complex a and complex

b as opposite vertices

complexroot(Poly(P),Real(l),[Cplx(a)],[Cplx(b
)])

Example:

complexroot(x^5-2*x^4+x^3+i,0.1)

gives

[[[(-21-

12*i)/32,(-18-9*i)/32],1],[[(6-15*i)/16,(-6-
21*i)/(16-16*i)],1],[[(27+18*i)/
(16+16*i),(24-3*i)/16],1],[[(6+27*i)/
(16+16*i),(9+6*i)/8],1],[[(-15+6*i)/
(16+16*i),(-3+12*i)/16],1]]

cone

Draws a cone with vertex at A, direction given by v, half angle

t, and, if provided, height h and –h.

cone(Pnt(A),Vect(v),Real(t),[Real(h)])

conic

Defines a conic from an expression and draws it. Without a

second argument, x and y are taken as the default variable.

conic(Expr,[LstVar])

Example:

conic(x^2+y^2-81)

draws a circle with center at (0,0)

and radius of 9

contains

If the list or set l contains the element e, returns 1+ the index

of the first occurrence of e in l. If the list or set l does not

contain e, returns 0.

contains((Lst(l) or Set(l)),Elem(e))

Example:

contains(%{0,1,2,3%},2)

gives

3

CONTINUE

Used in programming to bypass remaining statements in the

current iteration and begin the next iteration in a loop.

CONVERT

Returns the value of an expression subjected to a command.

convert(Expr,Cmd)

Example:

convert(20_m, 1_ft)

returns

65.6167979003_ft