- labels: --> Lisp Core
powerseries(1+x^n,x,0) =>
'sum((-1)^i1*x^(i1*n),i1,0,inf)
but this is actually the series for 1/(1+x^n)
Conversely,
powerseries(1/(1+x^n),x,0) =>
Unable to expand
This might be a simple mixup somewhere in the code....
Maxima 5.11.0 GCL 2.6.8 Cygwin
Logged In: YES
user_id=1797506
Originator: NO
sign problem fixed in series.lisp rev 1.13.
new behavior:
(%i2) powerseries(1+x^n,x,0);
(%o2) ('sum(x^(i1*n)/beta(2-i1,i1+1),i1,0,inf))/2
(%i3) powerseries(1/(1+x^n),x,0);
(%o3) "Unable to expand"
(%i4) declare(n, integer);
(%o4) done
(%i5) powerseries(1+x^n,x,0);
(%o5) ('sum(x^(i3*n)/beta(2-i3,i3+1),i3,0,inf))/2
(%i6) powerseries(1/(1+x^n),x,0);
(%o6) 'sum((-1)^i4*x^(i4*n),i4,0,inf)
I suppose ideally %o6 should only happen in n is known to be
a positive integer.
Logged In: YES
user_id=1797506
Originator: NO
The reported bug is not present in the current cvs version of
Maxima.
Thank you for your report. If you see this bug in a later version
of Maxima, please submit a new bug report.