beautypg.com

Special – HP Prime Graphing Calculator User Manual

Page 344

background image

340

Functions and commands

Factor by Degree

Returns a polynomial factorized in x^n, where n is the degree

of polynomial.

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(P),[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

Returns the Chinese remainder of the polynomials written as

lists of coefficients or in symbolic form.

chinrem([Lst||Expr,Lst||Expr],[Lst||Expr
,Lst||Expr])

Example:

chinrem([[1,2],[1,0,1]],[[1,1],[1,1,1]])

gives

[poly1[-1,-1,0,1],poly1[1,1,2,1,1]]

Special

Cyclotomic

Returns the list of coefficients of the cyclotomic polynomial of

an integer.

cyclotomic(Int)

Example:

cyclotomic(20)

gives

[1,0,-1,0,1,0,-1,0,1]