



Bits error versus x




Bits error versus y
| Original | 20.4 |
|---|---|
| Target | 0.0 |
| Herbie | 6.2 |
if y < -2.0486376949351227e+153 or -1.1876592677791025e-173 < y < -3.0453579094069954e-217 or -5.504398464598506e-245 < y < -7.202265587063637e-257Initial program 55.0
Taylor expanded around 0 11.0
if -2.0486376949351227e+153 < y < -1.1876592677791025e-173 or 3.036124373216085e-168 < y Initial program 1.0
rmApplied frac-2neg1.0
Simplified1.0
if -3.0453579094069954e-217 < y < -5.504398464598506e-245 or -7.202265587063637e-257 < y < 3.036124373216085e-168Initial program 30.0
Taylor expanded around inf 13.3
Final simplification6.2
herbie shell --seed 2020126
(FPCore (x y)
:name "Kahan p9 Example"
:precision binary64
:pre (and (< 0.0 x 1.0) (< y 1.0))
:herbie-target
(if (< 0.5 (fabs (/ x y)) 2.0) (/ (* (- x y) (+ x y)) (+ (* x x) (* y y))) (- 1.0 (/ 2.0 (+ 1.0 (* (/ x y) (/ x y))))))
(/ (* (- x y) (+ x y)) (+ (* x x) (* y y))))