



Bits error versus x




Bits error versus y
| Original | 20.3 |
|---|---|
| Target | 0.1 |
| Herbie | 5.8 |
if y < -1.2032223167563086e-42 or -2.0118099058943753e-159 < y < -4.1330897435654156e-178Initial program 27.7
Taylor expanded around 0 2.3
if -1.2032223167563086e-42 < y < -2.0118099058943753e-159 or 1.5107001695998868e-176 < y Initial program 1.7
rmApplied associate-/l*2.1
if -4.1330897435654156e-178 < y < 1.5107001695998868e-176Initial program 30.1
rmApplied associate-/l*30.5
Taylor expanded around inf 14.8
Final simplification5.8
herbie shell --seed 2019089
(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))))