PRETTYPRINT -- control the
formatting of output
IntroductionThe environment variable PRETTYPRINT determines whether
MuPAD's results are printed in the one-dimensional or the
two-dimensional format.
Call(s)
PRETTYPRINT
PRETTYPRINT := value
Parametersvalue |
- | either TRUE or FALSE |
Related
Functions
DetailsPRETTYPRINT controls the pretty printer, which is
responsible for formatted output. If PRETTYPRINT has the
value TRUE, then pretty printing is enabled for
output.PRETTYPRINT is TRUE;
PRETTYPRINT has this value after starting or resetting the
system via reset. Also
the command delete PRETTYPRINT
restores the default value.PRETTYPRINT normally has no
effect when ``typesetting'' is activated. An exception occurs for very
wide MuPAD output, where PRETTYPRINT determines the
output style even if the typesetting is activated.
Typesetting is activated by default. It can be switched on or off by choosing ``Options'' from the ``View'' menu of the MuPAD main window and then clicking on ``Typeset output expressions''.
Example
1The following command disables pretty printing:
>> PRETTYPRINT := FALSE
FALSE
Now MuPAD results are printed in a one-dimensional, linearized form:
>> series(sin(x), x = 0, 15)
x - 1/6*x^3 + 1/120*x^5 - 1/5040*x^7 + 1/362880*x^9 - 1/399168\
00*x^11 + 1/6227020800*x^13 + O(x^15)
After setting PRETTYPRINT to TRUE again, the usual two-dimensional
output format is used:
>> PRETTYPRINT := TRUE: series(sin(x), x = 0, 15)
3 5 7 9 11 13
x x x x x x 15
x - -- + --- - ---- + ------ - -------- + ---------- + O(x )
6 120 5040 362880 39916800 6227020800
PRETTY_PRINT