Skip to main content

Horner's Method

Definition​

Horner's Method is an algorithm used to efficiently evaluate polynomials. It reduces the number of arithmetic operations required compared to other methods by evaluating the polynomial as a nested multiplication and addition process

Practice​

evaluate_polynomial(coefficients, x):
result = 0
for i from n to 0:
result = result * x + coefficients[i]
return result