Generating a Polynomial Given Its Roots
|
12-23-2018, 02:11 PM
(This post was last modified: 12-23-2018 09:56 PM by Namir.)
Post: #4
|
|||
|
|||
RE: Generating a Polynomial Given Its Roots
Here is my version of the HP-41C program that can handle up to 19 roots.
The code basically implements repeatedly multiplying a polynomial with a simple 1st degree polynomial. The initial form of the polynomial is also a simple first degree polynomial. As you enter more roots, the degree of the polynomial increases. Code:
Run the program by executing XEQ "POLY" (you can instead press the key [A] when you are inside the program POLY): 1) The first prompt will ask you for the first root. Enter a root. 2) Subsequent prompts will ask you for additional roots OR to enter 0 when you are done. 3) The program displays the coefficients of the polynomial starting with the coefficient of the highest term. Press [R/S] to view the next coefficient of the sequentially lower term. When you have viewed all of the coefficients, the program displays END. Inspect the value in register 41 to view the degree of the resulting polynomial. Enjoy! |
|||
« 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)