Filter löschen
Filter löschen

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 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Roger Stafford
Roger Stafford am 11 Feb. 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)

Weitere Antworten (2)

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

Waleed Alrabghi
Waleed Alrabghi am 11 Feb. 2016
Thank you guys

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by