Documentation
¶
Overview ¶
Package math provides a convenient way to register extra standard math functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Import ¶
Import registers in the given Context math variadic functions with standard names and given prefix and stores them into global variables. Prefix "math" is recommended, to avoid naming conflicts.
The defined math functions are (monadic) acos, acosh, asin, asinh, atanh, cbrt, cosh, erf, erfc, erfcinv, erfinv, exp2, expm1, gamma, log2, log10, log1p, logb, sinh, tan, tanh, trunc, (dyadic) jn, yn (defaulting to order-zero for monadic case).
mmax[i;I|N] i-item moving maximums (|\ for i first items) mmin[i;I|N] i-item moving minimums (&\ for i first items) mmu[N;N] matrix multiplication or dot product (experimental)
mmu accepts vector (N) and matrix (A) arguments. Works on floats, but currently converts any integers if necessary.
Types ¶
This section is empty.