
Horner's Method is a method of expressing a polynomial f(x) = an xn + an1 xn1 + . . . + a2 x2 + a1 x1 + a0 x0 which eliminates all exponentiations. The elimination of exponentiations, eliminates re-doing some calculations.
In NSD, we have
|
In C++, we have
|
||||||||