How we can solve a difference equations in Sagemath.
How we can solve a difference equations in Sagemath.
How we can solve a difference equations in Sagemath.
sage: import sympy sage: sympy.rsolve?
gives :
Signature: sympy.rsolve(f, y, init=None)
Docstring:
Solve univariate recurrence with rational coefficients.
Given k-th order linear recurrence \operatorname{L} y = f, or
equivalently:
a_{k}(n) y(n+k) + a_{k-1}(n) y(n+k-1) + ... + a_{0}(n) y(n) =
f(n)
where a_{i}(n), for i=0, ..., k, are polynomials or rational
functions in n, and f is a hypergeometric function or a sum of a
fixed number of pairwise dissimilar hypergeometric terms in n,
finds all solutions or returns "None", if none were found.
[ Abbreviated... ]
Of course, see also Wikipedia...
HTH,
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2021-08-12 06:51:30 +0200
Seen: 297 times
Last updated: Aug 12 '21