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
-
LIVE
tminnzy
1 hour agoBLACK OPS 7 MULTIPLAYER ROAD TO MASTER PRESTIGE
190 watching -
47:10
The Rubin Report
6 hours agoWhat Really Happened on ‘The View’ & ‘Curb Your Enthusiasm’ | Cheryl Hines
158K42 -
3:08:37
LumpyPotatoX2
5 hours agoWhere Winds Meet: New Level Cap + Rumble Wallet - #RumbleGaming
26.3K1 -
LIVE
SOLTEKGG
3 hours ago🔴LIVE - Battlefield 6 - Going Pro in RED SEC
232 watching -
11:37
tactical_rifleman
2 days agoRare Breed BEATS THE ATF | FRT-15 | Tactical RIfleman
67.5K23 -
2:51:46
Pepkilla
4 hours agoMore GOLD Camo's PLEASE Grind Call Of Black Ops 7
18K2 -
1:35:54
LexTronic
3 hours ago $0.46 earnedMetroid Prime Remastered
12K3 -
12:32
MetatronGaming
18 hours agoBLIGHT looks AMAZING - Trailer Reaction
35.5K13 -
LIVE
ProRedmanX
3 hours ago $0.63 earnedSunday Morning Coffee & Chaos ☕ | PUBG -> BF6 -> ??? #goonsquad
76 watching -
5:23
Memology 101
22 days ago $18.10 earnedReporter HUMILIATES Kamala Harris over "WORLD-CLASS" dodge during interview
28.6K54