write a function to calculate f(n)=f(1-1)+f(1-2) where f1=(1),f2=(2)

4 ビュー (過去 30 日間)
Death Omar
Death Omar 2019 年 12 月 8 日
回答済み: Walter Roberson 2019 年 12 月 8 日
write a function to calculate f(n)=f(1-1)+f(1-2) where f1=(1),f2=(2)

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 12 月 8 日
f(1-1) is f(0) and f(1-2) is f(-1) . The sum of the two would be constant, so f(n) would have to be constant. That is inconsistent with f1 being different than f2. The equation is therefore inconsistent, and no such function can be written.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by