



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 34.3 |
|---|---|
| Target | 20.6 |
| Herbie | 8.6 |
if b < -7.40032164261079705e-22Initial program 55.6
Taylor expanded around -inf 6.7
Simplified6.7
if -7.40032164261079705e-22 < b < 1.75851541092494309e-188Initial program 22.3
rmApplied flip--22.5
Simplified17.6
Simplified17.6
rmApplied *-un-lft-identity17.6
Applied times-frac17.6
Simplified17.6
Simplified15.1
if 1.75851541092494309e-188 < b < 1.22639498028987855e78Initial program 6.3
rmApplied div-sub6.3
Simplified6.3
Simplified6.3
if 1.22639498028987855e78 < b Initial program 43.3
Taylor expanded around inf 11.0
Simplified4.9
Final simplification8.6
herbie shell --seed 2020190
(FPCore (a b c)
:name "The quadratic formula (r2)"
:precision binary64
:herbie-target
(if (< b 0.0) (/ c (* a (/ (+ (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a)))) (/ (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a)))
(/ (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a)))