BRUTE_POLY_EVAL(A,x) sum ← 0 for i ← 0 to n do sum ← sum + A[i]*pow(x,i) return sum
HORNER(A,x) sum ← A[n] for i ← n-1 downto sum ← x * sum + A[i] return sum