%
%   Coefficients of the polynomial are:
%
a=[1,2,3,4,5,6,7,8,9];
n=8;
%
%
% P(x) = a(1) + a(2)*x +....... a(n+1)*x^n
%
% P(x) = 1 + 2x + 3x^2 + 4x^3 + ....9x^8
%
% At an x value:
%
x=1.1;
%
p=a(n+1);
for i=n:(-1):1
    p=a(i)+x*p;
end
%
ans=p

    