Most "quadratic formula" snippets online stop at two lines of code. That is fine until you hit a negative discriminant, a = 0, or floating-point noise that turns a double root into two slightly differ
Writing about numerical methods and math in Python.
Markdown supported · ⌘↵ to post
No responses yet.