normal(Expr)
Example:
normal(2*x*2) gives 4*x
normalize
Given a vector, returns it divided by its l
2
norm (where the l2 norm is the square root of the sum of the squares
of the vector’s coordinates).
Given a complex number, returns it divided by its modulus.
normalize(Vector) or normalize(Complex)
Example:
normalize(3+4*i) gives (3+4*i)/5
NOT
Returns the logical inverse of a Boolean expression.
not(Expr)
odd
Returns 1 if a given integer is odd, and returns 0 otherwise.
odd(Integer)
Example:
odd(6) gives 0
OR
Logical Or. Returns 1 if either or both sides evaluates to true and 0 otherwise.
Expr1 or Expr2
Example:
3 +1==4 OR 8 < 5 returns 1
order_size
Returns the remainder (O term) of a series expansion: limit(x^a*order_size(x),x=0)=0 if a>0.
order_size(Expr)
pa2b2
Takes a prime integer n congruent to 1 modulo 4 and returns [a,b] such that a^2+b^2=n.
pa2b2(Integer)
Example:
pa2b2(17) gives [4 1]
446 Chapter 22 Functions and commands
Comentários a estes Manuais