You are on page 1of 1

8/9/17 11:41 PM C:\Users\sji...\convergent_series_test.

m 1 of 1

% Convergent Test of Series 1/2^k


clear screen
format long
f = inline('1./(2.^k)','k');
a = f(1:50);
s = cumsum(a);
plot(s,'b.-');
title('Convergent Test of Series');

Output:

Series is Convergent

You might also like