John D. Cook personal blog

The quadratic formula and low-precision arithmetic

The familiar quadratic formula can give the wrong answer in a program due to numerical precision issues. This post shows what can go wrong and how to fix it. Especially important in low-precision arithmetic.
Points
147
HN comments
41
Submissions
1
Cited by
0 commenters

Math & AlgorithmsSoftware Engineering2018

On Hacker News

SubmittedTitle on HNPointsComments
Apr 28, 2018The quadratic formula and low-precision arithmetic by ingve14741

More from John D. Cook

All 79 posts →

Related posts from the same era