Mathematician Finds Easier Way to Solve Quadratic Equations
|
05-10-2024, 05:11 PM
(This post was last modified: 05-10-2024 08:04 PM by Albert Chan.)
Post: #60
|
|||
|
|||
RE: Mathematician Finds Easier Way to Solve Quadratic Equations
(05-09-2024 02:34 PM)Gerson W. Barbosa Wrote: As you said, KISS is not simple. x^2 + p*x + q = 0 x = m ± √Δ // m = -p/2, Δ = m^2 - q x1 = m + m * √(Δ/m^2) // big root, m^2≠0 For Free42, SIGN(0) = 1, SIGN(0+0i) = (0+0i) I needed a nice transition, SIGN(0+0i) = SIGN(0) = 1 too s = SIGN(m), or 1 if |m|=0 x1 = m + s * √(Δ/s^2) // big root, m=0 OK too Code: 00 { 36-Byte Prgm } |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 15 Guest(s)