beautypg.com

HP Prime Graphing Calculator User Manual

Page 386

background image

382

Functions and commands

cpartfrac

Returns the result of partial fraction decomposition of a

rational fraction in the complex field.

cpartfrac(RatFrac)

Example:

cpartfrac((x)/(4-x^2))

gives

1/((x-2)*-2)+1/

((x+2)*-2)

crationalroot

Returns the list of complex rational roots of a polynomial

without indicating the multiplicity.

crationalroot(Poly)

Example:

crationalroot(2*x^3+(-5-7*i)*x^2+(-
4+14*i)*x+8-4*i)

gives

[(3+i)/2,2*i,1+i]

cube

Draws a cube with a vertex at the line AB and a face in the

plane containing A,B, and C.

cube(Pnt(A),Pnt(B),Pnt(C))

cumSum

Returns the list, sequence or string whose elements are the

cumulative sum of the original list, sequence or string.

cumSum(Lst||Seq||Str)

Example:

cumSum([0,1,2,3,4])

gives

[0,1,3,6,10]

cyan

Used with display to specify the color of the geometrical

object to be displayed.

cylinder

Draws a cylinder with axis from A in the direction of vector v,

with radius r, and, if provided, with height h.

cylinder(Pnt(A),Vect(v),Real(r),[Real(h)])

DEBUG

Starts the debugger for the program name you specify. In a

program, DEBUG( ) will act as a breakpoint and launch the

debugger at that location. This allows you to start debugging

at a specific location, rather than starting at the beginning of

the program.

debug(program_name)