beautypg.com

HP Prime Graphing Wireless Calculator User Manual

Page 139

background image

Functions and commands

135

Degree

Returns the degree of a polynomial.

degree(Poly)

Example:

degree(x^3+x)

gives

3

Factor by Degree

For a given polynomial in x of degree n, factors out x

n

and

returns the resulting product.

factor_xn(Poly)

Example:

factor_xn(x^4-1)

gives

x^4*(1-x^-4)

Coef. GCD

Returns the greatest common divisor (GCD) of the coefficients

of a polynomial.

content(Poly,[Var])

Example:

content(2*x^2+10*x+6)

gives

2

Zero Count

If a and b are real, this returns the number of sign changes in

the specified polynomial in the interval [a,b]. If a or b are non-

real, it returns the number of complex roots in the rectangle

bounded by a and b. If Var is omitted, it is assumed to be x.

sturmab(Poly[,Var],a,b)

Examples:

sturmab(x^2*(x^3+2),-2,0)

returns

1

sturmab(n^3-1,n,-2-i,5+3i)

returns

3

Chinese

Remainder

Given two matrices whose two rows each contain the

coefficients of polynomials, returns the Chinese remainder of

the polynomials, also written as a matrix.

chinrem(Matrix1,Matrix2)

Example:

chinrem

returns

[[2 2 1] [1 1 2 1 1]]

1 2 0
1 0 1

1 1 0
1 1 1

,