%-----------------------------------------------------------------------
% script taylorv
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
% T1 = MyExp1 benchmark.
% T2 = MyExp2 benchmark.
%  Length(x)     T2/T1
% ----------------------------------------------------
%   1000       0.012505  
%   1100       0.012224  
%   1200       0.012098  
%   1300       0.011663  
%   1400       0.011508  
%   1500       0.011173  
%   1600       0.011123  
%   1700       0.010729  
%   1800       0.009902  
%   1900       0.010098  
%   2000       0.010312  
