



Bits error versus x




Bits error versus y
| Original | 31.0 |
|---|---|
| Target | 17.3 |
| Herbie | 17.6 |
if x < -2.3287772795912036e57Initial program 45.5
Taylor expanded around -inf 12.3
Simplified12.3
if -2.3287772795912036e57 < x < 7.5384845989707597e108Initial program 21.0
if 7.5384845989707597e108 < x Initial program 53.0
Taylor expanded around inf 10.6
Final simplification17.6
herbie shell --seed 2020179
(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))))