Limit or limit mathjax math operands

I have a web tool that should allow my users to define their own formulas based on a very limited set of operators: "- + * / -"

some "group operators": "MAX (a, b, c, d) MIN (a, b, c, d) AVG (a, b, c, d) MAX_T (a, b) MIN_T (a, b) AVG_T (a, b) DELTA_T (a, b) "

and brackets are allowed.

Numbers as well as variable names are allowed as operands.

Is there a way to prevent users from using characters not in the set of operators and operands listed above? I do not see anything related to this in the documentation

+4
source share

Source: https://habr.com/ru/post/1629171/


All Articles