AetherlangLib: Math

A package for more complex mathematical operations. They work exactly the way you would expect them to work.

Constants


eul @ of number
@ constant e (Euler's number).

pi @ of number
@ constant π of type number.

Functions


cos x @-> number
@ where x: number in radians
@ cos(X).

cot x @-> number
@ where x: number in radians
@ cot(X).

div x y @-> number
@ where x: number
@       y: number
@ returns integer part from division X/Y.

%
mod x y @-> number
@ where x: number
@       y: number
@ returns remainder from division X/Y.

exp x @-> number
@ where x: number
@ exp(X) or e^X.

lg x @-> number
@ where x: number
@ log_10(Y).

ln x @-> number
@ where x: number
@ returns natural logarithm of X.

log x y @-> number
@ where x: number
@       y: number
@ log_X(Y).

[v0.2+]
max arg1...argN @-> number
@ where arg1...argN: numbers
@ returns the maximum value of all the given.

[v0.2+]
min arg1...argN @-> number
@ where arg1...argN: numbers
@ returns the minimum value of all the given.

mean arg1...argN @-> number
@ where arg1...argN: numbers
@ calculates mean value of all the given.

pow x y @-> number
@ where x: number
@       y: number
@ X^Y.

sin x @-> number
@ where x: number in radians
@ sin(X).

sqrt x @-> number
@ where x: number
@ square root of X.

tan x @-> number
@ where x: number in radians
@ tan(X).