[sage-support] Re: Dumb question about sums

2016-12-30 Thread Nils Bruin
On Friday, December 30, 2016 at 3:54:08 PM UTC-8, Emmanuel Charpentier wrote: > > This is what one expects from sage... > > sage: maxima("sum(j,j,1,p)").sage() > sum(j, j, 1, p) > > This is what is expected from Maxima, as long as simpsum is not true > (default) > > sage: maxima.sum(j,j,1,p).sage

[sage-support] Re: Dumb question about sums

2016-12-30 Thread Emmanuel Charpentier
Nils, Something *is* fishy here. Annotated but unedited transcript : charpent@asus16-ec:~$ sage ┌┐ │ SageMath version 7.5.rc1, Release Date: 2016-12-28 │ │ Type "notebook()" for the browser-based notebook interfac

[sage-support] Re: Dumb question about sums

2016-12-30 Thread Nils Bruin
On Friday, December 30, 2016 at 10:05:19 AM UTC-8, Nils Bruin wrote: > > > 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. > > Perhaps it's not a bug. It certainly is documented (and indeed, if in sum(

[sage-support] Re: Dumb question about sums

2016-12-30 Thread Nils Bruin
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

[sage-support] Re: Dumb question about sums

2016-12-30 Thread Emmanuel Charpentier
Robert Dodier suggests : (%i12) sumcontract (intosum (sum(X(i),i,1,n+1)-sum(X(i),i,1,n))); (%o12) X(n + 1) Indeed : sage: maxima.sumcontract(maxima.intosum(sum(X(j),j,1,p+1)-sum(X(j),j,1,p))).sage : () X(p + 1) But : sage: (sum(X(j),j,1,p+1)-sum(X(j),j,1,p)).

[sage-support] Re: Dumb question about sums

2016-12-29 Thread Emmanuel Charpentier
Dear Nils, dear list, Le mercredi 28 décembre 2016 20:59:50 UTC+1, Nils Bruin a écrit : > > On Wednesday, December 28, 2016 at 6:18:28 AM UTC-8, Emmanuel Charpentier > wrote: >> >> I d not understand what is possible and not possible about sums with Sage >> (and its minions). >> >> I am interest

[sage-support] Re: Dumb question about sums

2016-12-28 Thread Nils Bruin
On Wednesday, December 28, 2016 at 6:18:28 AM UTC-8, Emmanuel Charpentier wrote: > > I d not understand what is possible and not possible about sums with Sage > (and its minions). > > I am interested in the symbolic manipulation of a sum of (unspecified) > data series X. Since Sage does nott (ye