STACK DocumentationDocumentation home | Category index | Parent | Site map
The non-strict inequalitiesand 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 exampleare not permitted. They must be joined by logical connectives, e.g. " and ".
Support for inequalities in Maxima (and hence STACK) is currently poor. This is on our list of possible projects, and help would be welcome!
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.
However, to establish the equivalence of
x>1 or x<-1 will require significantly more work. This is an interesting and open mathematical and CAS challenge!
Documentation home | Category index | Parent | Site map