



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.0 |
|---|---|
| Target | 25.0 |
| Herbie | 25.3 |
if x < -3.88176526474888586e100Initial program 53.8
rmApplied sqrt-div53.8
Simplified53.8
Taylor expanded around -inf 19.8
Simplified19.8
if -3.88176526474888586e100 < x < 9.82318124646624427e101Initial program 28.5
Taylor expanded around 0 28.5
Simplified28.5
if 9.82318124646624427e101 < x Initial program 54.3
Taylor expanded around inf 18.3
Final simplification25.3
herbie shell --seed 2020184
(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)))