Arithmetic Functions


StatementFunction

atan2($x,$y)

Returns the arctangent of $y/$x.

cos($x)

Returns the cosine of $x.

exp($x)

Returns e$x, where e = 2.7182818

int($x)

Returns the largest integer less than $x.

log($x)

Returns the natural logarithm of $x.

rand

Returns a random number.

sin($x)

Returns the sine of $x.

sqrt($x)

Returns the square root of $x.

srand

Initializes the random number generator.

time

Returns the current time.