



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.8 |
|---|---|
| Target | 25.8 |
| Herbie | 24.8 |
if x < -2.90586819968306291e135Initial program 60.5
Taylor expanded around -inf 14.0
Simplified14.0
if -2.90586819968306291e135 < x < 1.60624816861743642e135Initial program 29.0
if 1.60624816861743642e135 < x Initial program 60.0
Taylor expanded around inf 14.7
Final simplification24.8
herbie shell --seed 2020192
(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))))