# Documentation

## Use Different Output Modes

 Note:   Use only in the MuPAD Notebook Interface. This functionality does not run in MATLAB.

### Abbreviations

MuPAD® can display results of your calculations using different modes. By default, expressions in outputs use typeset mode and abbreviations:

`solve(x^3 + x^2 + 1 = 0, x, MaxDegree = 3)`

To disable abbreviations, clear Notebook>Abbreviate Output:

`solve(x^3 + x^2 + 1 = 0, x, MaxDegree = 3)`

To enable abbreviations, select Notebook>Abbreviate Output.

Alternatively, you can enable and disable abbreviations by using `Pref::abbreviateOutput`. For example, disable abbreviations:

`Pref::abbreviateOutput(FALSE):`

Enable abbreviations:

`Pref::abbreviateOutput(TRUE):`

### Typeset Math Mode

MuPAD can display results of your calculations using different formats. By default, expressions in outputs use typeset mode and abbreviations:

`solve(x^3 + x^2 + 1 = 0, x, MaxDegree = 3)`

To disable the typeset mode, clear Notebook>Typeset Math:

`solve(x^3 + x^2 + 1 = 0, x, MaxDegree = 3)`
```{ { { 1 / 29 sqrt(31) sqrt(108) \1/3 { - -------------------------------- - | -- - ------------------ | { / 29 sqrt(31) sqrt(108) \1/3 \ 54 108 / { 9 | -- - ------------------ | { \ 54 108 / / 29 sqrt(31) sqrt(108) \1/3 | -- - ------------------ | 1 1 \ 54 108 / - -, --------------------------------- + ------------------------------ 3 / 29 sqrt(31) sqrt(108) \1/3 2 18 | -- - ------------------ | \ 54 108 / 1 / / 1 - - - | sqrt(3) | -------------------------------- 3 | | / 29 sqrt(31) sqrt(108) \1/3 | | 9 | -- - ------------------ | \ \ \ 54 108 / / 29 sqrt(31) sqrt(108) \1/3 \ \ - | -- - ------------------ | | I |/2, \ 54 108 / | | | | / / / 29 sqrt(31) sqrt(108) \1/3 | -- - ------------------ | 1 \ 54 108 / 1 --------------------------------- + ------------------------------ - - / 29 sqrt(31) sqrt(108) \1/3 2 3 18 | -- - ------------------ | \ 54 108 / / / 1 + | sqrt(3) | -------------------------------- | | / 29 sqrt(31) sqrt(108) \1/3 | | 9 | -- - ------------------ | \ \ \ 54 108 / } } / 29 sqrt(31) sqrt(108) \1/3 \ \ } - | -- - ------------------ | | I |/2 } \ 54 108 / | | } | | } / / } ```

To enable the typeset mode, select Notebook>Typeset Math.

You cannot disable the typeset mode programmatically.

### Pretty Print Mode

To see how the pretty print mode affects the output, disable the typeset mode first. With the typeset mode disabled and the pretty print mode enabled, the results look as follows:

`solve(x^3 + x^2 + 1 = 0, x, MaxDegree = 3)`
```{ { { 1 / 29 sqrt(31) sqrt(108) \1/3 { - -------------------------------- - | -- - ------------------ | { / 29 sqrt(31) sqrt(108) \1/3 \ 54 108 / { 9 | -- - ------------------ | { \ 54 108 / / 29 sqrt(31) sqrt(108) \1/3 | -- - ------------------ | 1 1 \ 54 108 / - -, --------------------------------- + ------------------------------ 3 / 29 sqrt(31) sqrt(108) \1/3 2 18 | -- - ------------------ | \ 54 108 / 1 / / 1 - - - | sqrt(3) | -------------------------------- 3 | | / 29 sqrt(31) sqrt(108) \1/3 | | 9 | -- - ------------------ | \ \ \ 54 108 / / 29 sqrt(31) sqrt(108) \1/3 \ \ - | -- - ------------------ | | I |/2, \ 54 108 / | | | | / / / 29 sqrt(31) sqrt(108) \1/3 | -- - ------------------ | 1 \ 54 108 / 1 --------------------------------- + ------------------------------ - - / 29 sqrt(31) sqrt(108) \1/3 2 3 18 | -- - ------------------ | \ 54 108 / / / 1 + | sqrt(3) | -------------------------------- | | / 29 sqrt(31) sqrt(108) \1/3 | | 9 | -- - ------------------ | \ \ \ 54 108 / } } / 29 sqrt(31) sqrt(108) \1/3 \ \ } - | -- - ------------------ | | I |/2 } \ 54 108 / | | } | | } / / } ```

To disable the pretty print mode, clear Notebook>Pretty Print:

`solve(x^3 + x^2 + 1 = 0, x, MaxDegree = 3)`
```{- (1/9)/(29/54 - (1/108)*31^(1/2)*108^(1/2))^(1/3) - (29/54 - (1/108)*31^\ (1/2)*108^(1/2))^(1/3) - 1/3, (1/18)/(29/54 - (1/108)*31^(1/2)*108^(1/2))^\ (1/3) + (1/2)*(29/54 - (1/108)*31^(1/2)*108^(1/2))^(1/3) - 1/3 - 3^(1/2)*(\ (1/9)/(29/54 - (1/108)*31^(1/2)*108^(1/2))^(1/3) - (29/54 - (1/108)*31^(1/\ 2)*108^(1/2))^(1/3))*(1/2*I), (1/18)/(29/54 - (1/108)*31^(1/2)*108^(1/2))^\ (1/3) + (1/2)*(29/54 - (1/108)*31^(1/2)*108^(1/2))^(1/3) - 1/3 + 3^(1/2)*(\ (1/9)/(29/54 - (1/108)*31^(1/2)*108^(1/2))^(1/3) - (29/54 - (1/108)*31^(1/\ 2)*108^(1/2))^(1/3))*(1/2*I)} ```

When you copy some part of an output region to an input region, plain text outputs serve best. To obtain plain text outputs, disable both typeset and pretty print modes. When you copy an entire output region to an input region, typeset mode serves best.

To enable the pretty print mode, select Notebook>Pretty Print.

Alternatively, you can switch between the pretty print and plain text modes by using `PRETTYPRINT`. Note that first you must disable the typeset mode. For example, switch to the plain text mode:

`PRETTYPRINT := FALSE:`

Switch to the pretty print mode:

`PRETTYPRINT := TRUE:`

### Mathematical Notations Used in Typeset Mode

By default, MuPAD displays the output expressions using the Typeset Math mode. In this mode, MuPAD uses standard mathematical notations for special functions. For example:

`Result:= int(sin(x^2), x)`

If you are not familiar with a notation, you can see the corresponding MuPAD command using one of following methods:

• Disable typesetting mode by selecting Notebook>Typeset Math. Reevaluate the expression containing the unknown notation.

• Copy the output expression and paste it to an input region.

• Set `PRETTYPRINT` to `FALSE`, and then use the `print` command with the option `Plain` to display the results in plain text mode. For example:

```PRETTYPRINT := FALSE: print(Plain, Result)```
```(1/2)*2^(1/2)*PI^(1/2)*fresnelS(2^(1/2)*x/PI^(1/2)) ```

For further computations, set `PRETTYPRINT` to `TRUE`.

`PRETTYPRINT := TRUE:`