



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.8 |
|---|---|
| Target | 25.3 |
| Herbie | 26.3 |
if x < -5.1288480872812052e147Initial program 62.8
rmApplied add-sqr-sqrt62.8
Applied associate-/r*62.8
Simplified62.8
Taylor expanded around -inf 16.7
Simplified16.7
if -5.1288480872812052e147 < x < -1.69267376453504879e-304 or 6.2830035489969078e-285 < x < 4.2028759973580324e40Initial program 28.9
if -1.69267376453504879e-304 < x < 6.2830035489969078e-285Initial program 32.6
Taylor expanded around 0 47.7
if 4.2028759973580324e40 < x Initial program 48.3
Taylor expanded around inf 22.8
Final simplification26.3
herbie shell --seed 2020185
(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)))