Math - scientific and numeric functions extending the transformations expression vocabulary
A platform math vocabulary for kanonak.org/transformations (tx). tx ships the core arithmetic (Add / Subtract / Multiply / Divide), the unary Abs / Negate, and list aggregates (Min / Max over a list-valued source). This package adds the scientific and numeric functions a quantitative or numeric-runtime domain needs - transcendentals, power, modulo, rounding, sign, pairwise minimum / maximum, and a clamp - authored as tx.Expression subclasses so they compose anywhere a tx operand is expected. Unary functions extend tx.UnaryNumericOp (reusing the inherited tx.value operand); binary functions extend tx.BinaryArithmetic (reusing arithLeft / arithRight); Clip is a ternary Expression with its own operands. Each operation is total over its documented domain or raises a runtime error on a domain violation (matching tx's strict-numeric pattern); the per-language primitive implementations live in the runners, keyed on the node class. v1 is a deliberate core. Reserved for later versions (added without breaking this one): trigonometric (Sin / Cos / Tan) and inverse-trig, hyperbolic functions, arbitrary-base Log, cube root, and variadic (n-ary) min / max. Versions are immutable and additive.