Inequalities



The comparisons <, >, =, <=, and >= aren't boolean-valued

(%i1) 4 < 6;
(%o1) 4<6

To evaluate a comparison to a boolean, use 'is'

(%i2) is(4 < 6);
(%o2) true

Sometimes 'is' gets applied automatically

(%i3) if 4 < 6 then true else false;
(%o3) true

The function 'mevalp' evaluates predicates -- the
functions '$ev' and 'meval' do not

(%i6) ?mevalp(4 <6);
(%o6) true
(%i7) ev(4 < 6);
(%o7) 4<6
(%i8) ?meval(4 <6);
(%o8) 4<6


Barton



-----maxima-admin@math.utexas.edu wrote: -----

>To: Maxima list 
>From: C Y 
>Sent by: maxima-admin@math.utexas.edu
>Date: 05/31/2005 10:11PM
>Subject: Inequalities
>
>Should the following work?
>
>Maxima 5.9.1.1cvs http://maxima.sourceforge.net
>Using Lisp SBCL 0.9.0
>Distributed under the GNU Public License. See the
>file COPYING.
>Dedicated to the memory of William Schelter.
>This is a development version of Maxima. The
>function bug_report()
>provides bug reporting information.
>(%i1) 4 < 6;
>(%o1)                                4 < 6
>(%i2) 5 > 7;
>(%o2)                                5 > 7
>
>Does anybody else see this problem?
>
>CY
>