



Bits error versus x




Bits error versus y
Results
| Original | 20.4 |
|---|---|
| Target | 0.1 |
| Herbie | 5.5 |
if y < -1.3240045460113365e+154Initial program 63.6
Initial simplification63.6
Taylor expanded around 0 0
if -1.3240045460113365e+154 < y < -1.2941982648075124e-160 or 8.707755780430149e-162 < y Initial program 0.0
Initial simplification0.0
if -1.2941982648075124e-160 < y < 8.707755780430149e-162Initial program 30.4
Initial simplification30.4
rmApplied add-sqr-sqrt30.4
Applied times-frac30.7
Taylor expanded around inf 16.9
Final simplification5.5
Time bar (total: 17.1s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 21.5 | 5.5 | 0.6 | 20.9 | 76.4% |
herbie shell --seed 2018352
(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))))