On Sunday, June 30, 2013 2:49:20 PM UTC+4, Thilina Rathnayake wrote: > > We can solve this difference equation and output the general solution > perhaps. > Is there a way to solve recurrences in sympy? I searched and found there > is a > function called rsolve() but couldn't find it's documentation. >
Just input rsolve? in sympy console. For example: $ cd src/sympy/ $ ./bin/isympy In [1]: rsolve? Type: function String Form:<function rsolve at 0x39b2410> File: /home/sk/src/sympy/sympy/solvers/recurr.py Definition: rsolve(f, y, init=None) Docstring: Solve univariate recurrence with rational coefficients. Given k-th order linear recurrence Ly = f ... -- 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 post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.