"MathExpression" (Interpreter Type)

Mathematical expression in natural language.


Allowed Forms

  • Any free-form mathematical expression.

Restriction Specifications


  • "MathExpression" yields a representation of the expression in the Wolfram Language.


Basic Examples  (7)

Interpret mathematical expressions:

The expression is evaluated:

Restrict to a list of choices:

By default, all symbols are allowed. Restrict to a list of allowed symbols:

By default, new symbols are created in $Context, but a custom context can be specified:

Specify contexts for the allowed and output symbols:

Prevent the creation of any new symbol: