Ask Your Question
0

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
0

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)
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,

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

Stats

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

Seen: 236 times

Last updated: Aug 12 '21