How to solve this equation
古いコメントを表示
Hi,everyone,there is a equation as followed:
f(x)=h0*f(x)+h1*f(x-1)+h2*f(x-2)+h3*f(x-3);
The values of the h0~h3 are given,then how to solve this equation?
thank you!
1 件のコメント
Geoff
2012 年 3 月 26 日
This equation looks intractably recursive. Are those f(x) terms on the right-hand side in fact supposed to be some other function/dataset, such as g(x)?
採用された回答
その他の回答 (1 件)
Stefan Wehmeier
2012 年 3 月 26 日
This is a recurrence equation and thus has to declared as such using rec(...).
eq = evalin(symengine, 'rec(f(x)=h0*f(x)+h1*f(x-1)+h2*f(x-2)+h3*f(x-3), f(x))');
solve(eq)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!