[GiNaC-list] to_polynomial function does not return a polynomial
Vladimir V. Kisil
V.Kisil at leeds.ac.uk
Tue Dec 28 10:24:38 CET 2021
>>>>> On Tue, 28 Dec 2021 16:41:24 +0800, Feng Feng <f.feng at outlook.com> said:
FF> Dear all, I am using the function to_polynomial to produce a
FF> polynomial from a expression, it seems that to_polynomial does
FF> not return a polynomial in some cases, as illustrated in the
FF> following example, note that it works well on expression e2,
FF> while it does nothing on e3 (e3=e2^2), and does not return a
FF> polynomial.
It will if you would apply expand() method to e3 first.
--
Vladimir V. Kisil http://www.maths.leeds.ac.uk/~kisilv/
Book: Geometry of Mobius Transformations http://goo.gl/EaG2Vu
Software: Geometry of cycles http://moebinv.sourceforge.net/
More information about the GiNaC-list
mailing list