STACK DocumentationDocumentation home | Category index | Parent | Site map
The non-strict inequalities and are created as infix operators with the respective syntax
Maxima allows single inequalities, such as , and also support for inequalities connected by logical operators, e.g. .
You can test if two inequalities are the same using the algebraic equivalence test, see the comments on this below.
Chained inequalities, for example are not permitted. They must be joined by logical connectives, e.g. " and ".
From version 3.6, support for inequalities in Maxima (particularly single variable real inequalities) was substantially improved.
Functions to support inequalities
This function ensures an inequality is written in the form
ex is always simplified. This is designed for use with the algebraic equivalence answer test in mind.
This function takes an expression, applies
ineqprepare(), and then orders the parts. For example,
ineqorder(x>1 and x<5);
5-x > 0 and x-1 > 0
It also removes duplicate inequalities. Operating at this syntactic level will enable a relatively strict form of equivalence to be established, simply manipulating the form of the inequalities. It will respect commutativity and associativity and
or, and will also apply
not to chains of inequalities.
If the algebraic equivalence test detects inequalities, or systems of inequalities, then this function is automatically applied.
Documentation home | Category index | Parent | Site map