



Bits error versus x




Bits error versus y
| Original | 19.6 |
|---|---|
| Target | 0.0 |
| Herbie | 5.2 |
if y < -1.3337852543374606e+154 or 3.682302512490061e-197 < y < 2.1250373042840873e-173Initial program 59.6
Taylor expanded around 0 4.4
if -1.3337852543374606e+154 < y < -5.003071307679352e-158 or 2.1250373042840873e-173 < y Initial program 0.6
if -5.003071307679352e-158 < y < 3.682302512490061e-197Initial program 29.5
Taylor expanded around -inf 14.5
Final simplification5.2
herbie shell --seed 2019090
(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))))