ilusm.dev

mth

math domain (numeric stdlib).

Load with: use mth

Quick example

use mth

result = mthab("value")
prn(result)

Functions

Functions

mthab(x)

Performs the operation. Takes x.

mthmi(a, b)

Performs the operation. Takes a, b.

mthma(a, b)

Performs the operation. Takes a, b.

mthcl(x, lo, hi)

Closes or clears. Takes x, lo, hi.

mthpo(x, n)

Performs the operation. Takes x, n.

mthsq(n)

Performs the operation. Takes n.

mthsi(x)

Performs the operation. Takes x.

mthgc(a, b)

Performs the operation. Takes a, b.

mthlc(a, b)

Performs the operation. Takes a, b.

mthsu(xs)

Performs the operation. Takes xs.

mthme(xs)

Performs the operation. Takes xs.

mthpr(xs)

Processes or prints. Takes xs.

mthfa(n)

Performs the operation. Takes n.

mthmo(a, m)

Performs the operation. Takes a, m.

mthso(xs)

Performs the operation. Takes xs.

mthme(xs)

Performs the operation. Takes xs.

host float ops + module export (callers expect mth.abs, mth.pi, …)

mth_pi_fn()

Finalises.

mth_sn(x)

Performs the operation. Takes x.

mth_ex(x)

Executes. Takes x.

mth_lg(x)

Performs the operation. Takes x.

mth_th(x)

Performs the operation. Takes x.

mth_sy_pi()

Performs the operation.

mth_sy_co(x)

Connects. Takes x.

mth_sy_at(x)

Performs the operation. Takes x.

mth_sy_ln(x)

Performs the operation. Takes x.

mth_random()

Performs the operation.

mth_atan2(y, x)

Performs the operation. Takes y, x.

Notes

  • Mathematics - abs, min, max, sqrt, trig, log, random.
  • All functions available via mth.fn aliases.