beautypg.com

HP Prime Graphing Wireless Calculator User Manual

Page 182

background image

178

Functions and commands

Example:

col

returns

[2,5,8]

colDim

Returns the number of columns of a matrix.

colDim(Matrix)

Example:

colDim

returns

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)

companion

Returns the companion matrix of a polynomial.

companion(Poly,Var)

Example:

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

returns

compare

Compares two objects and returns 1 if
type(Obj1)Obj1

compare(Obj1, Obj2)

Example:

compare(1,2)

gives

1

complexroot

With a polynomial and a real as its two arguments, returns a

matrix. Each row of the matrix contains either a complex root

of the polynomial with its multiplicity or an interval containing

such a root and its multiplicity. The interval defines a (possibly)

rectangular region in the complex plane where a complex

root lies.

1 2 3
4 5 6
7 8 9

2

,

1 2 3
4 5 6

0 7
1 5