



Bits error versus x




Bits error versus y
Results
| Original | 20.6 |
|---|---|
| Target | 0.0 |
| Herbie | 5.9 |
if y < -1.6014842456375707e-24 or -1.2622616626068302e-184 < y < -2.699397381870004e-221Initial program 30.0
Taylor expanded around 0 4.1
if -1.6014842456375707e-24 < y < -1.2622616626068302e-184 or 8.621475391429052e-165 < y Initial program 2.6
if -2.699397381870004e-221 < y < 8.621475391429052e-165Initial program 30.7
Taylor expanded around inf 13.6
Final simplification5.9
herbie shell --seed 2019026
(FPCore (x y)
:name "Kahan p9 Example"
:pre (and (< 0 x 1) (< y 1))
:herbie-target
(if (< 0.5 (fabs (/ x y)) 2) (/ (* (- x y) (+ x y)) (+ (* x x) (* y y))) (- 1 (/ 2 (+ 1 (* (/ x y) (/ x y))))))
(/ (* (- x y) (+ x y)) (+ (* x x) (* y y))))