



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.6 |
|---|---|
| Target | 25.7 |
| Herbie | 24.7 |
if x < -1.4682484161638135e132Initial program 60.1
Taylor expanded around -inf 14.8
Simplified14.8
if -1.4682484161638135e132 < x < 3.0752650640767227e117Initial program 28.6
Taylor expanded around 0 28.6
Simplified28.6
if 3.0752650640767227e117 < x Initial program 57.0
rmApplied add-cube-cbrt57.0
Applied *-un-lft-identity57.0
Applied times-frac57.0
Applied sqrt-prod57.0
Simplified57.0
Taylor expanded around inf 16.6
Simplified16.6
Final simplification24.7
herbie shell --seed 2020180
(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)))