I am attempting to rsolve a recursion and am having a problem.  Doctoring 
up the first example the live window follows.  Please note that I changed (n**2 
+ 3*n - 2) to (n**2 + 3*n - k) and then no output results. Is this because 
it won't handle parameters or am I supposed to do things differently?
Ray

Python console for SymPy 0.7.6 (Python 2.7.5) These commands were executed: 
>>> from __future__ import division >>> from sympy import * >>> x, y, z, t 
= symbols('x y z t') >>> k, m, n = symbols('k m n', integer=True) >>> f, g, 
h = symbols('f g h', cls=Function) 
>>> from sympy import Function, rsolve
>>> f = (n - 1)*y(n + 2) - (n**2 + 3*n - 2)*y(n + 1) + 2*n*(n + 1)*y(n)
>>> rsolve(f, y(n))
2nC0+C1n!
>>> from sympy import Function, rsolve
>>> from sympy.abc import n
>>> from sympy.abc import n
>>> y = Function('y')
>>> y = Function('y')
>>> f = (n - 1)*y(n + 2) - (n**2 + 3*n - 2)*y(n + 1) + 2*n*(n + 1)*y(n)
>>> rsolve(f, y(n))
2nC0+C1n!
>>> f = (n - 1)*y(n + 2) - (n**2 + 3*n - k)*y(n + 1) + 2*n*(n + 1)*y(n)
>>> rsolve(f, y(n))

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/4fd75cf3-1ccc-4724-8c9e-b34def7e8b5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to