



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.7 |
|---|---|
| Target | 25.5 |
| Herbie | 26.5 |
if x < -1.62541230777024819e124Initial program 57.7
Taylor expanded around -inf 17.5
Simplified17.5
if -1.62541230777024819e124 < x < 8.8980375400702012e-248 or 2.64333370990503235e-167 < x < 2.2544939054547067e84Initial program 28.6
if 8.8980375400702012e-248 < x < 2.64333370990503235e-167Initial program 33.1
Taylor expanded around 0 48.0
if 2.2544939054547067e84 < x Initial program 53.3
Taylor expanded around inf 19.2
Final simplification26.5
herbie shell --seed 2020179
(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))))