



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 38.5 |
|---|---|
| Target | 25.3 |
| Herbie | 26.1 |
if x < -4.4940319537607468e66Initial program 51.0
Taylor expanded around -inf 20.5
Simplified20.5
if -4.4940319537607468e66 < x < 3.88863330867275493e130Initial program 30.1
if 3.88863330867275493e130 < x Initial program 59.6
Taylor expanded around inf 15.8
Final simplification26.1
herbie shell --seed 2020182
(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))))