#16613: fix content of polynomials
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: commutative | Resolution:
algebra | Merged in:
Keywords: polynomial, | Reviewers:
content | Work issues:
Authors: Bruno Grenet | Commit:
Report Upstream: N/A | 78d45b9b13fcf242d0f7de248a9891f6a64298a6
Branch: u/bruno/content | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Bruno Grenet', 'oldvalue': u'Vincent Delecroix'}):
* status: needs_info => needs_review
* author: Vincent Delecroix => Bruno Grenet
* branch: => u/bruno/content
* keywords: => polynomial, content
* commit: => 78d45b9b13fcf242d0f7de248a9891f6a64298a6
Old description:
New description:
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.
--
Comment:
Based on answers on this ticket and on
[https://groups.google.com/forum/#!topic/sage-devel/DP_R3rl0vH0 sage-
devel], I've implemented the solution with two methods `content` and
`content_ideal`. Right now, there is now warning nor deprecation. If
necessary, I can add a warning for the generic method `content` as
follows:
{{{#!python
from sage.warnings import warn
warn("This method now returns the gcd of the coefficients of the input
polynomial. Use content_ideal()` to get the ideal generated by the
coefficients.")
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16613#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.