%-----------------------------------------------------------------------
  function y = MyExp1(x)
% y = MyExp1(x)
% x is a column vector of length p, n is a positive integer
% and y is a column vector with the property that y(i) = n-th order Taylor 
% approximation to exp(x(i)) for i = 1:p
n = 17; p = length(x);
y = ones(p,1);
for i = 1:p
   y(i) = MyExpF(x(i),n);
end
