Problem of Sage 9.0 and Maxima powerseries

15 views
Skip to first unread message

mendes

unread,
Mar 24, 2020, 1:13:29 PM3/24/20
to sage-support
Dear all,

In previous versions of Sagemath, this worked fine:

f= 1/(1-x)
print( maxima(f,x).powerseries(x,0) )

Now, in Sage 9.0, this raises  the error:

TypeError: new_name must be a string

I would be very grateful for any help.

Vincent Delecroix

unread,
Mar 24, 2020, 1:19:36 PM3/24/20
to sage-s...@googlegroups.com
What is this syntax maxima(f, x) intended for? Just use

sage: maxima(f).powerseries(x,0)
'sum(_SAGE_VAR_x^i3,i3,0,inf)

I hardly understand why it worked in previous versions.

luis mendes

unread,
Mar 24, 2020, 1:21:51 PM3/24/20
to sage-s...@googlegroups.com
Thank you very much Vincent !!!

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/94015397-961a-9a90-1652-5dfd0e7257de%40gmail.com.

Dima Pasechnik

unread,
Mar 24, 2020, 1:22:24 PM3/24/20
to sage-support
On Tue, Mar 24, 2020 at 9:13 PM mendes <mend...@gmail.com> wrote:
>
> Dear all,
>
> In previous versions of Sagemath, this worked fine:
>
> f= 1/(1-x)
> print( maxima(f,x).powerseries(x,0) )
>
> Now, in Sage 9.0, this raises the error:
>
> TypeError: new_name must be a string

is there any reason you cannot simply do

sage: f= 1/(1-x)
sage: f.series(x)
1 + 1*x + 1*x^2 + 1*x^3 + 1*x^4 + 1*x^5 + 1*x^6 + 1*x^7 + 1*x^8 +
1*x^9 + 1*x^10 + 1*x^11 + 1*x^12 + 1*x^13 + 1*x^14 + 1*x^15 + 1*x^16 +
1*x^17 + 1*x^18 + 1*x^19 + Order(x^20)


>
>
> I would be very grateful for any help.
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/0419af5b-bb76-400e-a2eb-cf9426570f0b%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages