



Bits error versus x




Bits error versus y
| Original | 31.6 |
|---|---|
| Target | 17.8 |
| Herbie | 17.9 |
if x < -9.3408035230771657e139Initial program 60.5
Taylor expanded around -inf 8.4
Simplified8.4
if -9.3408035230771657e139 < x < -4.7866568598534521e-266 or -2.79783213760014545e-306 < x < 1.28820419612964551e92Initial program 20.8
if -4.7866568598534521e-266 < x < -2.79783213760014545e-306Initial program 31.2
Taylor expanded around 0 31.5
if 1.28820419612964551e92 < x Initial program 50.9
Taylor expanded around inf 11.5
Final simplification17.9
herbie shell --seed 2020184
(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))))