calculate the sum of the following geometric series when N = 1000 and r =1/2 I have searched here and in the "help" in Matlab, but i found nothing about the geometric series

2 visualizaciones (últimos 30 días)
calculate the sum of the following geometric series when N = 1000 and r =1/2 I have searched here and in the "help" in Matlab, but i found nothing about the geometric series

Respuesta aceptada

Roger Stafford
Roger Stafford el 11 de Feb. de 2016
If your geometric series is a, a*r, a*r^2, ..., a*r^N, then its sum is:
s = a*(1-r^(N+1))/(1-r)

Más respuestas (2)

Walter Roberson
Walter Roberson el 11 de Feb. de 2016
Hint:
x = 1;
r = 3;
x = x * r
x = x * r
x = x * r
...

Waleed Alrabghi
Waleed Alrabghi el 11 de Feb. de 2016
Thank you guys

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by