#14437: rsolve fails with initial conditions
----------------------------+-----------------------------------------------
       Reporter:  zimmerma  |         Owner:  burcin   
           Type:  defect    |        Status:  new      
       Priority:  minor     |     Milestone:  sage-5.10
      Component:  calculus  |    Resolution:           
       Keywords:            |   Work issues:           
Report Upstream:  N/A       |     Reviewers:           
        Authors:            |     Merged in:           
   Dependencies:            |      Stopgaps:           
----------------------------+-----------------------------------------------

Comment (by kcrisman):

 This is a pure Sympy question.
 {{{

 In [1]: import sympy

 In [3]: u = sympy.Function('u')

 In [5]: n = sympy.Symbol('n',integer=True)

 In [6]: f = u(n+2) - u(n+1) + u(n)/4

 In [7]: sympy.rsolve(f,u(n))
 Out[7]: 2**(-n)*C0*RisingFactorial(C0/C1 + 1, n)/RisingFactorial(C0/C1, n)

 In [8]: sympy.rsolve(f,u(n),{u(0):0,u(1):1})
 In [9]:
 }}}
 I guess you could report it [http://code.google.com/p/sympy/issues/list
 upstream] and we could verify a fix here eventually.

 Second, the object you did is a Sympy object, so you would want to
 translate it to Sage first.
 {{{
 sage: sage: rsolve(f,u(n))
 2**(-n)*C0*RisingFactorial(C0/C1 + 1, n)/RisingFactorial(C0/C1, n)
 sage: _._sage_()
 AttributeError: 'RisingFactorial' object has no attribute '_sage_'
 }}}
 But separately, it would be nice, true, to have a good translation of
 !RisingFactorial.  I suggest you split this up into two different tickets,
 if that's okay, as the issues are quite different.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14437#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to