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