



Bits error versus x




Bits error versus y
| Original | 31.2 |
|---|---|
| Target | 17.1 |
| Herbie | 17.9 |
if x < -1.28654588335027985e127Initial program 56.2
Taylor expanded around -inf 9.0
Simplified9.0
if -1.28654588335027985e127 < x < -1.34702897925383054e-257 or 4.32762173516280031e-186 < x < 3.46617861303372194e36Initial program 18.5
if -1.34702897925383054e-257 < x < 4.32762173516280031e-186Initial program 29.9
Taylor expanded around 0 33.3
if 3.46617861303372194e36 < x Initial program 43.9
Taylor expanded around inf 12.7
Final simplification17.9
herbie shell --seed 2020181
(FPCore (x y)
:name "Data.Octree.Internal:octantDistance from Octree-0.5.4.2"
:precision binary64
:herbie-target
(if (< x -1.1236950826599826e+145) (neg x) (if (< x 1.116557621183362e+93) (sqrt (+ (* x x) (* y y))) x))
(sqrt (+ (* x x) (* y y))))