Closed
Description
sage: P.<t> = QQ[]
sage: p = 4/(-4*t)
sage: p # OK, fractions are not automatically reduced
4/(-4*t)
sage: p.reduce()
sage: p # What the heck...
4/(-4*t)
sage: p == -1/t # At least sage gets this right
True
So, not only is the fraction not automatically simplified by "obvious" common factors, but also it is not simplified upon request.
Note that the fraction field of an integral polynomial ring works better.
sage: P.<t> = ZZ[]
sage: p = 4/(-4*t)
sage: p
1/-t
Fixed by #16268.
CC: @tscrim @yuan-zhou @mkoeppe @Etn40ff @slel
Component: commutative algebra
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/16993