13.07.2015 Views

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

62 <strong>Notebooks</strong> and <strong>Documents</strong>If you explicitly request a particular kind of output, say by using TraditionalForm@exprD, thenwhat you get will be labeled with Out@nD êê TraditionalForm. This indicates that what you areseeing is expr êê TraditionalForm, even though the value of Out@nD itself is just expr.<strong>Mathematica</strong> also allows you to specify globally that you want output to be displayed in a particu -lar form. <strong>And</strong> if you do this, then the form will no longer be indicated explicitly in the label foreach line. But it is still the case that In@nD and Out@nD will record only underlying expressions,not the textual representations used for their input and output.In[4]:=This sets t to be an expression with FortranForm explicitly wrapped around it.t = FortranForm@x^2 + y^2DOut[4]//FortranForm= x**2 + y**2In[5]:= %Out[5]= x 2 + y 2The result on the previous line is just the expression.In[6]:=But t contains the FortranForm wrapper, and so is displayed in FortranForm.tOut[6]//FortranForm= x**2 + y**2Wherever t appears, it is formatted in FortranForm.In[7]:= 8t^2, 1 ê tx ** 2 + y ** 2The Representation of Textual FormsLike everything else in <strong>Mathematica</strong> the textual forms of expressions can themselves be representedas expressions. Textual forms that consist of one-dimensional sequences of characterscan be represented directly as ordinary <strong>Mathematica</strong> strings. Textual forms that involve subscripts,superscripts and other two-dimensional constructs, however, can be represented bynested collections of two-dimensional boxes.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!