beautypg.com

HP Prime Graphing Calculator User Manual

Page 426

background image

422

Functions and commands

TO

Used in programming in a loop when expressing the range of

values of a variable for which a statement should be executed.

translation

With a vector and a point as arguments, returns the point

translated by the vector. With two points as arguments, returns

the second point translated by the vector from the origin to the

first point.

translation(Vect,Pnt(C))

Example:

translation(0-i,GA)

translates object A down one

unit

transpose

Returns a matrix transposed (without conjugation).

transpose(Mtrx)

Example:

tran([[1,2,3],[1,3,6],[2,5,7]])

gives

[[1,1,2],[2,3,5],[3,6,7]]

triangle

Draws a triangle with vertices at the three points.

triangle((Pnt or Cplx),(Pnt or Cplx),(Pnt or
Cplx))

trunc

Returns a value or a list of values truncated to n decimal

places. If n is not provided, it is taken as 0. Accepts complex

numbers.

trunc(Real||LstReal,Int(n))

Example:

trunc(4.3)

gives

4

tsimplify

Returns an expression with transcendentals rewritten as

complex exponentials.

tsimplify(Expr)

Example:

tsimplify(exp(2*x)+exp(x))

gives

exp(x)^2+exp(x)

type

Returns the type of an expression (e.g. list, string).

type(Expr)

Example:

type("abc")

gives

DOM_STRING