% Testing Horner's method for evaluating 
% a Polynomial against other inefficient methods

clear all; num=50000;
coeff = rand(num,1);
t = 0.2;
repeat = 100;
% time=clock; 
% for i=1:repeat
%     H1=HornerDumber(coeff,t);
% end
% T1=etime(clock,time);

time=clock; 
for i=1:repeat
    H2=HornerDumb(coeff,t); 
end
T2=etime(clock,time);

time=clock; 
for i=1:repeat
    H3=Horner(coeff,t); 
end
T3=etime(clock,time);
[T2 T3]
%[H1 H2 H3], [T1 T2 T3]
