Debian 12, Sage 9.5 (debian package), Mathematica 13.3 sage: mathematica("Sum[%s, %s]"%tuple(map(lambda u:repr(mathematica(u)), ((1+(-1 ....: )^k)*x^k, [k , 0, oo])))) -2/(-1 + x^2) sage: mathematica.Sum(*map(mathematica, ((1+(-1)^k)*x^k, [k , 0, oo]))) {(1 + (-1)^k)*k*x^k, 0, (1 + (-1)^k)*x^k*Infinity}
On Sun, 9 Jul 2023 at 23:01, Emmanuel Charpentier < emanuel.charpent...@gmail.com> wrote: > Inspiration : this ask.sagemath.org question > <https://ask.sagemath.org/question/69855/compute-power-series/>. > > Using the Wolfram engine <https://www.wolfram.com/engine/> gives me a > curious and nonsensical conversion. Compare : > sage: mathematica("Sum[%s, %s]"%tuple(map(lambda u:repr(mathematica(u)), > ((1+(-1)^k)*x^k, [k , 0, oo])))) -2/(-1 + x^2) # Correct sage: > mathematica.Sum(*map(mathematica, ((1+(-1)^k)*x^k, [k , 0, oo]))) {(1 + > (-1)^k)*k*x^k, 0, (1 + (-1)^k)*x^k*Infinity} # Nonsensical > > I *think* that this signs a bug in the Mathematica conversion of sum. Can > someone check me with the “full blown” Mathematica interpreter before I > open an new issue ? > > Thanks in advance… > > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/03eb02e5-6872-4479-8f30-ee2e92606b2an%40googlegroups.com > <https://groups.google.com/d/msgid/sage-support/03eb02e5-6872-4479-8f30-ee2e92606b2an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAg%3Dp_3Hs5EcaY6LAg1GxBGj6uGQDrOroUFFaOz4BxjnipJjsA%40mail.gmail.com.