View on GitHub

Riddim

Interpreted language made in C++ designed for algorithms / data structures

Summary

math

Mathematical functions

Constants

math.acos

Returns the arc cosinus of x

acos(x)

math.asin

Returns the arc sinus of x

asin(x)

math.atan

Returns the arc tangent of x

atan(x)

math.cos

Returns the cosinus of x

cos(x)

math.exp

Returns the exponential of x

exp(x)

math.factorial

Returns the factorial of Int(x)

factorial(x)

math.gcd

Returns the greatest common divisor between a and b

gcd(a, b)

math.isfinite

Returns whether x is neither inf nor nan

isfinite(x)

math.lcm

Returns the least common multiple between a and b

lcm(a, b)

math.log

Returns the natural logarithm of x

log(x)

math.log2

Returns the logarithm (base 2) of x

log2(x)

math.pow

Returns a power b

pow(a, b)

math.sin

Returns the sinus of x

sin(x)

math.sqrt

Returns the square root of x

sqrt(x)

math.tan

Returns the tangent of x

tan(x)