Function
Description
Example
Result
abs(x)
Absolute value
abs(-3)
3
acos(x), acosh(x), asin(x),
asinh(x), atan(x), atanh(x),
cos(x), cosh(x), sin(x),
sinh(x), tan(x), tanh(x)
Trigonometric functions
tan(pi/4)
1
ceiling(x)
Rounds up to integer
ceiling(4.1)
5
exp(x)
e^x
exp(0)
factorial(x)
Factorial
factorial(3)
6
floor(x)
Rounds down to integer
floor(4.1)
4
log(x)
Natural logarithm
log(1)
0
log10(x)
Base 10 logarithm
log(100)
2
round(x, digits = n)
Rounds to number of digits specified
round(4.12, digits = 1)
4.1
sign(x)
Returns the sign of the input
sign(-5)
-1
signif(x, digits = n)
Provides the number of significant digits specified
signif(4.12, digits = 1)
sqrt(x)
Square root
sqrt(16)
trunc(x)
Truncates to integer
trunc(4.1)