Ask Your Question

How we can solve a difference equations in Sagemath.

asked 2021-08-12 06:51:30 +0200

RGG gravatar image

How we can solve a difference equations in Sagemath.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-12 10:31:07 +0200

Emmanuel Charpentier gravatar image

updated 2021-08-12 10:33:47 +0200

sage: import sympy sage: sympy.rsolve?

gives :

Signature:      sympy.rsolve(f, y, init=None)
   Solve univariate recurrence with rational coefficients.

   Given k-th order linear recurrence \operatorname{L} y = f, or

      a_{k}(n) y(n+k) + a_{k-1}(n) y(n+k-1) + ... + a_{0}(n) y(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...


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-08-12 06:51:30 +0200

Seen: 261 times

Last updated: Aug 12 '21