Opened 5 years ago

Last modified 5 years ago

#18111 new defect

Polynomial ring reverse: Consistency in optional degree-at-which-to-reverse keyword

Reported by: jsrn Owned by:
Priority: major Milestone: sage-6.6
Component: algebra Keywords: polynomial, sd66
Cc: 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


        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?

Change History (1)

comment:1 Changed 5 years ago by vdelecroix

  • Keywords sd66 added; sagedays66 removed
Note: See TracTickets for help on using tickets.