|
SOLUTIONS
|
MATHEMATICA 組込みシンボル
InterpretationBox
InterpretationBox[boxes, expr]
低レベルのボックス構文で,ボックス
として表示されるが,入力として使われるときは式
として扱われる.
詳細詳細
- InterpretationBoxは,Interpretationの低レベル表現で使われる.低レベルノートブック式の操作を除いては,InterpretationBoxを直接使わなければならないことがあってはならない.
- InterpretationBoxを使うことで Mathematica の出力式に任意の隠し情報を付加することができる.
- StandardFormで生成される出力式によってはInterpretationBoxが加えられるものがある.また,TraditionalFormの多くの出力式にもこれが加えられる.
- 指定可能なオプション:
-
AutoDelete False boxes の変更時にInterpretationBoxを削除するかどうかの指定 DeletionWarning False boxes の削除時に警告を発するか発しないかの指定 Editable False boxes の編集を許可するかしないかの指定 Selectable Automatic boxes の選択を許可するかしないかの指定 - InterpretationBox[boxes, expr]の表示形式を編集すると,変更されるのは
だけである.変更した結果,式
との対応が正確に維持されなくなることがあるので注意すること. - InterpretationBoxは属性HoldCompleteを持つ.
例題例題すべて開くすべて閉じる
例 (3)例 (3)
| In[1]:= |
Out[1]//DisplayForm= | |
InterpretationBoxは第2引数中の式として解釈される:
| In[2]:= |
| Out[2]= |
解釈ボックスをコピーしこれを入力として使っても,隠れた解釈が評価される:
| In[3]:= |
| Out[3]= |
InterpretationBoxはInterpretationオブジェクトの標準的な書式でも使われる:
| In[1]:= |
Out[1]//FullForm= | |
InterpretationBoxの第1引数はその可視の書式を返す:
| In[2]:= |
| Out[2]= |
多くの組込み関数のTraditionalFormによる書式はInterpretationBoxを使う:
| In[1]:= |
| Out[1]= | ![]() |
タイプセットした結果では,
という文字がEllipticNomeQを表している:
| In[2]:= |
Out[2]//TraditionalForm= | |
InterpretationBoxによって,意味を失わずに入力としてこの形を使うことができる:
| In[3]:= |
| Out[3]= |
バージョン 3 の新機能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

