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
-
iCkEdMeL
1 hour ago $5.19 earnedFrom Music to Murder? D4VD’s Tesla Horror Story
15.5K5 -
LIVE
TwinGatz
1 hour ago🔴LIVE - Strike Out Saturday | CS2 | Counter-Strike 2 | New Subs = Case Opening
23 watching -
LIVE
Simulation and Exploration
4 hours agoHow well does this play on a controller? Future console players check this out!
41 watching -
LIVE
MrR4ger
6 hours agoTHE THREE SPLOOGES (THE RECKONING) - ACTIVE MATTER w/ AKAGUMO & TONYGAMING
38 watching -
1:25:04
Michael Franzese
4 hours agoJames Comey, Epstein Files Block, Tylenol | Michael Franzese Live
185K54 -
1:24:44
Winston Marshall
9 hours agoThe Hamas Hoax That Fooled The West...
19.2K19 -
LIVE
Grant Cardone
4 hours agoReal Estate Live Training
157 watching -
22:53
Jasmin Laine
1 day agoParliament ERUPTS After "WORST Decision EVER!"—Carney Left SPEECHLESS by SHOCKING Report
20K31 -
11:50
Mrgunsngear
1 day ago $5.89 earnedSteiner MPS Enclosed Red Dot: Better Than The ACRO P2? 🔴
20.7K14 -
1:27:55
Sarah Westall
20 hours agoSelecting World Leaders: Intelligence No Longer a Prerequisite w/ Martin Armstrong
28.3K8