Skip to content

Broken fraction field of rational polynomial ring #16993

Closed
@simon-king-jena

Description

@simon-king-jena
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions