---
title: "Discussion on \"A Numerically Stable Quadratic Solver in Python (with Steps)\" | Hashnode"
description: "Discussion on \"A Numerically Stable Quadratic Solver in Python (with Steps)\". 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"
url: "https://hashnode.com/posts/a-numerically-stable-quadratic-solver-in-python-with-steps/6af2f6002304557863f4c833"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A Numerically Stable Quadratic Solver in Python (with Steps)](https://ravi-numerics.hashnode.dev/a-numerically-stable-quadratic-solver-in-python-with-steps?utm_source=hashnode&utm_medium=feed)

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

4d ago · 3 min read · ravi-numerics.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#math](https://hashnode.com/tag/math)

## Written by

[Ravi Patel](https://hashnode.com/@ravi-numerics)

@ravi-numerics

  
[View profile](https://hashnode.com/@ravi-numerics)

Writing about numerical methods and math in Python.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
