"HeldMathExpression" (Interpreter Type)
Mathematical expression in natural language.
Details
- "HeldMathExpression" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "HeldMathExpression" requires connectivity to the Wolfram Cloud.
- "HeldMathExpression" keeps its result unevaluated by wrapping it in HoldComplete.
Restriction Specifications
-
Restricted["HeldMathExpression",{{choice1,…}}] one among choices Restricted["HeldMathExpression",symbols] an expression involving only the given symbols (All, Automatic, or an explicit list) Restricted["HeldMathExpression",symbols,contexts] an expression involving only the given symbols or symbols in the given contexts (All, Automatic, or an explicit list) Restricted["HeldMathExpression",symbols,contexts,resultcontext] an expression involving only the given symbols or symbols in the given contexts, where the new symbols are created in resultcontext
Interpretation
- "HeldMathExpression" yields a Wolfram Language expression wrapped in HoldComplete.
Examples
Basic Examples (6)
Interpret mathematical expressions and avoid evaluation:
Find out Wolfram Language representations of natural language queries:
No evaluation is attempted when matching the choices:
By default, new symbols are created in $Context, but a custom context can be specified: