3 ms·
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.
by amelius 6y ago
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.
- exmadscientist 6y agoYou 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.