[Python] How can I program laurent series coefficients with Sympy module in Python?

Discussão em 'Python' iniciado por Stack, Abril 18, 2025.

  1. Stack

    Stack Membro Participativo

    I want to program laurent series coefficients with Sympy module, because this is my university task, but I face some problems. How can I build sequence of coefficents if I can't calculate coefficients of correct part of laurent series like this

    a_n = sp.SeqFormula(sp.diff(w, (z, n), evaluate = True).subs({z : 1}) / sp.factorial(n), (n, 0, +sp.oo))


    The problem is that derivative is not calculated at the specified point and it looks like

    sp.diff(w, (z, n), evaluate = False)


    But formula even has

    d / dx


    and

    |


    like in Newton formula. The problem is that counter

    n


    probably doesn't allow me to calculate derivative.

    Continue reading...

Compartilhe esta Página