Ask Your Question

noa's profile - activity

2019-11-12 23:27:35 +0200 commented question possible bug in: _cmp_ function

Great, I will use this from now on. thanks.

2019-11-12 23:25:44 +0200 commented answer possible bug in: _cmp_ function

Thank you very much for the quick and thorough response.

2019-11-12 23:21:18 +0200 received badge  Supporter (source)
2019-11-07 18:38:02 +0200 received badge  Good Question (source)
2019-11-07 17:15:54 +0200 received badge  Nice Question (source)
2019-11-07 16:32:01 +0200 received badge  Student (source)
2019-11-07 16:25:28 +0200 asked a question possible bug in: _cmp_ function

Hello, on a 2019-release of sage, the following behaviour was observed: After defining:

R = Zp(5)
a = R(5, 6)
b = R(10)

an inconsistent output was given for a<b and b>a:

a<b
False
b>a
True

Is this a bug, or should the output not be consistent here for some reason? P.S: The comparison function is implemented in the file: padic_generic_element.pyx Thank you.