#18787: Bug with products of symbolic variables with modular integers
-----------------------------+------------------------
       Reporter:  tmonteil   |        Owner:
           Type:  defect     |       Status:  new
       Priority:  major      |    Milestone:  sage-6.8
      Component:  symbolics  |   Resolution:
       Keywords:             |    Merged in:
        Authors:             |    Reviewers:
Report Upstream:  N/A        |  Work issues:
         Branch:             |       Commit:
   Dependencies:             |     Stopgaps:
-----------------------------+------------------------

Comment (by rws):

 Replying to [comment:6 nbruin]:
 > It's not just powers either:
 > {{{
 > sage: V=[SR.var("x%s"%i) for i in [0..20]]
 > sage: F=sum((i+1)*V[i] for i in [0..20])
 > sage: G=sum(Zmod(7)(i+1)*V[i] for i in [0..20])
 > sage: sage: F*Zmod(7)(1)-G
 > -x0 + 0*x13 + 6*x14 + 0*x20 + 3*x3 + 0*x6
 > sage: F-G
 > 14*x13 + 21*x20 + 7*x6
 > }}}
 This is different in 0.4.1:
 {{{
 sage: sage: sage: F*Zmod(7)(1)-G
 -x0 + 0*x13 + 0*x20 + 4*x9
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18787#comment:10>
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.

Reply via email to