num Module

+

num1 num2 num3

Sums num1 and num2.

-

num1 num2 num3

Subtracts num2 from num1.

-inf

num

Returns negative infinity.

*

num1 num2 num3

Multiplies num1 by num2.

/

num1 num2 num3

Divides num1 by num2.

even?

int bool

Returns true if int is even, false otherwise.

div

int1 int2 int3

Divides int1 by int2 (integer division).

inf

num

Returns infinity.

mod

int1 int2 int3

Returns the integer module of int1 divided by int2.

nan

nan

Returns NaN (not a number).

odd?

int bool

Returns true if int is odd, false otherwise.

pred

int1 int2

Returns the predecessor of int1.

random

int1 int2

Returns a random number int2 between 0 and int1-1.

%note% Note

You must call randomize to initialize the random number generator, otherwise the same sequence of numbers will be returned.

randomize

{{null}

Initializes the random number generator using a seed based on the current timestamp.

succ

int1 int2

Returns the successor of int1.

sum

quot int

Returns the sum of all items of quot. quot is a quotation of integers.