(35s) Stackonly quadratic solver

01242021, 11:55 PM
Post: #1




(35s) Stackonly quadratic solver
I know, I know, this is another quadratic equation solver for the 35s. This one, though, is a little different in two ways: a) it operates fully in the stack, modifying no variables, and b) it doesn't use any equations, so while it has more lines, it should theoretically be faster as well.
I also know this isn't one of the awesome highperformance solvers, but figuring out all the stack manipulation was a fun challenge and I'm proud of what I've made. It will find complex roots. Usage: enter a, b, and c onto the stack, in that order, and XEQ Q (or whatever label you choose). You'll get the roots back, or if there's one root, that root on both the X and Y levels. The checksum on my machine is 2F04, with a length of 160. Code: Q001 LBL Q Try it out: say we want to solve 4*x^2  8*x + 3 = 0. To do this, you would follow these steps: Code: 4 [ENTER] 8 [ENTER] 3 The screen should read 0.5 and 1.5. 

« Next Oldest  Next Newest »

Messages In This Thread 
(35s) Stackonly quadratic solver  Liam Hays  01242021 11:55 PM
RE: (35s) Stackonly quadratic solver  mchris  06062021, 11:56 PM
RE: (35s) Stackonly quadratic solver  Liam Hays  06072021, 01:26 AM
RE: (35s) Stackonly quadratic solver  mchris  06072021, 09:41 AM
RE: (35s) Stackonly quadratic solver  Didier Lachieze  06072021, 09:48 AM
RE: (35s) Stackonly quadratic solver  mchris  06072021, 06:51 PM

User(s) browsing this thread: 1 Guest(s)