Generating a Polynomial Given Its Roots
|
12-23-2018, 08:15 AM
(This post was last modified: 12-23-2018 09:28 AM by Thomas Klemm.)
Post: #3
|
|||
|
|||
RE: Generating a Polynomial Given Its Roots
If you really only want to do that up to order 4 you can use:
Code: LBL "POLY4" Example: CLRG -3 XEQ "POLY4" 3 R/S 4 R/S 6 R/S The coefficients of the polynomial can then be found in the registers: R 00: -10.0000 R 01: 15.0000 R 02: 90.0000 R 03: -216.0000 But we can do better than loop unrolling and use for the general case: Code: 01 LBL "POLY" Example: CLRG CLST -3 XEQ "POLY" 3 R/S 4 R/S 6 R/S The coefficients of the polynomial can again be found in the registers: R 00: -10.0000 R 01: 15.0000 R 02: 90.0000 R 03: -216.0000 In both cases the leading coefficient is always 1. Cheers Thomas |
|||
« 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: 1 Guest(s)