Math Functions
Math functions are a collection of functions used to perform various mathematical operations and calculations.They include basic arithmetic functions (such as addition, subtraction, multiplication, division), trigonometric functions (such as sin, cos, tan), exponential functions, logarithmic functions, etc.These functions can help you perform numerical calculations, solve mathematical problems, and create mathematical models.
abs
Returns the absolute value of a number.
abs(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View abs Example
acos
Return the inverse cosine of a number.
acos(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View acos Example
acosh
Returns the hyperbolic cosine or hyperbolic cosecant of a number.
acosh(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View acosh Example
asin
Returns the arcsine of a number.
asin(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View asin Example
asinh
Returns the area hyperbolic sine or inverse hyperbolic sine of a number.
asinh(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View asinh Example
atan
Returns the arctangent of a number.
atan(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View atan Example
atanh
Returns the hyperbolic tangent or inverse hyperbolic tangent of a number.
atanh(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View atanh Example
atan2
Return the arctangent of expression_y / expression_x
atan2(expression_y, expression_x)
| Parameters | Description |
|---|---|
expression_y | The first numerical expression to operate.Can be a constant, column, or function, and any combination of arithmetic operators. |
expression_x | The second numerical expression to operate.Can be a constant, column, or function, and any combination of arithmetic operators. |
View atan2 Example
cbrt
Return the cube root of a number.
cbrt(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View cbrt Example
ceil
Round up.
ceil(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View ceil Example
cos
Returns the cosine of a number.
cos(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View cos Example
cosh
Returns the hyperbolic cosine of a number.
cosh(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View cosh Example
exp
Returns the exponential of a number with base e.
exp(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View exp Example
factorial
Factorial.If the value is less than 2, return 1.
factorial(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View factorial Example
floor
Floor.
floor(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View floor Example
gcd
Returns the greatest common divisor of expression_x and expression_y.If both inputs are zero, return 0.
gcd(expression_x, expression_y)
| Parameters | Description |
|---|---|
expression_x | Can be a constant, column, or function, and any combination of arithmetic operators. |
expression_y | Can be a constant, column, or function, and any combination of arithmetic operators. |
View gcd Example
lcm
Returns the least common multiple of expression_x and expression_y.If any input value is zero, return 0.
lcm(expression_x, expression_y)
| Parameters | Description |
|---|---|
expression_x | Can be a constant, column, or function, and any combination of arithmetic operators. |
expression_y | Can be a constant, column, or function, and any combination of arithmetic operators. |
View lcm Example
ln
Returns the natural logarithm of a number.
ln(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View ln Example
log
Returns the base x logarithm of a number.Can provide a specified radix, or if omitted, defaults to a radix of 10.
log(base, numeric_expression)
log(numeric_expression)
| Parameters | Description |
|---|---|
base | Cardinality: Can be a constant, column, or function, and any combination of arithmetic operators. |
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View log Example
log10
Returns the base 10 logarithm of a number.
log10(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View log10 Example
log2
Return the base 2 logarithm of a number.
log2(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View log2 Example
pi
Return the approximate value of π.
pi()
View pi Example
power
Returns the exponentiation of a base expression.
power(base, exponent)
| Parameters | Description |
|---|---|
base | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
exponent | The numerical expression of the exponent to be calculated.Can be a constant, column, or function, and any combination of arithmetic operators. |
View power Example
pow
Alias for power
radians
Converts degrees to radians.
radians(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
View radians Example
random
Returns a random floating-point value within the range of 0 to -1.The random seed is unique for each row.
random()
View random Example
round
Round the number to the nearest integer.
round(numeric_expression[, decimal_places])
| Parameters | Description |
|---|---|
numeric_expression | Expression to operate on.Can be a constant, column, or function, and any combination of arithmetic operators. |
decimal_places | Decimal places: Optional.Number of decimal places to round to.Default is 0. |
View round Example
signum
Return the sign of a number.Negative numbers return -1.Zero and positive number return 1.
signum(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Can be a constant, column, or function, and any combination of arithmetic operators. |
View signum Example
sin
Return the sine value of a number.
sin(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Can be a constant, column, or function, and any combination of arithmetic operators. |
View sin Example
sinh
Returns the hyperbolic sine of a number.
sinh(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Can be a constant, column, or function, and any combination of arithmetic operators. |
View sinh Example
sqrt
Return the square root of a number.
sqrt(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Can be a constant, column, or function, and any combination of arithmetic operators. |
View sqrt Example
tan
Returns the tangent value of a number.
tan(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Can be a constant, column, or function, and any combination of arithmetic operators. |
View tan Example
tanh
Return the hyperbolic tangent value of a number.
tanh(numeric_expression)
| Parameters | Description |
|---|---|
numeric_expression | Can be a constant, column, or function, and any combination of arithmetic operators. |
View tanh Example
trunc
Truncate a number to an integer or truncate to the specified number of decimal places.
trunc(numeric_expression[, decimal_places])
| Parameters | Description |
|---|---|
numeric_expression | Can be a constant, column, or function, and any combination of arithmetic operators. |
decimal_places | Decimal places: Optional.The number of decimal places to truncate to.Default is 0 (truncated to an integer).If decimal_places is a positive integer, truncate digits to the right of the decimal point.If decimal_places is a negative integer, replace digits to the left of the decimal point with 0. |