Premium Only Content

Horner's method: application exercise
Horner's method is an algorithm for evaluating polynomials and finding approximate roots. It is named after the British mathematician William George Horner.
Polynomial evaluation
1. *Write the polynomial*: p(x) = a_n x^n + a_{n-1} x^{n-1} +... + a_1 x + a_0
2. *Enter the value of x*: x = c
3. *Calculate the result*: p(c) = a_n c^n + a_{n-1} c^{n-1} +... + a_1 c + a_0
Horner's algorithm
1. Initialize the result: r = a_n
2. *For i = n-1 up to 0*: r = r * c + a_i
3. *Returns r*: p(c) = r
Example
Evaluate p(x) = 3x^2 + 2x - 1 at x = 2.
Steps
1. *Initializes r = 3*
2. r = r * 2 + 2 = 3 * 2 + 2 = 8
3. r = r * 2 - 1 = 8 * 2 - 1 = 15
Result
p(2) = 15
Advantages
1. Efficient to evaluate polynomials.
2. Easy to implement.
Disadvantages
1. Only evaluate polynomials.
Applications
1. Numerical calculation.
2. Numerical analysis.
3. Engineering.
4. Sciences.
Software
1. MATLAB
2. Python (NumPy library)
3. Mathematica
4. Wolfram Alpha
-
22:34
The Pascal Show
9 hours ago $0.98 earnedFEDERAL CHARGES?! Iryna Zarutska's Attacker Gets Hit With Federal Charges After Fatal Train Attack
7.57K8 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
219 watching -
13:05
Mike Rowe
4 days agoIs College DEAD? Inside America’s #1 Trade School | Sheree Utash From #448 | The Way I Heard It
78.6K26 -
3:01:13
FreshandFit
5 hours agoAyesha Curry Never Wanted Steph Curry
65.8K11 -
23:28
DeVory Darkins
10 hours ago $11.49 earnedTrump official ANNIHILATES Democrats in heated debate as CNN gets caught sympathizing with criminals
26K71 -
1:02:26
The Nick DiPaolo Show Channel
12 hours agoPOC Murders Another White Woman | The Nick Di Paolo Show #1790
57.5K71 -
2:04:29
Inverted World Live
8 hours agoNew UFO Hearing Testimony: Lockheed Martin Has Alien Technology | Ep. 105
69.6K8 -
5:00:59
Akademiks
6 hours agoYNW Melly MIGHT BE COOKED! Co-D TELLLING? 6ix9ine vs Young Thug . Drake vs Kaicenat? HOLLY
36.5K2 -
4:46:45
Drew Hernandez
13 hours agoHORRIFYING: FULL FOOTAGE OF IRYNA ZARUTSKA MURDER HAS BEEN RELEASED
38.3K37 -
2:42:09
TimcastIRL
8 hours agoNATO Scramble Air Force Over Russian Incursion Into Poland, HIGH ALERT Reported | Timcast IRL
187K116