beautypg.com

Cas menu, Algebra – HP Prime Graphing Wireless Calculator User Manual

Page 120

background image

116

Functions and commands

CAS menu

Press

D

to open the Toolbox

menus (one of which is the
CAS menu). The functions on
the CAS menu are those most
commonly used. Many more
functions are available. See
“Ctlg menu”, beginning on
page 172.
Note that the Geometry functions appear on the App menu.
The result of a CAS command may vary depending on the
CAS settings. The examples in this chapter assume the default
CAS settings unless otherwise noted.

Algebra

Simplify

Returns an expression simplified.

simplify(Expr)

Example:

simplify(4*atan(1/5)-atan(1/239))

yields

(1/4)*pi

Collect

Collects like terms in a polynomial expression (or in a list of

polynomial expressions). Factorizes the results, depending on

the CAS settings.

collect(Poly) or collect({Poly1,
Poly2,..., Polyn})

Examples:

collect(x+2*x+1-4)

returns

3*x-3

collect(x^2-9*x+5*x+3+1)

returns

(x-2)^2

Expand

Returns an expression expanded.

expand(Expr)

Example:

expand((x+y)*(z+1))

gives

y*z+x*z+y+x

Factor

Returns a polynomial factorized.

factor(Poly)

Example: