 function y = MyExpF(x,n)
%
% Pre:
%    x = scalar
%    n = positive integer
%
% Post:
%    y = n-th order Taylor approximation to exp(x).
%
   y = 1;
   term = 1;
   for k = 1:n
      term = x*term/k;
	  y = y + term;
   end
