PRETTYPRINT
-- control the
formatting of outputThe environment variable PRETTYPRINT
determines whether
MuPAD's results are printed in the one-dimensional or the
two-dimensional format.
PRETTYPRINT
PRETTYPRINT
:= value
value |
- | either TRUE or FALSE |
PRETTYPRINT
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''.
The 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