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

2 visualizzazioni (ultimi 30 giorni)
calculate the sum of the following geometric series N= 1000 and r =0.99 =1+r+r2+r3+...+rN

Risposta accettata

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

Più risposte (2)

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

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

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by