



Bits error versus x




Bits error versus y
| Original | 20.5 |
|---|---|
| Target | 0.1 |
| Herbie | 4.8 |
if y < -7.6184336366029451e149Initial program 62.3
Taylor expanded around 0 0
if -7.6184336366029451e149 < y < -2.54877378415330119e-161 or 1.3657440974188289e-159 < y Initial program 0.0
rmApplied frac-2neg0.0
Simplified0.0
if -2.54877378415330119e-161 < y < 1.3657440974188289e-159Initial program 29.5
Taylor expanded around inf 15.1
Final simplification4.8
herbie shell --seed 2020147
(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))))