I ask:
var("x y")
assume(x,'integer')
assume(y,'integer')
print (x>y)==(y<x)
print (x>y)==(x-y>0)
and get:
True
False
So Sage recognizes the equivalence in the first pair but not in the second pair. Is there a way to handle this?
| 1 | initial version |
I ask:
var("x y")
assume(x,'integer')
assume(y,'integer')
print (x>y)==(y<x)
print (x>y)==(x-y>0)
and get:
True
False
So Sage recognizes the equivalence in the first pair but not in the second pair. Is there a way to handle this?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.