function p = HornerDumb(a,t)
% Evaluate a polynomial using a dumb method
% Polynomial is assumed to have the form
% a(1) + a(2)*t + a(3)*t^2 + ... + a(n+1)*t^n
% K. Ming Leung, 02/26/03

N=length(a);    % N=n+1
p = a(1);
tp = 1;
for k=2:N
    tp = tp*t;
    p = p + a(k)*tp;
end
