Arithmetic
x+y (precedence 6)
Addition.
+x
Unary plus.
x-y (precedence 5)
Subtraction.
-x
Unary minus.
x*y (precedence 3)
Multiplication.
x/y (precedence 3)
Division.
x^y (precedence 2)
Raising "x" to the power of "y".
Div(x,y)
Div(x,y) : integer division.
Mod(x,y)
Mod(x,y) : integer remainder after division.
number<<bits
number<<bits : Shift "number" "bits" to the left.
Example: "1<<10;" should evaluate to "1024".
number>>bits
number>>bits : Shift "number" "bits" to the right.
Example: "1024>>10;" should evaluate to "1".
FromBase(base,number)
FromBase(base,number) : Conversion of numbers to base 10 numbers.
Example: "ToBase(2,255);" should return "11111111".
ToBase(base,number)
ToBase(base,number) : Conversion of numbers from base 10 numbers.
Example: "ToBase(16,255);" should return "ff".
Precision(n)
Precision(n) :
Specifies that calculations should be performed with
a precision of "n" digits.
GetPrecision()
GetPrecision() : return the current precision used for calculations.
Rationalize(x)
Rationalize(x) : Convert all floating point numbers
to rationals in expression x.
IsPrime(n)
IsPrime(n) : returns True if n is prime, False otherwise.
IsPrimePower(n)
IsPrimePower(n) : returns True if there is a prime p such that
p^m = n.
Factors(n)
Factors(n) : factorizes n. Returns a list containing the factors.