series of x^n around x=0
Hi all, I got a question while using series on x^n with n a non-integer. here is an example: ------ symbol x("x"); ex expr = pow(x, ex(3)/2); // 3/2 may be a general non-integer cout << expr.series(x,2) << endl; ------ The output is: Order(x^2) so is there a way to handle this? Best regards! Feng
On Thu, 19 Dec 2019 09:59:19 +0000, Feng Feng <f.feng@outlook.com> said: Hi all, I got a question while using series on x^n with n a non-integer. here is an example:
symbol x("x"); ex expr = pow(x, ex(3)/2); // 3/2 may be a general non-integer cout << expr.series(x,2) << endl; ------ The output is: Order(x^2) so is there a way to handle this?
Note, that series expansion of x^(3/2) at x==0 is not well-defined in mathematical sense. GiNaC signals this by throwing pole error at expr.series(x,3). Thus it is not clear what do you mean by "is there a way to handle this?" -- 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/ Jupyter (Colab): https://github.com/vvkisil/MoebInv-notebooks Jupyter (CodeOcean): https://codeocean.com/capsule/7952650/tree
participants (2)
-
Feng Feng
-
Vladimir V. Kisil