]> www.ginac.de Git - ginac.git/commit
Fix series of positive powers of polynomials.
authorRichard Kreckel <kreckel@ginac.de>
Sun, 6 Aug 2023 17:27:51 +0000 (19:27 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Sun, 6 Aug 2023 17:37:59 +0000 (19:37 +0200)
commit9435d80ac31c97c2a698928e59cc4489f1fad5e7
treebf6b657b3ab81053c3783626e676831380ad0e8b
parent4bc2092e2f15a6422774c34c7f8fa4079be67d08
Fix series of positive powers of polynomials.

Before calling pseries::power_const(), make sure the basis series has
sufficient terms. In particular, do not shrink the order of expansion
- only grow it.

Fix various hairy problems in pseries::power_const() when a polynomial
is raised to a positive integer power.

(The special cases here can actually also be computed by Taylor
expansion but the fixes should be more general.)

Also add test cases.

Thanks to Vitaly Magerya <vmagerya@gmail.com> for reporting this.
check/exam_pseries.cpp
ginac/pseries.cpp