



Bits error versus x




Bits error versus y
| Original | 31.8 |
|---|---|
| Target | 17.8 |
| Herbie | 17.7 |
if x < -8.5705357471445917e133Initial program 59.3
Taylor expanded around -inf 8.8
Simplified8.8
if -8.5705357471445917e133 < x < 8.64665372117908956e103Initial program 21.2
if 8.64665372117908956e103 < x Initial program 51.9
Taylor expanded around inf 10.9
Final simplification17.7
herbie shell --seed 2020190
(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))))