Solving for the roots of a cubic polynomial
|
06-30-2024, 08:46 PM
(This post was last modified: 07-01-2024 09:47 PM by Namir.)
Post: #1
|
|||
|
|||
Solving for the roots of a cubic polynomial
This is a Free42 printout of an HP-41C program that uses the instructions found on page 75 of the HP-4 Application Book. The program calculates the real and complex roots of a cubic polynomial:
x^3 + a*x^2 + b^x + c = 0 The program prompts you for the coefficients, b, a, and c in that order. The HP-41C adaptation uses labels and flags 00 and 01 to direct the flow of the calculations. The output includes the determinant d and the roots x1, x2, and x3. When the roots are complex the output appears as <real,imaginary>. The listing (revised from HP-42s to HP-41C) is: Code: 01 LBL "CUBE" |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Solving for the roots of a cubic polynomial - Namir - 06-30-2024 08:46 PM
RE: Solving for the roots of a cubic polynomial - Albert Chan - 06-30-2024, 11:49 PM
RE: Solving for the roots of a cubic polynomial - Namir - 07-01-2024, 04:13 AM
RE: Solving for the roots of a cubic polynomial - Albert Chan - 07-01-2024, 06:14 PM
RE: Solving for the roots of a cubic polynomial - Namir - 07-02-2024, 05:36 AM
RE: Solving for the roots of a cubic polynomial - Albert Chan - 07-02-2024, 07:57 PM
RE: Solving for the roots of a cubic polynomial - Namir - 07-04-2024, 04:18 AM
RE: Solving for the roots of a cubic polynomial - floppy - 07-04-2024, 05:21 PM
|
User(s) browsing this thread: 5 Guest(s)