필터 지우기
필터 지우기

Solve Difference Equations symbolically

조회 수: 4 (최근 30일)
Amr Younis
Amr Younis 2017년 2월 13일
편집: Soham Chatterjee 2019년 7월 18일
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일
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일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by