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 (최근 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에서 Just for fun에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by