4.1.2 Comparison operators
The usual comparison operators between numbers are examples of tests.
In Xcas, they are the following infixed operators:
-
a==b tests the equality
between a and b and returns 1 if a
is equal to b and 0 otherwise.
-
a!=b returns 1 if a and
b are different and 0 otherwise.
-
a>=b returns 1 if a
is greater than or equal to b and 0 otherwise.
-
a>b returns 1 if a is strictly
greater than b and 0 otherwise.
-
a<=b returns 1 if a is less
than or equal to b and 0 otherwise.
-
a<b returns 1 if a
is strictly less than b and 0 otherwise.
Remark.
Note that a=b is not a boolean. This form is
used to state that the expression is an equality, perhaps with the
intent to solve it. To test for equality, you need to use
a==b, which is a boolean.