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.

<strong>Notebooks</strong> and <strong>Documents</strong> 67In StandardForm the same string would mean a product of terms.In[8]:=ToExpression@"fH6L", StandardFormDOut[8]= 6 fWhen TraditionalForm output is generated as the result of a computation, the actual collectionof boxes that represent the output typically contains special Interpretation objects orother specially tagged forms which specify how an expression can be reconstructed from theTraditionalForm output.The same is true of TraditionalForm that is obtained by explicit conversion fromStandardForm. But if you edit TraditionalForm extensively, or enter it from scratch, then<strong>Mathematica</strong> will have to try to interpret it without the benefit of any additional embeddedinformation.Short and Shallow OutputWhen you generate a very large output expression in <strong>Mathematica</strong>, you often do not want tosee the whole expression at once. Rather, you would first like to get an idea of the generalstructure of the expression, and then, perhaps, go in and look at particular parts in more detail.The functions Short and Shallow allow you to see “outlines” of large <strong>Mathematica</strong> expressions.Short@exprDShort@expr,nDShallow@exprDShallow@expr,8depth,length indicates the number of terms omitted.In[2]:=Short@tDOut[2]//Short= 1 + 12 x + 66 x 2 + 220 x 3 + 495 x 4 + á81à + 132 x y 10 + 66 x 2 y 10 + 12 y 11 + 12 x y 11 + y 12When <strong>Mathematica</strong> generates output in a textual format such as OutputForm, it first effectivelywrites the output in one long row. Then it looks at the width of text you have asked for, and itchops the row of output into a sequence of separate “lines”. Each of the “lines” may of course

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

Saved successfully!

Ooh no, something went wrong!