



Bits error versus x




Bits error versus y
| Original | 20.3 |
|---|---|
| Target | 0.1 |
| Herbie | 5.3 |
if y < -1.3573856910724084e+154Initial program 63.6
Taylor expanded around 0 0
if -1.3573856910724084e+154 < y < -1.3408391082234118e-160 or 3.238102132712735e-164 < y Initial program 0.1
if -1.3408391082234118e-160 < y < 3.238102132712735e-164Initial program 29.5
Taylor expanded around -inf 16.5
Final simplification5.3
herbie shell --seed 2019068
(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))))