beautypg.com

HP Prime Graphing Calculator User Manual

Page 388

background image

382

Functions and commands

algvar

Returns the matrix of the symbolic variable names used in an

expression. The list is ordered by the algebraic extensions

required to build the original expression.

algvar(Expr)

Example:

algvar(sqrt(x)+y)

gives

AND

Logical And. Returns 1 if the left and right sides both evaluate

to true and returns 0 otherwise.

Expr1 AND Expr2

Example:

3 +1==4 AND 4 < 5 returns 1

append

Appends an element to a list or vector.

append((List, Element)

or

append(Vector, Element)

Example:

append([1,2,3],4) gives [1,2,3,4]

apply

Returns a vector containing the results of applying a function

to the elements in a list.

apply(Var→f(Var), List)

Example:

apply(x→x^3,[1,2,3])

gives

[1,8,27]

assume

Used in programming to state an assumption about a

variable.

assume(Var,Expr)

Example:

assume(n, integer)

y
x