acosh
($arg as double) as double external
Inverse hyperbolic cosine. |
asinh
($arg as double) as double external
Calculate the inverse hyperbolic sine. |
atanh
($arg as double) as double external
Calculate the hyperbolic tangent. |
avedev
($numbers as double+) as double
Returns the average of the absolute deviations of data points from their mean. |
cast-as-numeric
($number as anyAtomicType) as anyAtomicType
Cast the anyAtomicType to a numeric type. |
ceiling
($number as double, $significance as double) as double
Returns number rounded up, away from zero, to the nearest multiple of significance. |
cosh
($arg as double) as double external
Returns the hyperbolic cosine of x. |
deg-to-rad
($deg as double) as double
Convert angle from degrees to radians. |
even
($number as double) as integer
Returns number rounded up to the nearest even integer. |
fact
($number as integer) as integer
Returns the factorial of a number. |
factdouble
($number as integer) as integer
Returns the double factorial of a number. |
floor
($number as double, $significance as double) as double
Rounds number down, toward zero, to the nearest multiple of significance. |
fmod
($x as double, $y as double) as double external
Function performing the modulo operation between the two arguments. |
frexp
($arg as double) as double+ external
Returns the argument split as mantissa and exponent. |
gcd
($numbers as integer+) as integer
Returns the greatest common divisor GCD of a sequence of integers. |
int
($number as double) as integer
Rounds a number down to the nearest integer. |
is-a-number
($value as anyAtomicType) as boolean
Checks if the anyAtomicType argument is actually a numeric type or can be converted to numeric. |
is_inf
($arg as double) as boolean external
Checks if the double value is positive or negative infinite. |
is_nan
($arg as double) as boolean external
Checks if the double value is Not a Number (NaN). |
large
($numbers as double+, $k as integer) as double
Returns the k-th largest value in a data set. |
lcm
($numbers as integer+) as integer
Returns the least common multiple of integers. |
ldexp
($x as double, $i as integer) as double external
Computes a real number from the mantissa and exponent. |
median
($numbers as double*) as double
Returns the median of the given numbers. |
mod
($number as double, $divisor as double) as double
Returns the remainder after number is divided by divisor. |
mode
($numbers as double*) as double
Returns the most frequently occurring, or repetitive, value in a sequence. |
modf
($arg as double) as double+ external
Splits a floating-point value into fractional and integer parts. |
mround
($number as decimal, $multiple as double) as double
Returns a number rounded to the desired multiple. |
odd
($number as double) as integer
Returns number rounded up to the nearest odd integer, away from zero. |
percentile
($numbers as double*, $k_at as double) as double
Returns the k-th percentile of values in a sequence. |
percentrank
($numbers as double*, $x as double) as double
Returns the rank of a value in a data set as a percentage of the data set. |
prob
($x_range as double+, $prob_range as double+, $range_lower_limit as double) as double
This is the same as math:prob#4, only that upper_limit is not specified. |
prob
($x_range as double+, $prob_range as double+, $range_lower_limit as double, $upper_limit as double) as double
Returns the probability that values in a range are between two limits. |
product
($numbers as double*) as double
Multiplies all the numbers given as arguments and returns the product. |
quartile
($numbers as double*, $quart as integer) as double
Returns the quartile of a data set. |
quotient
($numerator as double, $denominator as double) as integer
Returns the integer portion of a division. |
rad-to-deg
($rad as double) as double
Convert angle from radians to degrees. |
rank
($x as double, $numbers as double*) as double
This RANK function is same as the above, only that $order_ascending is set by default to false. |
rank
($x as double, $numbers as double*, $order_ascending as boolean) as double
Returns the rank of a number in a list of numbers. |
roman
($number as integer) as string
Converts an Arabic numeral to roman, as text. |
round
($number as double, $precision as integer) as double
Rounds a number to a specified number of digits. |
rounddown
($number as double, $precision as integer) as double
Rounds a number down, toward zero. |
roundup
($number as double, $precision as integer) as double
Rounds a number up, away from 0 (zero). |
sign
($number as double) as integer
Determines the sign of a number. |
sinh
($arg as double) as double external
Calculate the hyperbolic sine. |
slope
($known_y as double+, $known_x as double+) as double
Returns the slope of the linear regression line through data points in known_y's and known_x's. |
small
($numbers as double*, $k as integer) as double
This function computes the k-th smallest value in a data set. |
sort-numbers
($numbers as double*) as double*
Sorts a sequence of numbers or arguments castable to numeric. |
standardize
($x as double, $mean as double, $standard_dev as double) as double
Returns a normalized value from a distribution characterized by mean and standard_dev. |
stdev
($numbers as double+) as double
Estimates standard deviation based on a sample. |
stdeva
($numbers as double+) as double
Estimates standard deviation based on a sample. |
stdevp
($numbers as double+) as double
Calculates standard deviation based on the entire population given as arguments. |
stdevpa
($numbers as double+) as double
Calculates standard deviation based on the entire population given as arguments. |
subtotal
($function_num as integer, $numbers as double*) as double
Returns a subtotal in a sequence of numbers. |
sumproduct
($array1 as double*, $array2 as double*) as double
Multiplies the elements on the same position in each sequence and sums up the results. |
sumsq
($numbers as double+) as double
Returns the sum of the squares of the arguments. |
tanh
($arg as double) as double external
Calculate the hyperbolic tangent. |
trunc
($number as double) as integer
Truncates a number to an integer by removing the fractional part of the number. |
trunc
($number as double, $precision as integer) as double
Truncates a number down to precision. |
var
($numbers as double+) as double
Estimates variance based on a sample. |
vara
($numbers as double+) as double
Estimates variance based on a sample. |
varp
($numbers as double+) as double
Calculates variance based on the entire population. |
varpa
($numbers as double+) as double
Calculates variance based on the entire population. |
declare function math:acosh($arg as double) as double external
declare function math:asinh($arg as double) as double external
declare function math:atanh($arg as double) as double external
declare function math:avedev($numbers as double+) as double
The formula is sum(abs(x - average_x))/n, where n is the count of x in the sequence.
Borrowed from excel module.
declare function math:cast-as-numeric($number as anyAtomicType) as anyAtomicType
If the value is already of a numeric type then nothing is changed. Otherwise the value is casted to the numeric type that is most appropriate.
Borrowed from excel module.
declare function math:ceiling($number as double, $significance as double) as double
Significance must have the same sign as number. Number and significance must be of a numeric type or castable to numeric. Significance must not be zero.
Borrowed from excel module.
declare function math:cosh($arg as double) as double external
If the result it too large, INF is returned.
declare function math:deg-to-rad($deg as double) as double
The parameter is first converted to value range of (-360, 360).
declare function math:even($number as double) as integer
Regardless of the sign of number, a value is rounded up when adjusted away from zero.
Borrowed from excel module.
declare function math:fact($number as integer) as integer
Borrowed from excel module.
declare function math:factdouble($number as integer) as integer
Computes the double factorial of n as n(n-2)(n-4)...
Borrowed from excel module.
declare function math:floor($number as double, $significance as double) as double
Significance must have the same sign as number. Borrowed from excel module.
declare function math:fmod($x as double, $y as double) as double external
declare function math:frexp($arg as double) as double+ external
The recombining formula is (mantissa * 2^exponent).
declare function math:gcd($numbers as integer+) as integer
The sequence can have one or more positive integers.
Borrowed from excel module.
declare function math:int($number as double) as integer
Positive numbers are rounded toward zero, negative numbers are rounded away from zero.
Borrowed from excel module.
declare function math:is-a-number($value as anyAtomicType) as boolean
Borrowed from excel module.
declare function math:is_inf($arg as double) as boolean external
declare function math:is_nan($arg as double) as boolean external
declare function math:large($numbers as double+, $k as integer) as double
If n is the number of data points in a range, then LARGE(array,1) returns the largest value, and LARGE(array,n) returns the smallest value.
Borrowed from excel module.
declare function math:lcm($numbers as integer+) as integer
LCM for two numbers is computed by multiplying them and dividing with GCD. The function is applied recursively replacing the first two numbers in the sequence with their LCM.
Borrowed from excel module.
declare function math:ldexp($x as double, $i as integer) as double external
The formula is (x * 2^i).
declare function math:median($numbers as double*) as double
The median is the number in the middle of a set of numbers. Half the numbers have values that are greater than the median, and half the numbers have values that are less than the median.
Borrowed from excel module.
declare function math:mod($number as double, $divisor as double) as double
The result has the same sign as divisor.
Borrowed from excel module.
declare function math:mode($numbers as double*) as double
Borrowed from excel module.
declare function math:modf($arg as double) as double+ external
Both the fraction and integer keep the original sign of the value.
declare function math:mround($number as decimal, $multiple as double) as double
MROUND rounds up, away from zero, if the remainder of dividing number by multiple is greater than or equal to half the value of multiple. MROUND is computed through math:floor function.
Borrowed from excel module.
declare function math:odd($number as double) as integer
Borrowed from excel module.
declare function math:percentile($numbers as double*, $k_at as double) as double
If k is not a multiple of 1/(n - 1), PERCENTILE interpolates to determine the value at the k-th percentile. The function is computed by (max-min)*k + min
Borrowed from excel module.
declare function math:percentrank($numbers as double*, $x as double) as double
If x does not match one of the values in array,
PERCENTRANK interpolates to return the correct percentage rank.
The formula is uses: (RANK - 1) / (size - 1) .
Borrowed from excel module.
declare function math:prob($x_range as double+, $prob_range as double+, $range_lower_limit as double) as double
The probability is computed only for range_lower_limit.
Borrowed from excel module.
declare function math:prob($x_range as double+, $prob_range as double+, $range_lower_limit as double, $upper_limit as double) as double
Borrowed from excel module.
declare function math:product($numbers as double*) as double
Borrowed from excel module.
declare function math:quartile($numbers as double*, $quart as integer) as double
Borrowed from excel module.
declare function math:quotient($numerator as double, $denominator as double) as integer
Borrowed from excel module.
declare function math:rad-to-deg($rad as double) as double
declare function math:rank($x as double, $numbers as double*) as double
Borrowed from excel module.
declare function math:rank($x as double, $numbers as double*, $order_ascending as boolean) as double
The rank of a number is its size relative to other values in a list. (If you were to sort the list, the rank of the number would be its position.) RANK gives duplicate numbers the same rank.
Borrowed from excel module.
declare function math:roman($number as integer) as string
Only the classic format is supported (out of all formats Excel requires). M is the largest digit, it represents 1000. Numbers bigger than 2000 will be represented by a sequence of "M". D = 500, C = 100, L = 50, X = 10, V = 5, I = 1.
Borrowed from excel module.
declare function math:round($number as double, $precision as integer) as double
If precision is greater than 0 (zero), then number is rounded to the specified number of decimal places. If num_digits is 0, then number is rounded to the nearest integer. If num_digits is less than 0, then number is rounded to the left of the decimal point. The 0.5 is rounded away from zero.
Borrowed from excel module.
declare function math:rounddown($number as double, $precision as integer) as double
If num_digits is greater than 0 (zero), then number is rounded down to the specified number of decimal places. If num_digits is 0, then number is rounded down to the nearest integer. If num_digits is less than 0, then number is rounded down to the left of the decimal point.
Borrowed from excel module.
declare function math:roundup($number as double, $precision as integer) as double
If num_digits is greater than 0 (zero), then number is rounded down to the specified number of decimal places. If num_digits is 0, then number is rounded down to the nearest integer. If num_digits is less than 0, then number is rounded down to the left of the decimal point.
Borrowed from excel module.
declare function math:sign($number as double) as integer
Returns 1 if the number is positive, zero (0) if the number is 0, and -1 if the number is negative.
Borrowed from excel module.
declare function math:sinh($arg as double) as double external
declare function math:slope($known_y as double+, $known_x as double+) as double
The slope is the vertical distance divided by the horizontal distance between any two points on the line, which is the rate of change along the regression line. It computes the formula:
sum((x - average_x)(y - average_y)) / sum((x - average_x)^2)
where average_x and average_y are computed with AVERAGE function.
Borrowed from excel module.
declare function math:small($numbers as double*, $k as integer) as double
Use this function to return values with a particular relative standing in a data set. If n is the number of data points in array, SMALL(array,1) equals the smallest value, and SMALL(array,n) equals the largest value. Borrowed from excel module.
declare function math:sort-numbers($numbers as double*) as double*
It first casts all arguments to numeric and then sorts ascending.
Helper function.
Borrowed from excel module.
declare function math:standardize($x as double, $mean as double, $standard_dev as double) as double
The formula is (x - mean) / standard_dev .
Borrowed from excel module.
declare function math:stdev($numbers as double+) as double
The standard deviation is a measure of how widely values are dispersed from the average value (the mean). It is computed with formula: sqrt( sum((x-average_x)^2) / (n-1) ) = sqrt ( VAR(numbers) )
Borrowed from excel module.
declare function math:stdeva($numbers as double+) as double
The standard deviation is a measure of how widely values are dispersed from the average value (the mean). It is computed with formula: sqrt( sum((x-average_x)^2) / (n-1) ) = sqrt ( VARA(numbers) )
Borrowed from excel module.
declare function math:stdevp($numbers as double+) as double
The standard deviation is a measure of how widely values are dispersed from the average value (the mean). It is computed with formula: sqrt( sum((x-average_x)^2) / n ) = sqrt ( VARP(numbers) )
Borrowed from excel module.
declare function math:stdevpa($numbers as double+) as double
The standard deviation is a measure of how widely values are dispersed from the average value (the mean). It is computed with formula: sqrt( sum((x-average_x)^2) / n ) = sqrt ( VARPA(numbers) )
Borrowed from excel module.
declare function math:subtotal($function_num as integer, $numbers as double*) as double
The function applied is given by $function_num.
Borrowed from excel module.
declare function math:sumproduct($array1 as double*, $array2 as double*) as double
Borrowed from excel module.
declare function math:sumsq($numbers as double+) as double
It uses the sumproduct function.
Borrowed from excel module.
declare function math:tanh($arg as double) as double external
declare function math:trunc($number as double) as integer
Borrowed from excel module.
declare function math:trunc($number as double, $precision as integer) as double
This behaves exactly like rounddown.
Borrowed from excel module.
declare function math:var($numbers as double+) as double
The formula is sum(x - average_x)^2 / (n - 1). average_x is computed with AVERAGE function. n is the count of numbers from the sequence, excluding empty values.
Borrowed from excel module.
declare function math:vara($numbers as double+) as double
The formula is sum(x - average_x)^2 / (n - 1). average_x is computed with AVERAGE function. n is the size of sequence, including empty values.
Borrowed from excel module.
declare function math:varp($numbers as double+) as double
The formula is sum(x - average_x)^2 / n. average_x is computed with AVERAGE function. n is the count of numbers from the sequence, excluding empty values.
Borrowed from excel module.
declare function math:varpa($numbers as double+) as double
The formula is sum(x - average_x)^2 / n. average_x is computed with AVERAGE function. n is the size of sequence, including empty values.
Borrowed from excel module.