Skip to content

MPolynomial: coefficients not in base ring #21999

@dkrenn

Description

@dkrenn
sage: R = QQbar['s,t']
sage: type(R({(1,2): 3}).coefficients()[0])
<type 'sage.rings.integer.Integer'>

but it should be an element of QQbar.

This results in an error in the laurent polynomial code:

sage: L.<a,b> = LaurentPolynomialRing(QQbar)
sage: (a+a*b) // a

raises an AttributeError as an Python int does not have a divides-method. (The Python int comes from line 1600 in laurent_polynomial.pyx, but the true problem is the one at the top.

Component: algebra

Author: Daniel Krenn

Branch/Commit: 397301a

Reviewer: Travis Scrimshaw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions