Changes between Version 7 and Version 8 of Ticket #1291
- Timestamp:
- 02/02/15 16:40:23 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1291 – Description
v7 v8 1 Sage should be able to easily solve at least some recurrences. Maxima is actually pretty capable here. 1 This ticket would provide an interface to Maxima's and Sympy's recurrence-solving functions. 2 3 Maxima example: 2 4 {{{ 3 5 sage: maxima.load('solve_rec') … … 13 15 }}} 14 16 17 Sympy example: 18 {{{ 19 >>> from sympy import Function, rsolve 20 >>> from sympy.abc import n 21 >>> y = Function('y') 15 22 16 Somebody should wrap this: 23 >>> f = (n - 1)*y(n + 2) - (n**2 + 3*n - 2)*y(n + 1) + 2*n*(n + 1)*y(n) 24 25 >>> rsolve(f, y(n)) 26 2**n*C0 + C1*factorial(n) 27 28 >>> rsolve(f, y(n), { y(0):0, y(1):3 }) 29 3*2**n - 3*factorial(n) 30 }}} 31 The Maxima help: 17 32 {{{ 18 33 … … 93 108 Try `?? solve_rec' to see them. 94 109 }}} 95 Since there is also `sympy.rsolve` which is quite capable, this ticket should wrap both maxima and sympy.