On Friday, December 30, 2016 at 3:43:34 AM UTC-8, Emmanuel Charpentier 
wrote:
>
> I also note that our use of Maxima's product() is wrong, wrong, wrong :
>
> sage: maxima.product(X(j),j,1,p).sage()
> X(j)^p
>
>
maxima.sum is equally wrong:

 sage: maxima_calculus.sum(j,j,1,p)
_SAGE_VAR_j*_SAGE_VAR_p

Note that the call procedure here is the one employed for expect 
interfaces, so it amounts to something like the maxima script:

sage1 :  j
sage2 :  j
sage3 : 1
sage4 : p
sum(sage1,sage2,sage3,sage4)

which indeed results in "j*p"

It looks like sum and product simplify before they evaluate their 
variables. This is a bug in maxima, not in the sage interface, I would say.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to