Re: [sage-support] Polynomial comparison

2020-06-27 Thread Dima Pasechnik
On Sat, Jun 27, 2020 at 10:38 AM Rob H. wrote: > > > > Hi all, > > So I was surprised to find out that asking if a polynomial is > 0 doesn't > raise an error. many Sage objects compare in a totally non-mathematical way, just to be able to sort them. Polynomials are no exception. One day we

[sage-support] Polynomial comparison

2020-06-27 Thread Rob H.
Hi all, So I was surprised to find out that asking if a polynomial is > 0 doesn't raise an error. Now, maybe there's a good reason why it returns True and I'm too tired to think about why. At the very least, here is some disturbing behaviour. sage: R. = PolynomialRing(QQ) sage: x > x-1 True