beautypg.com

HP Prime Graphing Calculator User Manual

Page 383

background image

Functions and commands

379

col

Returns the column of index n of a matrix.

col(Mtrx,n)

Example:

col([[1,2,3],[4,5,6],[7,8,9]],1)

gives

[2,5,8]

colDim

Returns the number of columns of a matrix.

colDim(Mtrx)

Example:

coldim([[1,2,3],[4,5,6]])

gives

3

comDenom

Rewrites a sum of rational fractions as a one rational fraction.

The denominator of the one rational fraction is the common

denominator of the rational fractions in the original

expression. With a variable as second argument, the

numerator and denominator are developed according to it.

comDenom(Expr,[Var])

Example:

comDenom(1/x+1/y^2+1)

gives

(x*y^2+x+y^2)/

(x*y^2)

common_perpend

icular

Draws the common perpendicular of the lines D1 and D2.

common_perpendicular(Line(D1),Line(D2))

companion

Returns the companion matrix of a polynomial.

companion(Poly,Var)

Example:

companion(x^2+5x-7,x)

gives

[[0,7],[1,-5]]

compare

Compares objects, and returns 1 if type(arg1)

if type(arg1)=type(arg2) and arg1

otherwise.

compare(Obj(arg1),Obj(arg2))

Example:

compare(1,2)

gives

1

complexroot

With two arguments, returns vectors, each of which is either a

complex root of the polynomial P with its multiplicity or an

interval the boundaries of which are the opposite vertices of

a rectangle with sides parallel to the axis and containing a

complex root of the polynomial with the multiplicity of this

root. With four arguments, returns vectors described as for