beautypg.com

HP Prime Graphing Calculator User Manual

Page 396

background image

390

Functions and commands

evalc

Returns a complex expression written in the form
real+i*imag.

evalc(Expr)

Example:

evalc

returns

evalf

Given an expression and a number of significant digits,

returns the numerical evaluation of the expression to the given

number of significant digits. With just an expression, returns

the numerical evaluation based on the CAS settings.

evalf(Expr,[Integer])

Example:

evalf(2/3)

gives

0.666666666667

even

Tests whether or not an integer is even. Returns 1 if it is and 0

if it is not.
Example:

even(1251) returns 0

exact

Converts a decimal expression to a rational or real

expression.

exact(Expr)

Example:

exact(1.4141)

gives

14141/10000

EXP

Returns the solution to the mathematical constant e to the

power of an expression.

exp(Expr)

Example:

exp(0)

gives

1

1

x y i

+

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

x

x

2

y

2

+

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

i y

x

2

y

2

+

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