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 次查看(过去 30 天)
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

采纳的回答

Roger Stafford
Roger Stafford 2016-2-11
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)

更多回答(2 个)

Walter Roberson
Walter Roberson 2016-2-11
Hint:
x = 1;
r = 3;
x = x * r
x = x * r
x = x * r
...

Waleed Alrabghi
Waleed Alrabghi 2016-2-11
Thank you guys

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by