



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 33.2 |
|---|---|
| Target | 20.4 |
| Herbie | 10.0 |
if b < -1.381381547653347e+145Initial program 57.6
Taylor expanded around -inf 10.9
Applied simplify3.3
if -1.381381547653347e+145 < b < 1.4694181488331766e-79Initial program 11.6
Applied simplify11.6
if 1.4694181488331766e-79 < b Initial program 52.1
Taylor expanded around inf 47.2
Applied simplify9.8
Applied simplify10.0
Time bar (total: 1.7m)Debug logProfile
herbie shell --seed '#(1071821486 549052472 3784827256 1559736200 3548510075 881134285)' +o rules:numerics
(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)))