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

Error

Bits error versus b

Bits error versus a

Bits error versus c

Derivation

  1. Initial program 34.7

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

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

Reproduce

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