



Bits error versus x




Bits error versus y
| Original | 31.1 |
|---|---|
| Target | 17.2 |
| Herbie | 17.5 |
if x < -1.36834881583557435e131Initial program 58.1
Taylor expanded around -inf 9.6
Simplified9.6
if -1.36834881583557435e131 < x < 4.8369579520216515e52Initial program 20.8
if 4.8369579520216515e52 < x Initial program 44.4
Taylor expanded around inf 12.5
Final simplification17.5
herbie shell --seed 2020185
(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))))