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

Error

Bits error versus b

Bits error versus a

Bits error versus c

Bits error versus timeout

Derivation

  1. Initial program 26.9

    \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} - \left(-timeout\right) \cdot 15\]
  2. Simplified26.9

    \[\leadsto \color{blue}{timeout \cdot 15 + \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}}\]
  3. Final simplification26.9

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

Reproduce

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