News for hackers. Stuff that matters.
Re:Yet another alternative to floating-point numbers by amelius on Saturday October 31, 2020 @11:09PM (#24956946)
If one of the roots is close to 0, then I suppose you can offset the entire equation by setting x'=x+1 and retry.
Re:Yet another alternative to floating-point numbers by exmadscientist on Sunday November 01, 2020 @01:48AM (#24957659)
You really can't: that may well cause some other root to blow up. Rootfinding may be one of the simplest nontrivial problems in numerical analysis, and yet it still goes wrong plenty often.