loading page

The Ins and Outs of Solving Quadratic Equations with Floating-Point Arithmetic
  • Frédéric Goualard
Frédéric Goualard
Nantes Universite

Corresponding Author:[email protected]

Author Profile

Abstract

Solving quadratic equations with radicals on a computer with floating-point arithmetic requires great care to handle correctly all possible parameters. Literature on the subject glosses over the details, often considered as important but tedious to present. As a consequence, most implementations are flawed in one way or another. After having reviewed both the literature and the actual implementations in several programming languages and applications, we present an algorithm inspired from an exposition by Pat Sterbenz from 1974, adapted to take advantage of more recent researches in the field, which leads to a robust quadratic equation solver.
07 Jun 2023Submitted to Software: Practice and Experience
09 Jun 2023Submission Checks Completed
09 Jun 2023Assigned to Editor
09 Jun 2023Review(s) Completed, Editorial Evaluation Pending
12 Jun 2023Reviewer(s) Assigned
21 Nov 2023Editorial Decision: Revise Major