



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 33.9 |
|---|---|
| Target | 20.9 |
| Herbie | 10.4 |
if b < -2.6753706590153626e+144Initial program 57.1
Taylor expanded around -inf 1.9
Simplified1.9
if -2.6753706590153626e+144 < b < 4.940103041698796e-108Initial program 11.8
Taylor expanded around inf 11.8
if 4.940103041698796e-108 < b Initial program 51.8
rmApplied clear-num51.8
Taylor expanded around 0 11.1
Simplified11.1
Final simplification10.4
Time bar (total: 52.8s)Debug logProfile
herbie shell --seed 2018230
(FPCore (a b c)
:name "The quadratic formula (r1)"
:herbie-target
(if (< b 0) (/ (+ (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a)) (/ c (* a (/ (- (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a)))))
(/ (+ (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a)))