



Bits error versus x




Bits error versus y
| Original | 31.7 |
|---|---|
| Target | 17.4 |
| Herbie | 17.3 |
if x < -5.7956671044621403e140Initial program 61.2
Taylor expanded around -inf 7.8
Simplified7.8
if -5.7956671044621403e140 < x < 2.40954284696244225e95Initial program 21.1
if 2.40954284696244225e95 < x Initial program 50.1
Taylor expanded around inf 10.3
Final simplification17.3
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))))