beautypg.com

HP Prime Graphing Calculator User Manual

Page 419

background image

Functions and commands

413

residue

Returns the residue of an expression at a value.

residue(Expr, Var, Value)

Example:

residue(1/z,z,0)

returns

1

restart

Purges all the variables.

restart(NULL)

resultant

Returns the resultant (i.e. the determinant of the Sylvester

matrix) of two polynomials.

resultant(Poly1, Poly2, Var)

Example:

resultant(x^3+x+1, x^2-x-2,x) returns -11

revlist

Reverses the order of the elements in a list or vector.

revlist(List) or revlist(Vector)

Example:

revlist([1,2,3])

returns

[3,2,1]

romberg

Uses Romberg’s method to return the approximate value of a

definite integral.

romberg(Expr, Var, Val1, Val2)

Example:

romberg(exp(x^2),x,0,1)

gives

1.46265174591

row

Given a matrix and an integer n, returns the row n of the

matrix. Given a matrix and an interval, returns a vector

containing the rows of the matrix indicated by the interval.

row(Matrix, Integer) or row(Matrix, Interval)

Example:

row

returns

[4,5,6]

1 2 3
4 5 6
7 8 9

2