beautypg.com

HP Prime Graphing Calculator User Manual

Page 417

background image

Functions and commands

411

randperm

Given a positive integer, returns a random permutation of

[0,1,2,...,n–1].

randperm(Intg(n))

Example:

randperm(4) returns a random permutation of the elements of

the vector [0 1 2 3]

ratnormal

Rewrites an expression as an irreducible rational fraction.

ratnormal(Expr)

Example:

ratnormal

returns

reciprocation

Given a circle and a vector containing points and lines,

returns a vector containing the polar line of each point and

the pole of each line, with respect to the circle.

reciprocation(Crcle,Lst(Pnt,Line))

Example:

reciprocation(circle(0,1), [line(1+i, 2),

point(1+i*2)]) returns

rectangular_

coordinate

Given a vector containing the polar coordinates of a point,

returns a vector containing the rectangular coordinates of the

point.

rectangular_coordinates(Vector)

Example:

rectangular_coordinates([1, π/4]) returns

red

Used in the Symbolic view of the Geometry app. In the

definition of a geometric object, including the statement
“display=red” specifies that the object defined will be

drawn in red.

x

2

1

x

3

1

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

x 1

+

x

2

x 1

+ +

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

point 1

2

--- 1

2

---

 line y

1

2

---

x 1

2

---

+

=

2

2

-------

2

2

-------