The well-known Horner schema lets you calculate polynomial expressions efficiently. To calculate:
A*x^N + B*x^(N-1) + . + Y*x + Z ( ^ means power ),
simply write this expression as
(.((A*x + B)*x + C)*x + . +Y)*x + Z
Home » Evaluate Polynomials Faster
The well-known Horner schema lets you calculate polynomial expressions efficiently. To calculate:
A*x^N + B*x^(N-1) + . + Y*x + Z ( ^ means power ),
simply write this expression as
(.((A*x + B)*x + C)*x + . +Y)*x + Z
At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.
See our full editorial policy.