



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 32.5 |
|---|---|
| Target | 22.4 |
| Herbie | 9.6 |
if b < -1.019221836402376e116Initial program 52.3
Taylor expanded around -inf 3.4
Simplified3.4
if -1.019221836402376e116 < b < 5.51314038804235395e-45Initial program 13.3
if 5.51314038804235395e-45 < b Initial program 54.8
Taylor expanded around inf 7.2
Final simplification9.6
herbie shell --seed 2020156
(FPCore (a b c)
:name "quadp (p42, positive)"
:precision binary64
: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)))