Skip to content

define the class MPolynomial at the top-level #11764

Open
@zimmermann6

Description

@zimmermann6

for univariate polynomials we have the class Polynomial:

sage: R.<x> = QQ[]
sage: isinstance(x+1, Polynomial)
True

However for multivariate polynomials we have to write:

sage: R.<x,y> = QQ[]
sage: isinstance(x+y, sage.rings.polynomial.multi_polynomial.MPolynomial)
True

I suggest MPolynomial is defined as an alias for
sage.rings.polynomial.multi_polynomial.MPolynomial so that we can simply write:

sage: R.<x,y> = QQ[]
sage: isinstance(x+y, MPolynomial)
True

CC: @mezzarobba

Component: commutative algebra

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions