



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 33.7 |
|---|---|
| Target | 20.9 |
| Herbie | 10.1 |
if b < -7.826315350726603e+135Initial program 53.8
Initial simplification53.8
Taylor expanded around -inf 2.3
if -7.826315350726603e+135 < b < 4.590188764395266e-35Initial program 14.0
Initial simplification14.0
rmApplied *-un-lft-identity14.0
Applied associate-/l*14.1
if 4.590188764395266e-35 < b Initial program 54.1
Initial simplification54.1
Taylor expanded around inf 7.2
Simplified7.2
Final simplification10.1
Time bar (total: 46.1s)Debug logProfile
herbie shell --seed 2018304
(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)))