On Sat, 17 Jun 2023 at 03:42, Melis Gezer <melisgeze...@gmail.com> wrote: > > Is there any function to obtain an explicit formula of coefficients for > generating functions? > > It should give, for example, (1/(n+1))C(2n,n) if I gave the generating > function of Catalan numbers.
I don't understand exactly what you are asking for but if you have a sequence a0, a1, a2, ... and the generating function is f(x) = a0 + a1*x + a2*x**2 + ... Then if you have a formula f_expr for f(x) you can find a formula for ai with f_expr.diff(x, i).subs(x, 0)/factorial(i) -- Oscar -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxSa-iJApKt65cwGkSXaDETFTNfa6RvfZ1HFkOCjnHQFrA%40mail.gmail.com.