Skip to content

fix content of polynomials #16613

@videlec

Description

@videlec

There is an inconsistency between several implementations of methods content for polynomials which either return the gcd of the coefficients or the ideal generated by the coefficients.

To remove the inconsistency, we implement two distinct methods:

  • content returns the gcd of the coefficients;
  • content_ideal returns the ideal generated by the coefficients.

In a period of deprecation, for (most) univariate polynomial rings, content is a deprecated alias for content_ideal. In the future, content will be defined everywhere as described above.

CC: @sagetrac-mkosters @loefflerd

Component: commutative algebra

Keywords: polynomial, content

Work Issues: followup ticket mentioned in source code, update ticket summary

Author: Bruno Grenet

Branch/Commit: 017adb6

Reviewer: Julian Rüth

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions