-
Notifications
You must be signed in to change notification settings - Fork 6
library__m
#m
Mathematical functions.
m:abs(N)
Returns the absolute value of N evaluated as an integer.
m:absd(N)
Returns the absolute value of N evaluated as a double.
m:ceil(value)
java.lang.Math.ceil
m:exp(N)
Returns Euler's number e raised to the power of N evaluated as a double.
m:floor(value)
java.lang.Math.floor
m:hypot(N, M)
Evaluates N and M as doubles and returns their hypothenuse.
m:log(N)
Returns the base 10 logarithm of N evaluated as a double.
m:logn(N)
Returns the natural logarithm (base e) of N evaluated as a double.
m:max(N, M)
Returns the greater of N and M evaluated as integers.
m:maxd(N, M)
Returns the greater of N and M evaluated as doubles.
m:min(N, M)
Returns the smaller of N and M evaluated as integers.
m:mind(N, M)
Returns the smaller of N and M evaluated as doubles.
m:mmax(elements, value)
Evaluates elements as a list of elements. For each element evaluates value as an integer. Returns the highest value.
m:mmaxd(elements, value)
Evaluates elements as a list of elements. For each element evaluates value as a double. Returns the highest value.
m:mmin(elements, value)
Evaluates elements as a list of elements. For each element evaluates value as an integer. Returns the lowest value.
m:mmind(elements, value)
Evaluates elements as a list of elements. For each element evaluates value as a double. Returns the lowest value.
m:pow(N, M)
Returns N evaluated as a double raised to the power of M evaluated as a double.
m:prod(ELTS, VALUE)
Evaluates ELTS as a list of elements, and for each member, evaluates VALUE as a double. Returns the product.
m:prodi(ELTS, VALUE)
Evaluates ELTS as a list of elements, and for each member, evaluates VALUE as an integer. Returns the product.
m:round(value)
java.lang.Math.round
m:sqrt(N)
Returns the positive square root of N evaluated as a double.
m:sum(ELTS, VALUE)
Evaluates ELTS as a list of elements, and for each member, evaluates VALUE as an integer. Returns the sum.
m:sumd(ELTS, VALUE)
Evaluates ELTS as a list of elements, and for each member, evaluates VALUE as a double. Returns the sum.