



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 34.1 |
|---|---|
| Target | 20.8 |
| Herbie | 10.0 |
if b < -3.9815338756134678e133Initial program 56.6
Taylor expanded around -inf 2.3
Simplified2.3
if -3.9815338756134678e133 < b < 5.1943629106266941e-122Initial program 11.4
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)))