



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.9 |
|---|---|
| Target | 25.7 |
| Herbie | 26.3 |
if x < -8.4611892877848995e149Initial program 63.4
Taylor expanded around -inf 14.5
Simplified14.5
if -8.4611892877848995e149 < x < -4.6541970574734218e-38 or -1.4720033509998629e-54 < x < -2.17193274660449406e-286 or 2.09211786826040624e-275 < x < 3.19659555588810615e148Initial program 29.1
if -4.6541970574734218e-38 < x < -1.4720033509998629e-54 or -2.17193274660449406e-286 < x < 2.09211786826040624e-275Initial program 29.1
Taylor expanded around 0 45.0
if 3.19659555588810615e148 < x Initial program 62.5
Taylor expanded around inf 14.4
Final simplification26.3
herbie shell --seed 2020184
(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))))