



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.8 |
|---|---|
| Target | 25.5 |
| Herbie | 25.6 |
if x < -3.04950141066242941e153Initial program 63.9
Taylor expanded around -inf 15.0
Simplified15.0
if -3.04950141066242941e153 < x < 1.2356342879637884e50Initial program 28.9
Taylor expanded around 0 28.9
Simplified28.9
if 1.2356342879637884e50 < x Initial program 48.7
rmApplied add-cube-cbrt48.7
Applied *-un-lft-identity48.7
Applied times-frac48.7
Applied sqrt-prod48.8
Simplified48.8
Taylor expanded around inf 21.9
Simplified21.9
Final simplification25.6
herbie shell --seed 2020191
(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)))