5.1 Pretty Output

5.1.1 NCSetOutput[ optionlist,]

Aliases: None
Description: NCSetOutput displays noncommutative expressions in a special format without affecting the internal representation of the expression. For example, SetOutput[ All True] turns on all display beatifications listed below. Options are set by typing,
All True, to use the new format.
opt False, to return to the default format.
Dot True, ’**’ is displayed as ’.’(i.e., a dot)
Dot False, ’**’ defaults as ’**’
aj True, aj[ X ] is displayed as X*
aj False, aj[ X ] is displayed as aj[ X ]
inv True, inv[ X ] is displayed as X-1
inv False, inv[ X ] is displayed as inv[ X ]
tp True, tp[ X ] is displayed as XT
tp False, tp[ X ] is displayed as tp[ X ]

Examples : (Generic) SetOutput[optTrue] turns on all beautifications of the output related to the attribute opt. (One never types opt. The letters “opt” here stand for any of the listed attributes.) So, for example, one might try the command SetOutput[dotTrue, ajTrue]; aj[rt[x ** y]]

Arguments: Options are: all, dot, rt, tp, inv, aj; You may input a comma-separated sequence of options in any order without first forming a Mathematica list.
Comments / Limitations: WARNING: NCSetOutput was called SetOutput in previous versions. This syntax has now been deprecated. BEWARE: do not use with NCSimplifyRational. Also working with parts of a ”pretty output” may not work (since it changes the Head structure of the output). You can turn on or off options individually at any time. The nesting order of the final display is determined first by any NCAlgebra-defined or user-defined functions, and then by any Mathematica specified order. Only after the Out[#] is assigned are the SetOutput options applied to the OutputForm of the expression. So the internal form of the expression is NEVER altered. Nevertheless, the displayed form may be unexpected for several reasons, among them being; 1. f[g[x]] may be defined elsewhere to always display as g[f[x]]. In this case, SetOutput will display the optional forms of g[ f[x] ], not that of the inputed f[ g[x] ]. 2. Mathematica establishes precedences for functions and operations in order to minimize the overall use of parantheses. This can have unusual, but not unmanageable effects on the displayed form of an expression. For example, (x **y)2 displays as x2 **y ,but is represented internally as the equivalent of (x **y)2.