Mathematica > Dynamic Interactivity > Generalized Input >

Interpretation

Updated In 7 Graphic
Interpretation[e, expr]
represents an object which displays as e, but is interpreted as the unevaluated form of expr if supplied as input.
Interpretation[{x=x0, y=y0, ...}, e, expr]
allows local variables x, y, ... in e and expr.
  • Interpretation has attribute HoldAll, but evaluates e immediately after localizing variables. It makes expr be evaluated only when the Interpretation object is supplied as Mathematica input.
DeinitializationNonean expression to evaluate when the Interpretation can no longer be displayed
DynamicModuleValuesAutomaticdynamically updated data on variable values
InitializationNonean expression to evaluate when the Interpretation is first displayed
UnsavedVariables{}variables whose values should not be saved
Specify an interpretation for a string:
In[1]:=
Click for copyable input
Out[1]=
Copy and paste the output above to use the string in calculations:
In[2]:=
Click for copyable input
Out[2]=
 
Specify scoped variables:
In[1]:=
Click for copyable input
Out[1]=
Copying and evaluating:
In[2]:=
Click for copyable input
Out[2]=
New in 6 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team