



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.9 |
|---|---|
| Target | 25.6 |
| Herbie | 25.2 |
if x < -6.2047464604717734e110Initial program 55.8
Taylor expanded around -inf 16.7
Simplified16.7
if -6.2047464604717734e110 < x < 2.00742325138794504e140Initial program 29.1
if 2.00742325138794504e140 < x Initial program 61.5
Taylor expanded around inf 15.1
Final simplification25.2
herbie shell --seed 2020185
(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))))