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

Algebra Calculator

#### Search: #### Error

Function: error (<expr_1>, ..., <expr_n>) -- System variable: error Evaluates and prints <expr_1>, ..., <expr_n>, and then causes an error return to top level Maxima or to the nearest enclosing `errcatch`.

The variable `error` is set to a list describing the error. The first element of `error` is a format string, which merges all the strings among the arguments <expr_1>, ..., <expr_n>, and the remaining elements are the values of any non-string arguments.

`errormsg()` formats and prints `error`. This is effectively reprinting the most recent error message.

There are also some inexact matches for `error`. Try `?? error` to see them.

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

### Related Examples

##### error-substring

substring("error: cou...

Calculate

lambda_Z:3 ;

lambda_X:12 ;

Calculate

? error;

Calculate

##### error

? mode_check_error;

Calculate

lambda_Z:3 ;

lambda_X:12 ;

Calculate

lambda_Z:3 ;

lambda_X:12 ;

Calculate

##### error-sum

sphere_error:(x[i]-a)...

sphere_error_square:s...

sphere_error_sum:sum(...

Calculate

? error;

Calculate

? error;

Calculate

##### error-sum

sphere_error:(x[i]-a)...

sphere_error_square:s...

sphere_error_sum:sum(...

Calculate 