"HeldMathFormula" (Interpreter Type)
Mathematical formula in natural language.
Details
- "HeldMathFormula" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "HeldMathFormula" requires connectivity to the Wolfram Cloud.
- "HeldMathFormula" keeps its result unevaluated by wrapping it in HoldComplete.
Restriction Specifications
-
Restricted["HeldMathFormula",{{choice1,…}}] one among choices Restricted["HeldMathFormula",symbols] a formula involving only the given symbols (All, Automatic, or an explicit list) Restricted["HeldMathFormula",symbols,contexts] a formula involving only the given symbols or symbols in the given contexts (All, Automatic, or an explicit list) Restricted["HeldMathFormula",symbols,contexts,resultcontext] a formula involving only the given symbols or symbols in the given contexts, where the new symbols are created in resultcontext
Interpretation
- "HeldMathFormula" yields a representation of the formula in the Wolfram Language, usually with an Equal, Greater, GreaterEqual, Less, or LessEqual head. The result is wrapped in HoldComplete.
Examples
Basic Examples (7)
Interpret mathematical formulas:
Find out Wolfram Language representations of natural language queries:
No evaluation is attempted when matching the 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: