Status: Accepted
Owner: skr...@gmail.com
Labels: Type-Defect Priority-Medium
New issue 2408 by skr...@gmail.com: Error in rsolve
http://code.google.com/p/sympy/issues/detail?id=2408
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)
Documentation can be found at http://www.sympy.org
In [1]: print rsolve(2*f(-1 + n) + (1 - n)*f(n)/n,f(n))
C0*2**n*n!/((1 + n)*RisingFactorial(0, n))
The expected answer is f(0)*2**n*n
f(n) = (2*n/(n-1))*f(n-1) =
(2*n/(n-1))*(2*(n-1)/(n-2))*f(n-2)=...=2**n*n!/(n-1)!f(0)=2**n*n*f(0)
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.