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 enginearrow-up-right that powers all page calculations.

These include:

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.

circle-info

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]
circle-info

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 referencearrow-up-right. Nearly all functions listed there are available in CalcTree unless noted otherwise in this guide.

circle-info

📘 Looking for more functions? CalcTree’s expression engine is powered by MathJSarrow-up-right. For a full list of available functions, visit the MathJS Function Referencearrow-up-right. Most functions listed there are supported in CalcTree unless otherwise noted.

Last updated