



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 33.3 |
|---|---|
| Target | 20.2 |
| Herbie | 9.8 |
if b < -5.2542352593186011e93Initial program 44.1
Simplified44.1
Taylor expanded around -inf 3.7
Simplified3.7
if -5.2542352593186011e93 < b < 1.5308604502336437e-63Initial program 12.9
Simplified12.9
if 1.5308604502336437e-63 < b Initial program 53.5
Simplified53.5
Taylor expanded around inf 8.5
Final simplification9.8
herbie shell --seed 2020184
(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)))