Average Error: 34.2 → 34.2
Time: 1.7s
Precision: binary64
\[\frac{\left(-b\right) + \sqrt{b \cdot b - a \cdot c}}{a}\]
\[\frac{\left(-b\right) + \sqrt{b \cdot b - a \cdot c}}{a}\]

Error

Bits error versus b

Bits error versus a

Bits error versus c

Derivation

  1. Initial program 34.2

    \[\frac{\left(-b\right) + \sqrt{b \cdot b - a \cdot c}}{a}\]
  2. Final simplification34.2

    \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - a \cdot c}}{a}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (b a c)
  :name "(/ (+ (- b) (sqrt (- (* b b) (* a c)))) a)"
  :precision binary64
  (/ (+ (neg b) (sqrt (- (* b b) (* a c)))) a))