HP Prime Graphing Wireless Calculator User Manual

Page 180

Advertising
background image

176

Functions and commands

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 or matrix containing the results of applying a

function to the elements in the vector or matrix.

apply(Var→f(Var), Vector) or apply(Var→f(Var),
Matrix)

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)

basis

Given a matrix, returns the basis of the linear subspace

defined by the set of vectors in the matrix.

basis(Matrix))

Example:

basis([[1,2,3],[4,5,6],[7,8,9],[10,11,12]])

gives

[[-3,0,3],[0,-3,-6]]

bounded_function

Argument returned by the limit command, indicating that the
function is bounded.

breakpoint

Used in programming to insert an intentional stopping or

pausing point.

Advertising