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

4 Ansichten (letzte 30 Tage)
calculate the sum of the following geometric series N= 1000 and r =0.99 =1+r+r2+r3+...+rN

Akzeptierte Antwort

MHN
MHN am 18 Feb. 2016
N=0:1000;
r = 0.99;
E = r.^N;
sum(E)

Weitere Antworten (2)

Image Analyst
Image Analyst am 18 Feb. 2016
How about a for loop? That's pretty simple, even for a beginner.

Waleed Alrabghi
Waleed Alrabghi am 18 Feb. 2016
Thank you guys for the help

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by