Other native functions
In addition to the core function categories listed in this help guide (e.g. Arithmetic, Matrix, Trigonometry), CalcTree also supports a range of less commonly used but still powerful functions from the MathJS engine that powers all page calculations.
These include:
Algebraic functions (e.g.
simplify(),derivative())Complex number functions (e.g.
re(x),im(x),conj(x))Geometry functions (e.g.
distance(),intersect())Set operations (e.g.
setUnion(),setIntersect())Signal processing (e.g.
freqz(),zpk2tf())Special math functions (e.g.
erf(),zeta())
These functions are available within CalcTree’s MathJS-based expression engine, but have not been explicitly tested or verified in our environment. You may encounter unexpected behavior or partial support in some cases.
Need help or find an issue? Reach out to contact@calctree.com — we’re happy to assist or log any unsupported behavior for future improvements.
Using These Functions
You can use them just like any other native function. For example:
re(3 + 4i) // → 3
setUnion([1, 2], [2, 3]) // → [1, 2, 3]Note: Even though the underlying engine uses math.functionName() syntax, you should just use functionName() directly in CalcTree (e.g., abs(x), not math.abs(x)).
Full Function Reference
For a complete list of available functions, see the MathJS function reference. Nearly all functions listed there are available in CalcTree unless noted otherwise in this guide.
📘 Looking for more functions? CalcTree’s expression engine is powered by MathJS. For a full list of available functions, visit the MathJS Function Reference. Most functions listed there are supported in CalcTree unless otherwise noted.
Last updated