Open williamstein opened 16 years ago
Description changed:
---
+++
@@ -94,3 +94,4 @@
There are also some inexact matches for `solve_rec'.
Try `?? solve_rec' to see them.
+Since there is also sympy.rsolve
which is quite capable, this ticket should wrap both maxima and sympy.
Some questions must be answered before doing this:
misc/
?Description changed:
---
+++
@@ -1,4 +1,6 @@
-Sage should be able to easily solve at least some recurrences. Maxima is actually pretty capable here.
+This ticket would provide an interface to Maxima's and Sympy's recurrence-solving functions.
+
+Maxima example:
sage: maxima.load('solve_rec') @@ -13,8 +15,22 @@
+Sympy example:
-Somebody should wrap this:
+```
+>>> from sympy import Function, rsolve
+>>> from sympy.abc import n
+>>> 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))
+2**n*C0 + C1*factorial(n)
+
+>>> rsolve(f, y(n), { y(0):0, y(1):3 })
+3*2**n - 3*factorial(n)
+```
+The Maxima help:
@@ -94,4 +110,4 @@
There are also some inexact matches for solve_rec'. Try
?? solve_rec' to see them.
-Since there is also `sympy.rsolve` which is quite capable, this ticket should wrap both maxima and sympy.
+
This ticket would provide an interface to Maxima's and Sympy's recurrence-solving functions.
Maxima example:
Sympy example:
The Maxima help:
CC: @burcin @sagetrac-kevin-stueve @kcrisman @robert-marik @eviatarbach @rwst @sagetrac-ktkohl
Component: calculus
Issue created by migration from https://trac.sagemath.org/ticket/1291