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

2 visualizaciones (últimos 30 días)
calculate the sum of the following geometric series N= 1000 and r =0.99 =1+r+r2+r3+...+rN

Respuesta aceptada

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

Más respuestas (2)

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

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

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by