%-----------------------------------------------------------------------
 function y = MyExp3(x)
% y = MyExp3(x)
% x is a column vector of length p,
% and y is a column vector with the property that y(i) is a Taylor 
% approximation to exp(x(i)) for i = 1:p
p = length(x);
y = ones(p,1);
for i = 1:p
   y(i) = MyExpW(x(i));
end
