#18111: Polynomial ring reverse: Consistency in optional
degree-at-which-to-reverse
keyword
-----------------------+-----------------------------------------
Reporter: jsrn | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: algebra | Keywords: polynomial,sagedays66
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------+-----------------------------------------
Currently we have
{{{
sage: Fx.<x> = GF(2)[]
sage: p = x + 1
sage: p.reverse(degree=5)
x^5 + x^4
}}}
However:
{{{
sage: Qx.<x> = QQ[]
sage: p = x + 2
sage: p.reverse(n=5)
2*x^4 + x^3
}}}
So not only is the name of the optional arguments different, it also has
subtly different semantics.
The optional argument should be the same, and `degree` makes most sense,
and the behaviour should be the same.
Overview of some other base rings:
* `ZZ` is like `GF(2)`
* `RR` takes NO keyword
* `CC` is like `GF(2)`
* `GF(p^m)` is like `GF(2)`
* generic base ring is like `GF(2)`
Are there other to check?
--
Ticket URL: <http://trac.sagemath.org/ticket/18111>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.