(42S) Short Quadratic Solver
|
04-24-2014, 12:32 AM
(This post was last modified: 05-17-2017 12:37 PM by Gerson W. Barbosa.)
Post: #1
|
|||
|
|||
(42S) Short Quadratic Solver
Code: 00 { 25-Byte Prgm } Examples: 1) Given x² - 5x + 6 = 0, compute 123456*x₁ and 123456*x₂ .................... 123456 ENTER 1 ENTER 5 +/- ENTER 6 XEQ Q -> Y: 3 ; x₂ = 3 ................................................................ X: 2 ; x₁ = 2 ........................................................ Rv * -> X: 370,368 ; 123456*x₂ ........................................................ Rv * -> X: 246,912 ; 123456*x₁ 2) 3x² - 12x + 87 = 0 ............................... 3 ENTER 12 +/- ENTER 87 XEQ Q -> Y: 2 .i5 ; x₂ = 2 + 5i ................................................................ X: 2 -i5 ; x₁ = 2 - 5i 3) x² - (4 + 6i)x + (-5 + 10i) = 0 .. 1 ENTER 4 ENTER 6 COMPLEX +/- 5 +/- ENTER 10 COMPLEX XEQ Q -> Y: 3 i4 ; x₂ = 3 + 4i ................................................................ X: 1 i2 ; x₁ = 1 + 2i Edited to change code. Now it is one step and one byte shorter. This is the older code: Code: 00 { 26-Byte Prgm } Edited again to change subject line. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(42S) Short Quadratic Solver - Gerson W. Barbosa - 04-24-2014 12:32 AM
RE: Short Quadratic Solver (HP-42S) - Jeff_Kearns - 05-25-2014, 03:30 PM
RE: Short Quadratic Solver (HP-42S) - Gerson W. Barbosa - 05-25-2014, 09:55 PM
RE: Short Quadratic Solver (HP-42S) --- and 32Sii?? - Jeff_Kearns - 05-27-2014, 05:30 PM
RE: Short Quadratic Solver (HP-42S) - Thomas Klemm - 05-27-2014, 06:57 PM
RE: Short Quadratic Solver (HP-42S) - Gerson W. Barbosa - 05-28-2014, 04:18 AM
RE: Short Quadratic Solver (HP-42S) - Jeff_Kearns - 05-28-2014, 10:17 PM
RE: Short Quadratic Solver (HP-42S) - Gerson W. Barbosa - 05-29-2014, 04:23 AM
RE: Short Quadratic Solver (HP-42S) - Thomas Klemm - 05-29-2014, 05:10 AM
RE: Short Quadratic Solver (HP-42S) - Gerson W. Barbosa - 05-29-2014, 03:48 PM
RE: Short Quadratic Solver (HP-42S) - Jeff_Kearns - 05-30-2014, 03:56 AM
RE: Short Quadratic Solver (HP-42S) - Gerson W. Barbosa - 05-31-2014, 03:31 AM
|
User(s) browsing this thread: 2 Guest(s)