% exp_td
% sums n terms of Taylor series for exp(x)
x = 100;
n = 30
0;
s = 1;
term=1;
for j = 1:n
    term=term*x/j;
    s = s + term;
%   s = s + (x^j)/factorial(j);
end
s