



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.8 |
|---|---|
| Target | 25.6 |
| Herbie | 25.2 |
if x < -2.02546297141162418e148Initial program 62.9
Taylor expanded around -inf 15.2
Simplified15.2
if -2.02546297141162418e148 < x < 1.1092401306764233e86Initial program 28.9
if 1.1092401306764233e86 < x Initial program 53.6
Taylor expanded around inf 18.2
Final simplification25.2
herbie shell --seed 2020191
(FPCore (x y z)
:name "FRP.Yampa.Vector3:vector3Rho from Yampa-0.10.2"
:precision binary64
:herbie-target
(if (< z -6.396479394109776e+136) (neg z) (if (< z 7.320293694404182e+117) (sqrt (+ (+ (* z z) (* x x)) (* y y))) z))
(sqrt (+ (+ (* x x) (* y y)) (* z z))))