function y = polyval(p,x)
% POlyNOM/POLYVAL  POLYVAL(p,x) evaluates p at the points x.
y = 0;
d = length(p.c);
for a = p.c
	y = y + a*x.^(d-1);
	d = d-1;
	% y = y.*x+a
end