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

17 views (last 30 days)
calculate the sum of the following geometric series N= 1000 and r =0.99 =1+r+r2+r3+...+rN

Accepted Answer

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

More Answers (2)

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

Waleed Alrabghi
Waleed Alrabghi on 18 Feb 2016
Thank you guys for the help

Tags

Community Treasure Hunt

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

Start Hunting!