HP Prime Graphing Wireless Calculator User Manual

Page 188

Advertising
background image

184

Functions and commands

exponential_

regression

Given a set of points, returns a vector containing the

coefficients a and b of y=b*a^x, the exponential which best

fits the set of points. The points may be the elements in two

lists or the rows of a matrix.

exponential_regression(Matrix) or
exponential_regression(List1, List2)

Example:

exponential_regression

returns

1.60092225473,1.10008339351

EXPR

Parses a string into a number or expression and returns the
result evaluated.

EXPR(String)

Examples:

expr("2+3")

returns

5

expr("X+10")

returns

100

, if the variable X has the

value 90

ezgcd

Uses the EZ GCD algorithm to return the greatest common

divisor of two polynomials with at least two variables.

ezgcd(Poly1,Poly2)

Example:

ezgcd(x^2-2*x-x*y+2*y,x^2-y^2)

returns

x-y

f2nd

Returns a vector consisting of the numerator and denominator

of an irreducible form of a rational fraction.

f2nd(RatFrac)

Example:

f2nd

returns

factorial

Returns the factorial of an integer or the solution to the gamma
function for a non-integer. For an integer n, factorial(n)=n!. For
a non-integer real number a, factorial(a)=a! = Gamma(a + 1).

factorial(Integer) or factorial(Real)

1.0 2.0
0.0 1.0
4.0 7.0

x

x

x

--------------

1 x

Advertising