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

Error

Bits error versus b

Bits error versus a

Bits error versus c

Derivation

  1. Initial program 33.5

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

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

Reproduce

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