Algebra – HP Prime Graphing Calculator User Manual

Page 343

Advertising
background image

Functions and commands

339

Example:

randpoly(t, 8, -1..1)

returns a vector of 9 random

integers, all of them between –1 and 1.

Minimum

With only a matrix as argument, returns the minimal

polynomial in x of a matrix written as a list of its coefficients.

With a matrix and a variable as arguments, returns the

minimum polynomial of the matrix written in symbolic form

with respect to the variable.

pmin(Mtrx,[Var])

Example:

pmin([[1,0],[0,1]],x)

gives

x-1

Algebra

Quotient

Returns the Euclidean quotient of two polynomials written as

vectors or in symbolic form.

quo((Vect),(Vect),[Var])

or

quo((Poly),(Poly),[Var])

Example:

quo([1,2,3,4],[-1,2])

gives

poly1[-1,-4,-11]

Remainder

Returns the Euclidean remainder of two polynomials written as

vectors or in symbolic form.

rem((Vect),(Vect),[Var])

or

rem((Poly),(Poly),[Var])

Example:

rem([1,2,3,4],[-1,2])

gives

poly1[26]

Degree

Returns the degree of a polynomial.

degree(Poly)

Example:

degree(x^3+x)

gives

3

Advertising