Mathematical Functions
e
Returns (Euler's constant).
Syntax
e()
Returned value
Type: Float64.
pi
Returns (Pi).
Syntax
pi()
Returned value
Type: Float64.
exp
Returns , where x is the given argument to the function.
Syntax
exp(x)
Arguments
Example
Query:
SELECT round(exp(-1), 4);
Result:
┌─round(exp(-1), 4)─┐
│ 0.3679 │
└───────────────────┘
Returned value
Type: Float*.
log
Returns the natural logarithm of the argument.
Syntax
log(x)
Alias: ln(x)
Arguments
Returned value
Type: Float*.
exp2
Returns 2 to the power of the given argument
Syntax
exp2(x)
Arguments
Returned value
Type: Float*.
intExp2
Like exp
but returns a UInt64.
Syntax
intExp2(x)
log2
Returns the binary logarithm of the argument.
Syntax
log2(x)
Arguments
Returned value
Type: Float*.
exp10
Returns 10 to the power of the given argument.
Syntax
exp10(x)
Arguments
Returned value
Type: Float*.
intExp10
Like exp10
but returns a UInt64.
Syntax
intExp10(x)
log10
Returns the decimal logarithm of the argument.
Syntax
log10(x)
Arguments
Returned value
Type: Float*.
sqrt
Returns the square root of the argument.
sqrt(x)
Arguments
Returned value
Type: Float*.
cbrt
Returns the cubic root of the argument.
cbrt(x)
Arguments
Returned value
Type: Float*.
erf
If x
is non-negative, then