how can i calculate the sum of the following geometric series N= 1000 and r =0.99

2 ビュー (過去 30 日間)
calculate the sum of the following geometric series N= 1000 and r =0.99 =1+r+r2+r3+...+rN

採用された回答

MHN
MHN 2016 年 2 月 18 日
N=0:1000;
r = 0.99;
E = r.^N;
sum(E)

その他の回答 (2 件)

Image Analyst
Image Analyst 2016 年 2 月 18 日
How about a for loop? That's pretty simple, even for a beginner.

Waleed Alrabghi
Waleed Alrabghi 2016 年 2 月 18 日
Thank you guys for the help

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by