horzLine = '_____________________________________________________________';
fprintf('\n\n                 Homework #5, problem 2c');
fprintf('\n\n  x | Built-in exp(x)  |    limExp(x)     |  m  | Difference \n%s\n', horzLine);

for x = 1 : 20
    expX = exp(x);
    [limExpX, m] = limExp(x);
    fprintf(' %2d | %15.8e  | %15.8e  | %3d | %.1e \n', x, expX, limExpX, m, abs(expX - limExpX) );
end

fprintf('%s\n\n *** Note the "sudden" failure at x=18\n', horzLine);