



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.0 |
|---|---|
| Target | 25.1 |
| Herbie | 25.4 |
if x < -1.83067458521514195e153Initial program 63.8
rmApplied sqrt-div63.8
Taylor expanded around -inf 15.7
Simplified15.7
if -1.83067458521514195e153 < x < 4.76635825779849051e56Initial program 28.3
rmApplied div-inv28.4
Applied sqrt-prod28.5
if 4.76635825779849051e56 < x Initial program 49.6
Taylor expanded around inf 21.3
Final simplification25.4
herbie shell --seed 2020181
(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)))