Effacer les filtres
Effacer les filtres

Solve Difference Equations symbolically

4 vues (au cours des 30 derniers jours)
Amr Younis
Amr Younis le 13 Fév 2017
Hello, how to solve difference equations symbolically?
in another application called Maxima, there is a function called solve_rec

Réponse acceptée

Amr Younis
Amr Younis le 13 Fév 2017
Modifié(e) : Amr Younis le 13 Fév 2017
i think i found the answer: the solver is a MuPad one:
syms y(n);
y(n)=evalin(symengine,'solve(rec(y(n)=y(n-1)+y(n-2),y(n),y(0)=0,y(1)=1}))');
double(y(7))
  1 commentaire
Karan Gill
Karan Gill le 16 Fév 2017
This approach is incorrect. Please see my answer below.

Connectez-vous pour commenter.

Plus de réponses (1)

Karan Gill
Karan Gill le 13 Fév 2017
Modifié(e) : Karan Gill le 17 Oct 2017
Use dsolve: https://www.mathworks.com/help/symbolic/dsolve.html. There's no need to use MuPAD.
  1 commentaire
Soham Chatterjee
Soham Chatterjee le 18 Juil 2019
Modifié(e) : Soham Chatterjee le 18 Juil 2019
The answer you have given will only work for differential equations, if I am not wrong. But I need the solution for a difference equation, can you please help me out.

Connectez-vous pour commenter.

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by