Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Error_size

-- Option variable: error_size Default value: 10

`error_size` modifies error messages according to the size of expressions which appear in them. If the size of an expression (as determined by the Lisp function `ERROR-SIZE`) is greater than `error_size`, the expression is replaced in the message by a symbol, and the symbol is assigned the expression. The symbols are taken from the list `error_syms`.

Otherwise, the expression is smaller than `error_size`, and the expression is displayed in the message.

See also `error` and `error_syms`.

Example:

The size of `U`, as determined by `ERROR-SIZE`, is 24.

`          (%i1) U: (C^D^E + B + A)/(cos(X-1) + 1)\$`

`          (%i2) error_size: 20\$`

`          (%i3) error ("Example expression is", U);`

Example expression is errexp1 -- an error. Quitting. To debug this try debugmode(true);

`          (%i4) errexp1;`
`                                      E`
`                                     D`
`                                    C   + B + A`
`          (%o4)                    --------------`
`                                   cos(X - 1) + 1`
`          (%i5) error_size: 30\$`

`          (%i6) error ("Example expression is", U);`

E D C + B + A Example expression is -------------- cos(X - 1) + 1 -- an error. Quitting. To debug this try debugmode(true);

```(%o1)                                true
(%i2) ```

### Related Examples 