Solve Difference Equations symbolically

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

 採用された回答

Amr Younis
Amr Younis 2017 年 2 月 13 日
編集済み: Amr Younis 2017 年 2 月 13 日

0 投票

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 件のコメント

Karan Gill
Karan Gill 2017 年 2 月 16 日
This approach is incorrect. Please see my answer below.

サインインしてコメントする。

その他の回答 (1 件)

Karan Gill
Karan Gill 2017 年 2 月 13 日
編集済み: Karan Gill 2017 年 10 月 17 日

0 投票

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

1 件のコメント

Soham Chatterjee
Soham Chatterjee 2019 年 7 月 18 日
編集済み: Soham Chatterjee 2019 年 7 月 18 日
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.

サインインしてコメントする。

製品

質問済み:

2017 年 2 月 13 日

編集済み:

2019 年 7 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by