Math Functions

A collection of math functions for lookup and reference. A function is a useful tool and design pattern in mathematics, especially with the use of computers. Each function is linked to a page that describes its usage.

Arithmetic

Absolute Value
abs(x)
Floor
floor(n)
Greatest Common Denominator
gcd(a,b)
Is Prime
isprime(n)
Logarithm
log(x,b)
Modulus
mod(x,n)
Power
pow(b,y)
Square Root
sqrt(x)

Calculus

Exponential Function
exp(x)
Natural Logarithm
ln(x)

Trigonometry

Sine
sin(θ)
Cosine
cos(θ)
Tangent
tan(θ)
Arc Sine
asin(n)
Arc Cosine
acos(n)
Arc Tangent
atan(n)
Arc Tangent 2
atan2(y,x)
Cosecant
csc(θ)
Cotangent
cot(θ)
Secant
sec(θ)