



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 38.6 |
|---|---|
| Target | 25.5 |
| Herbie | 26.3 |
if x < -4.4940319537607468e66Initial program 51.1
rmApplied sqrt-div51.1
Simplified51.1
Taylor expanded around -inf 20.8
Simplified20.8
if -4.4940319537607468e66 < x < 3.88863330867275493e130Initial program 30.2
Taylor expanded around 0 30.3
Simplified30.3
if 3.88863330867275493e130 < x Initial program 59.7
Taylor expanded around inf 16.0
Final simplification26.3
herbie shell --seed 2020182
(FPCore (x y z)
:name "Data.Array.Repa.Algorithms.Pixel:doubleRmsOfRGB8 from repa-algorithms-3.4.0.1"
:precision binary64
:herbie-target
(if (< z -6.396479394109776e+136) (/ (neg z) (sqrt 3.0)) (if (< z 7.320293694404182e+117) (/ (sqrt (+ (+ (* z z) (* x x)) (* y y))) (sqrt 3.0)) (* (sqrt 0.3333333333333333) z)))
(sqrt (/ (+ (+ (* x x) (* y y)) (* z z)) 3.0)))