#20812: derivative of integer wrt to variable in polynomial ring should belong 
to
that ring, not symbolic ring
---------------------------+----------------------------
   Reporter:  dgulotta     |            Owner:
       Type:  enhancement  |           Status:  new
   Priority:  major        |        Milestone:  sage-7.3
  Component:  calculus     |         Keywords:
  Merged in:               |          Authors:
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+----------------------------
 If I try to take the derivative of an integer (or nonzero rational, or
 integer mod n), then the result is an element of the symbolic ring:
 {{{
 sage: R.<x>=ZZ[]
 sage: derivative(0,x).parent()
 Symbolic Ring
 }}}
 It seems like it would be more natural for the returned value to belong to
 the ring containing x instead.

 This may seem kind of pedantic, but it did trip me up when I was working
 with a list of polynomials, some of which were constant, and things were
 getting cast to Expression unexpectedly.

 I am not particularly familiar with the Sage codebase, but I am attaching
 a patch that seems to fix the issue.

--
Ticket URL: <http://trac.sagemath.org/ticket/20812>
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.

Reply via email to