MATLAB: How can i calculate the sum of the following geometric series N= 1000 and r =0.99

homework

calculate the sum of the following geometric series N= 1000 and r =0.99 =1+r+r2+r3+…+rN

Best Answer

N=0:1000;
r = 0.99;
E = r.^N;
sum(E)
Related Question