"HeldMathExpression" (interpreter type)

Mathematical expression in natural language.

DetailsDetails

Allowed FormsAllowed Forms

  • Any free-form mathematical expression, excluding the inequalities covered by "MathFormula".

Restriction SpecificationsRestriction Specifications

InterpretationInterpretation

ExamplesExamplesopen allclose all

Basic Examples  (6)Basic Examples  (6)

Interpret mathematical expressions and avoid evaluation:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Find out Wolfram Language representations of natural language queries:

In[1]:=
Click for copyable input
Out[1]=

Equalities and inequalities are excluded:

In[1]:=
Click for copyable input
Out[1]=

No evaluation is attempted when matching the choices:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

By default, a new context is created for the output symbols but a custom context can be specified:

In[1]:=
Click for copyable input
Out[1]=
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Out[2]=

Specify contexts for the allowed and output symbols:

In[1]:=
Click for copyable input
Out[1]=
Out[1]=