08-27-2017, 01:25 PM

expr1:=[5≤8, 9≥8, sqrt(4)≠2, sqrt(4)=2, sqrt(4)==2, 1 AND 0, true and false];

returns xcas: [true,true,false,2=2,true,false,false]

expr2:=[x≤y, x≥y, 'x≠y', x≠y, x==y, x=y, x AND y];

returns xcas: [y>=x,x>=y,x<>y,true,false,x=y,(x and y)]

eval(expr2(3),1);

returns xcas: x<>y

eval(expr2(3),2);

returns xcas: true

returns xcas: [true,true,false,2=2,true,false,false]

expr2:=[x≤y, x≥y, 'x≠y', x≠y, x==y, x=y, x AND y];

returns xcas: [y>=x,x>=y,x<>y,true,false,x=y,(x and y)]

eval(expr2(3),1);

returns xcas: x<>y

eval(expr2(3),2);

returns xcas: true