



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.0 |
|---|---|
| Target | 24.9 |
| Herbie | 25.2 |
if x < -1.83067458521514195e153Initial program 63.8
Taylor expanded around -inf 15.4
Simplified15.4
if -1.83067458521514195e153 < x < 4.76635825779849051e56Initial program 28.2
if 4.76635825779849051e56 < x Initial program 49.6
Taylor expanded around inf 21.0
Final simplification25.2
herbie shell --seed 2020181
(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))))