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

Error

Bits error versus c

Bits error versus b

Bits error versus a

Derivation

  1. Initial program 29.7

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

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

Reproduce

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