Functions
Function | Name | Behaviour |
---|---|---|
sqrt() | Square Root | Returns the square root of a number (also known as √ ) |
cbrt() | Cube Root | Returns the cube root of a number |
abs() | Absolute value | Returns the absolute value of a number (i.e makes a negative number positive) |
sin() | Sine | Returns the sine of an angle (in radians) |
cos() | Cosine | Returns the cosine of an angle (in radians) |
tan() | Tangent | Returns the tangent of an angle (in radians) |
ln() | Natural Logarithm | The natural logarithm of a number is its logarithm to the base of the mathematical constant e . |
log2 | Logarithm Base 2 | Returns the logarithm of a number to the base 2 |
log10 | Logarithm Base 10 | Returns the logarithm of a number to the base 10 |
acos() | Arc Cosine | Returns the arc cosine of a number (inverse of cosine) |
asin() | Arc Sine | Returns the arc sine of a number (inverse of sine) |
atan() | Arc Tangent | Returns the arc tangent of a number (inverse of tangent) |
csc() | Cosecant | Returns the cosecant of an angle (1/sin) |
sec() | Secant | Returns the secant of an angle (1/cos) |
cot() | Cotangent | Returns the cotangent of an angle (1/tan) |
exp() | Exponential | Returns the value of e raised to the power of a number |
fact() | Factorial | Returns the factorial of a number n! (if the number is negative, the absolute value of it is used) |
Examples
Section titled “Examples”sqrt(16) | 4cbrt(27) | 3abs(-5) | 5fact(5) | 120ln(20) | 3log2(32) | 5ln(e) | 1