|
Return the absolute value of the input x. | |
|
Round up to the nearest integer. | |
|
Round down to the nearest integer. | |
|
Return the natural logarithm of the input value. | |
|
Return the base 10 logarithm of the input value. | |
|
Return the logarithm of the input value in the specified base. | |
|
Return the arithmetic mean of the input set. | |
|
Return the sample standard deviation of the input set. | |
|
Return the population standard deviation of the input set. | |
|
Return the sample variance of the input set. | |
|
Return the population variance of the input set. |
Return the absolute value of the input x.
db>
SELECT math::abs(1);{1}db>
SELECT math::abs(-1);{1}Round up to the nearest integer.
db>
SELECT math::ceil(1.1);{2}db>
SELECT math::ceil(-1.1);{-1}Round down to the nearest integer.
db>
SELECT math::floor(1.1);{1}db>
SELECT math::floor(-1.1);{-2}Return the natural logarithm of the input value.
db>
SELECT 2.718281829 ^ math::ln(100);{100.00000009164575}Return the base 10 logarithm of the input value.
db>
SELECT 10 ^ math::lg(42);{42.00000000000001}Return the logarithm of the input value in the specified base.
db>
SELECT 3 ^ math::log(15n, base := 3n);{15.0000000000000005n}Return the arithmetic mean of the input set.
db>
SELECT math::mean({1, 3, 5});{3}Return the sample standard deviation of the input set.
db>
SELECT math::stddev({1, 3, 5});{2}Return the population standard deviation of the input set.
db>
SELECT math::stddev_pop({1, 3, 5});{1.63299316185545}Return the sample variance of the input set.
db>
SELECT math::var({1, 3, 5});{4}Return the population variance of the input set.
db>
SELECT math::var_pop({1, 3, 5});{2.66666666666667}