nRepeat = 100;
disp('T1 = MyExp1 benchmark.')
disp('T2 = MyExp2 benchmark.')
disp(' Length(x)     T2/T1')
disp('----------------------------------------------------')
for L = 1000:100:2000
   xL = linspace(-1,1,L);
   tic, for k=1:nRepeat, y = MyExp1(xL); end, T1 = toc;
   tic, for k=1:nRepeat, y = MyExp2(xL); end, T2 = toc;
   disp(sprintf('%6.0f  %13.6f  ',L,T2/T1))
end
disp('----------------------------------------------------')
% for L = 1000:200:2000
% T3 = MyExp3 benchmark.
% T4 = MyExp4 benchmark.
%  Length(x)     T4/T3
% ----------------------------------------------------
%   1000       0.022783  
%   1200       0.022003  
%   1400       0.021335  
%   1600       0.020791  
%   1800       0.020592  
%   2000       0.019923
% ----------------------------------------------------
disp(' Length(x)      MyExp1(x)       MyExp2(x) ')
disp('                  Flops           Flops')
disp('------------------------------------------')
for L = 50:50:300
   xL = linspace(-1,1,L);
   flops(0); y = MyExp1(xL); f1 = flops;
   flops(0); y = MyExp2(xL); f2 = flops;
   disp(sprintf('%6.0f  %13.0f  %13.0f ',L,f1,f2))
end