



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 33.7 |
|---|---|
| Target | 20.2 |
| Herbie | 9.9 |
if b < -1.9326908713313016e-80Initial program 52.0
Taylor expanded around -inf 8.8
Simplified8.8
if -1.9326908713313016e-80 < b < 9.7862137504734e+73Initial program 13.0
rmApplied clear-num13.1
if 9.7862137504734e+73 < b Initial program 40.8
Taylor expanded around inf 4.8
Final simplification9.9
herbie shell --seed 2019068
(FPCore (a b c)
:name "The quadratic formula (r2)"
:herbie-target
(if (< b 0) (/ c (* a (/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))) (/ (- (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))
(/ (- (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))