  function y = MyExp2(x)
%
% Pre:
%    x: a vector.
%
% Post:
%    y: a vector the same shape as x with the property that
%       y(i) is a Taylor approximation to exp(x(i)).
%
   y = ones(size(x));
   n = 17;
   term = ones(size(x));
   for k=1:n
      term = x.*term/k;
	  y = y + term;
   end
