Variable: evaluateKatexTool
ts
const evaluateKatexTool: Tool<SpooledArtifact>;Translates a LaTeX/KaTeX expression into mathjs syntax, evaluates it, and returns the result.
Remarks
Translates common LaTeX constructs (\frac{a}{b}, \sqrt{...}, \cdot, \times, Greek macros like \pi, \left/\right delimiters, \text{...}, subscripts, etc.) into their mathjs equivalents before evaluation. Both the source and the translated mathjs expression are subject to the 1000-character length cap.
Parse and evaluation errors are returned as error strings rather than thrown.