
Functions and commands 203
QUOTE Returns an expression unevaluated.
quote(Expr)
randexp Given a positive real number, returns a random real number
according to the exponential distribution with real a>0.
randexp(Real)
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
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
reduced_conic Takes a conic expression and returns a vector with the
following items:
• The origin of the conic
• The matrix of a basis in which the conic is reduced
• 0 or 1 (0 if the conic is degenerate)
• The reduced equation of the conic
• A vector of the conic’s parametric equations
reduced_conic(Expr, [Vector])
x
2
1–
x
3
1–
----------------
x 1+
x
2
x 1++
-------------------------
Kommentare zu diesen Handbüchern