next up previous contents
Next: The Rounding Function Up: Mathematical Functions Previous: DisconMinimize Function

The Modulus Function

Calling Sequence:
mod(
x, y)
Parameters:
x : real
y : real > 0

Returns: {posint, 0}

Synopsis: This function computes the function x (mod y) ie. it returns the integer remainder after dividing y into x. Note: for extemely large values of x, this function does not work correctly.

Examples:

> mod(5, 2);
> mod(99, 1);
> mod(-3, 2);

See also: floor, round, trunc

Calling Sequence:
NBody(
distance, variance, k1, k2, bodies)
Parameters:
distance : array(array(real))
variance : array(array(real))
k1, k2 : real >0
bodies : list(list(real))

Synopsis: NBody solves the n-body steady state problem for k1dimensions, then squeezes the coordinates to k2 dimensions.

Examples:


See also: MaximizeFunc, MinimizeFunc, Minimzie2D, DisconMinimize




Gaston Gonnet
1998-09-15