



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.9 |
|---|---|
| Target | 25.4 |
| Herbie | 25.2 |
if x < -1.024325663364325e116Initial program 57.1
Taylor expanded around -inf 16.2
Simplified16.2
if -1.024325663364325e116 < x < 4.68887343008616523e139Initial program 29.0
if 4.68887343008616523e139 < x Initial program 61.5
Taylor expanded around inf 15.8
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))))