



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 34.0 |
|---|---|
| Target | 20.9 |
| Herbie | 10.1 |
if b < -7.598264454585938e+152Initial program 60.2
Simplified60.2
Taylor expanded around -inf 2.2
if -7.598264454585938e+152 < b < 2.75182274115718e-17Initial program 14.6
Simplified14.6
Taylor expanded around -inf 14.6
if 2.75182274115718e-17 < b Initial program 54.9
Simplified54.9
Taylor expanded around inf 5.8
Simplified5.8
Final simplification10.1
herbie shell --seed 2019026
(FPCore (a b c)
:name "quadp (p42, positive)"
: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)))