Post Reply 
homogeneity: Relational Operators A==B => true/false
08-27-2017, 01:25 PM (This post was last modified: 02-11-2018 10:15 PM by compsystems.)
Post: #1
homogeneity: Relational Operators A==B => true/false
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


[Image: relationalOperators_hp_prime_versus_xcas.png]

mechanical binary calculator https://www.youtube.com/watch?v=NQX6irk11qA
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
homogeneity: Relational Operators A==B => true/false - compsystems - 08-27-2017 01:25 PM
RE: - compsystems - 02-10-2018, 04:13 AM



User(s) browsing this thread: 1 Guest(s)