Skip to content

Functions

FunctionNameBehaviour
sqrt()Square RootReturns the square root of a number (also known as )
cbrt()Cube RootReturns the cube root of a number
abs()Absolute valueReturns the absolute value of a number (i.e makes a negative number positive)
sin()SineReturns the sine of an angle (in radians)
cos()CosineReturns the cosine of an angle (in radians)
tan()TangentReturns the tangent of an angle (in radians)
ln()Natural LogarithmThe natural logarithm of a number is its logarithm to the base of the mathematical constant e.
log2Logarithm Base 2Returns the logarithm of a number to the base 2
log10Logarithm Base 10Returns the logarithm of a number to the base 10
acos()Arc CosineReturns the arc cosine of a number (inverse of cosine)
asin()Arc SineReturns the arc sine of a number (inverse of sine)
atan()Arc TangentReturns the arc tangent of a number (inverse of tangent)
csc()CosecantReturns the cosecant of an angle (1/sin)
sec()SecantReturns the secant of an angle (1/cos)
cot()CotangentReturns the cotangent of an angle (1/tan)
exp()ExponentialReturns the value of e raised to the power of a number
fact()FactorialReturns the factorial of a number n! (if the number is negative, the absolute value of it is used)
sqrt(16) | 4
cbrt(27) | 3
abs(-5) | 5
fact(5) | 120
ln(20) | 3
log2(32) | 5
ln(e) | 1