Solve Difference Equations symbolically

Hello, how to solve difference equations symbolically?
in another application called Maxima, there is a function called solve_rec

 Respuesta aceptada

Amr Younis
Amr Younis el 13 de Feb. de 2017
Editada: Amr Younis el 13 de Feb. de 2017

0 votos

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 comentario

Karan Gill
Karan Gill el 16 de Feb. de 2017
This approach is incorrect. Please see my answer below.

Iniciar sesión para comentar.

Más respuestas (1)

Karan Gill
Karan Gill el 13 de Feb. de 2017
Editada: Karan Gill el 17 de Oct. de 2017

0 votos

Use dsolve: https://www.mathworks.com/help/symbolic/dsolve.html. There's no need to use MuPAD.

1 comentario

Soham Chatterjee
Soham Chatterjee el 18 de Jul. de 2019
Editada: Soham Chatterjee el 18 de Jul. de 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.

Iniciar sesión para comentar.

Productos

Preguntada:

el 13 de Feb. de 2017

Editada:

el 18 de Jul. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by