



Bits error versus x




Bits error versus y
| Original | 31.2 |
|---|---|
| Target | 17.1 |
| Herbie | 17.3 |
if x < -7.90225451676893219e121Initial program 55.9
Taylor expanded around -inf 9.2
Simplified9.2
if -7.90225451676893219e121 < x < -7.40575213623674744e-278 or 4.3980769884343018e-199 < x < 1.6129701241769684e115Initial program 18.6
if -7.40575213623674744e-278 < x < 4.3980769884343018e-199Initial program 30.3
Taylor expanded around 0 32.9
if 1.6129701241769684e115 < x Initial program 54.3
Taylor expanded around inf 9.3
Final simplification17.3
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))))