



Bits error versus x




Bits error versus y
Results
| Original | 20.4 |
|---|---|
| Target | 0.1 |
| Herbie | 4.9 |
if y < -1.3712700123450068e+154Initial program 63.6
rmApplied clear-num63.6
Taylor expanded around 0 0
if -1.3712700123450068e+154 < y < -3.768548675675312e-159 or 2.944605287589628e-164 < y Initial program 0.2
rmApplied clear-num0.2
if -3.768548675675312e-159 < y < 2.944605287589628e-164Initial program 29.4
Taylor expanded around inf 14.8
Final simplification4.9
Time bar (total: 16.6s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 20.4 | 4.9 | 0.4 | 20.0 | 77.6% |
herbie shell --seed 2018355
(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))))