



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 34.0 |
|---|---|
| Target | 20.4 |
| Herbie | 6.8 |
if b < -3.8895171073387026e157Initial program 64.0
Taylor expanded around -inf 1.5
Simplified1.5
if -3.8895171073387026e157 < b < 1.125215516807859e-284Initial program 34.4
rmApplied flip--34.4
Simplified16.3
Simplified16.3
rmApplied *-un-lft-identity16.3
Applied times-frac16.3
Applied times-frac16.2
Simplified16.2
Simplified8.0
if 1.125215516807859e-284 < b < 1.6926019214523237e95Initial program 9.5
rmApplied div-inv9.6
Simplified9.6
if 1.6926019214523237e95 < b Initial program 45.3
Taylor expanded around inf 10.8
Simplified4.7
Final simplification6.8
herbie shell --seed 2020192
(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)))