solve SciMax Toolbox solve_rec

SciMax Toolbox >> solve_inconsistent_error

solve_inconsistent_error

Option variable

solve_inconsistent_error

Description

Default value: true

When solve_inconsistent_error is true, solve and linsolve give an error if the equations to be solved are inconsistent.

If false, solve and linsolve return an empty list [] if the equations are inconsistent.

Example:

(%i1) solve_inconsistent_error: true$
(%i2) solve ([a + b = 1, a + b = 2], [a, b]);
Inconsistent equations:  (2)
 -- an error.  Quitting.  To debug this try debugmode(true);
(%i3) solve_inconsistent_error: false$
(%i4) solve ([a + b = 1, a + b = 2], [a, b]);
(%o4)                          []
solve SciMax Toolbox solve_rec