



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 33.6 |
|---|---|
| Target | 20.9 |
| Herbie | 10.6 |
if b < -1.3061538410972681e63Initial program 39.9
Simplified39.9
Taylor expanded around -inf 5.5
Simplified5.5
if -1.3061538410972681e63 < b < 9.6001021312979276e-81Initial program 13.7
Simplified13.7
rmApplied clear-num13.8
Simplified13.8
if 9.6001021312979276e-81 < b Initial program 52.4
Simplified52.4
Taylor expanded around inf 9.5
Final simplification10.6
herbie shell --seed 2020192
(FPCore (a b c)
:name "quadp (p42, positive)"
:precision binary64
:herbie-expected #f
:herbie-target
(if (< b 0.0) (/ (+ (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a)) (/ 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)))