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

1 vue (au cours des 30 derniers jours)
calculate the sum of the following geometric series N= 1000 and r =0.99 =1+r+r2+r3+...+rN

Réponse acceptée

MHN
MHN le 18 Fév 2016
N=0:1000;
r = 0.99;
E = r.^N;
sum(E)

Plus de réponses (2)

Image Analyst
Image Analyst le 18 Fév 2016
How about a for loop? That's pretty simple, even for a beginner.

Waleed Alrabghi
Waleed Alrabghi le 18 Fév 2016
Thank you guys for the help

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by