HP Prime Graphing Calculator User Manual
Page 395

Functions and commands
389
egcd
Given two polynomials, A and B, returns three polynomials U,
V and D such that:
U(x)*A(x)+V(x)*B(x)=D(x),
where D(x)=GCD(A(x),B(x)), the greatest common
divisor of polynomials A and B.
The polynomials can be provided in symbolic form or as lists
of coefficients in descending order.
Without a third argument, it is assumed that the polynomials
are expressions of x. With a variable as third argument, the
polynomials are expressions of it.
egcd((PolyA, PolyB, [Var]) or egcd(ListA,
ListB, [Var])
Example:
egcd((x-1)^2,x^3-1)
gives
[-x-2,1,3*x-3]
eigenvals
Returns the sequence of eigenvalues of a matrix.
eigenvals(Matrix)
Example:
eigenvals
returns [
3 -3 -3]
eigenvects
Returns the eigenvectors of a diagonalizable matrix.
eigenvects(Matrix)
Example:
eigenvects
returns
eigVl
Returns the Jordan matrix associated with a matrix when the
eigenvalues are calculable.
eigVl(Matrix)
EVAL
Evaluates an expression.
eval(Expr)
Example:
eval(2+3) returns 5
2
–
2
–
1
2
–
1 2
–
1 2
–
2
–
2
–
2
–
1
2
–
1 2
–
1 2
–
2
–
1 3
–
3
–
2
–
0 3
–
1 3 3
–