Skip to content

MPolynomial_polydict __floordiv__ wrong arithmetic #2594

Closed

Description

@sagetrac-jbmohler

The __floordiv__ special implementation for monomials throws away coefficients.

sage: R.<x,y,z>=ZZ[]
sage: f=3*x^2-1
sage: f//x
x

A patch is attached to fix this along with some other coercion issues.

Component: commutative algebra

Issue created by migration from https://trac.sagemath.org/ticket/2594

Activity

  1. added this to the sage-2.11 milestone on Mar 19, 2008
  2. malb commented on Mar 19, 2008

    @malb
    Member
    comment:1

    Attachment: mpoly-div-bug.patch.gz

    Patch looks good.

  3. sagetrac-mabshoff commented on Mar 19, 2008

    sagetrac-mabshoffmannequin
    Mannequin
    comment:2

    Merged in Sage 2.11.alpha0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions