



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 34.1 |
|---|---|
| Target | 20.8 |
| Herbie | 10.0 |
if b < -1.38476143180922117e134Initial program 56.8
Taylor expanded around -inf 10.0
Simplified2.4
if -1.38476143180922117e134 < b < 5.1943629106266941e-122Initial program 11.3
rmApplied associate-*r*11.3
if 5.1943629106266941e-122 < b Initial program 51.5
Taylor expanded around inf 10.8
Final simplification10.0
herbie shell --seed 2020179
(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)))