



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 38.3 |
|---|---|
| Target | 25.7 |
| Herbie | 27.0 |
if x < -1.04843673512673666e83Initial program 52.8
Taylor expanded around -inf 19.5
Simplified19.5
if -1.04843673512673666e83 < x < -1.4341076108923288e-274 or 3.02876797301242108e-270 < x < 1.9243525779759927e64Initial program 29.8
if -1.4341076108923288e-274 < x < 3.02876797301242108e-270Initial program 31.4
Taylor expanded around 0 47.1
if 1.9243525779759927e64 < x Initial program 50.8
Taylor expanded around inf 20.2
Final simplification27.0
herbie shell --seed 2020180
(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))))