[GiNaC-list] series of x^n around x=0

Vladimir V. Kisil kisilv at maths.leeds.ac.uk
Sat Dec 21 23:17:00 CET 2019


>>>>> On Sat, 21 Dec 2019 11:14:58 +0000, Feng Feng <F.Feng at outlook.com> said:

    FF> Thanks very much for the reply.!  And yes, it is not
    FF> well-defined in mathematical sense to taylor expand x^(3/2)
    FF> around x=0.  What I exactly want is to get the asyptotic
    FF> behaviour of a function f(x) around x=0.  For example, f(x) =
    FF> x^(3/2) (1 + x + x^2 + …), the asyptotic behaviour at leading
    FF> order (LO) and next-to-leading order (NLO) are x^(3/2) and
    FF> x^(5/3), respectively.

    FF> So I wonder there is a way to get the asyptotic behaviour of a
    FF> function f(x), for example, Input: x^(3/2) * (1+x+x^2+x^3), and
    FF> request the terms at LO and NLO Output: x^(3/2) + x^(5/3)

    I am not sure that is NLO, but the leading term can be obtained as
  follows:

ex e=pow(x, numeric(3,2))*(1+x+x^2+x^3);

cout << (log(e).diff(x)*x).expand().subs(x==0);
// -> 3/2

  So now e can be multiplied by x^(2/3) to remove the singularity.
  See for explanations:

  https://en.wikipedia.org/wiki/Logarithmic_derivative
 
  So, the issue here is mathematics, not GiNaC. Once you know the right
  method, it shall be easier to implement in the code.
-- 
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


More information about the GiNaC-list mailing list