Generating a Polynomial Given Its Roots
|
12-17-2018, 02:50 AM
Post: #1
|
|||
|
|||
Generating a Polynomial Given Its Roots
Generate the coefficients of a polynomial (up to the order 4) with the roots a_0, a_1, a_2, and a_3. The resulting polynomial is:
p(x) = (x - a_0) * (x - a_1) * (x - a_2) * (x - a_3) * (x - a_4) p(x) = r_4 * x^4 + r_5 * x^3 + r_6 * x^2 + r_7 * x + r_8 The default is a polynomial where the lead coefficient is positive. If you want a polynomial where the lead coefficient is negative, multiply every coefficient by -1. Instructions Store the four roots in registers R00, R01, R02, and R03 respectively. Run POLY4. Coefficients are shown briefly as they are calculated. They are can be recalled by the registers in decreasing order of x: R04, R05, R06, R07, and R08. DM 41L and HP 41C Program: POLY4 Code:
Example Roots x = -3, x = 3, x= 4, and x= 6 Coefficients: R04 = 1 R05 = -10 R06 = 15 R07 = 90 R08 = -216 Polynomial: p(x) = x^4 - 10 * x^3 + 15 * x^2 + 90 * x - 216 Blog post: https://edspi31415.blogspot.com/2018/12/...omial.html |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Generating a Polynomial Given Its Roots - Eddie W. Shore - 12-17-2018 02:50 AM
RE: Generating a Polynomial Given Its Roots - Namir - 12-22-2018, 11:44 PM
RE: Generating a Polynomial Given Its Roots - Eddie W. Shore - 12-23-2018, 07:41 PM
RE: Generating a Polynomial Given Its Roots - Thomas Klemm - 12-23-2018, 08:15 AM
RE: Generating a Polynomial Given Its Roots - Namir - 12-23-2018, 02:11 PM
RE: Generating a Polynomial Given Its Roots - Thomas Klemm - 12-23-2018, 03:19 PM
RE: Generating a Polynomial Given Its Roots - Namir - 12-23-2018, 09:12 PM
RE: Generating a Polynomial Given Its Roots - Namir - 12-23-2018, 09:57 PM
RE: Generating a Polynomial Given Its Roots - Namir - 12-26-2018, 12:09 AM
RE: Generating a Polynomial Given Its Roots - Thomas Klemm - 12-27-2018, 10:35 PM
RE: Generating a Polynomial Given Its Roots - Namir - 12-28-2018, 07:20 AM
|
User(s) browsing this thread: 2 Guest(s)