## Math Query Functions

LogScale's math query functions provide a range of arithmetical and numerical functions.

Table: Math Query Functions

FunctionDefault ArgumentAvailabilityDescription
math:abs([as], field)field  Calculates the absolute value of a field; the result is always a positive number or 0.
math:arccos([as], field)field  Calculates the arc cosine of a field.
math:arcsin([as], field)field  Calculates the arc sine of a field.
math:arctan([as], field)field  Calculates the arc tangent of a value.
math:arctan2([as], x, y)   Calculates the arc tangent of a value.
math:ceil([as], field)field  Rounds field value to smallest integer that's larger than or equal to it.
math:cos([as], field)field  Calculates the cosine of a field.
math:cosh([as], field)   Computes the hyperbolic cosine of a double field.
math:exp([as], field)field  Calculates Euler's number e raised to the power of a double value in a field.
math:expm1([as], field)field  Calculates the exponential value of a number minus 1.
math:floor([as], field)field  Computes the largest integer value not greater than the field value given.
math:log([as], field)field  Calculates the natural logarithm (base e) of the value in a double field.
math:log10([as], field)field  Calculates the base 10 logarithm of a double field.
math:log1p([as], field)field  Calculates the natural logarithm of the sum of field's value and 1.
math:log2([as], field)field  Calculates the base 2 logarithm of a double field.
math:mod([as], divisor, field)field  Calculates the floor modulus of field value and the divisor.
math:pow([as], exponent, field)field  Calculates the field value to the exponent power.