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

3 views (last 30 days)
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

Accepted Answer

Roger Stafford
Roger Stafford on 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)

More Answers (2)

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

Waleed Alrabghi
Waleed Alrabghi on 11 Feb 2016
Thank you guys

Categories

Find more on Just for fun in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!