HP Prime Graphing Calculator User Manual

Page 342

Advertising
background image

338

Functions and commands

Create

Poly to Coef

With a variable as second argument, returns the coefficients

of a polynomial with respect to the variable. With a list of

variables as the second argument, returns the internal format

of the polynomial.

symb2poly(Expr,[Var])

or

symb2poly(Expr,ListVar)

Example:

symb2poly(x*3+2.1)

gives

poly1[3,2.1]

Coef to Poly

With one list as argument, returns a polynomial in x with

coefficients (in decreasing order) obtained from the list. With

a variable as second argument, returns a polynomial in the

variable as for one argument but the polynomial is in the

variable specified in the second argument.

poly2symb(Lst,Var)

Example:

poly2symb([1,2,3],x)

gives

(x+2)*x+3

Roots to Coef

Returns the coefficients (in decreasing order) of the univariate

polynomial of roots specified in the argument.

pcoef(Vect)

Example:

pcoeff([1,0,0,0,1])

gives

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

Roots to Poly

Returns the rational function that has the roots and poles

specified in the argument.

fcoeff(Lst(root||pole,order))

Example:

fcoeff([1,2,0,1,3,-1])

gives

(x-1)^2*x*(x-3)^-1

Random

Returns a vector of coefficients of a polynomial of variable Var

(or x), of degree Intgr and where the coefficients are random

integers in the range –99 through 99 with uniform distribution

or in an interval specified by Intrvl.

randpoly([Var],Intgr,[Dist])

Advertising