how can i calculate the sum of the following geometric series N= 1000 and r =0.99

2 次查看(过去 30 天)
calculate the sum of the following geometric series N= 1000 and r =0.99 =1+r+r2+r3+...+rN

采纳的回答

MHN
MHN 2016-2-18
N=0:1000;
r = 0.99;
E = r.^N;
sum(E)

更多回答(2 个)

Image Analyst
Image Analyst 2016-2-18
How about a for loop? That's pretty simple, even for a beginner.

Waleed Alrabghi
Waleed Alrabghi 2016-2-18
Thank you guys for the help

类别

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