



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 38.3 |
|---|---|
| Target | 25.6 |
| Herbie | 26.0 |
if x < -9.72585923751592876e142Initial program 61.0
rmApplied sqrt-div61.0
Simplified61.0
Taylor expanded around -inf 15.4
Simplified15.4
if -9.72585923751592876e142 < x < 5.2200474481706602e101Initial program 29.8
rmApplied sqrt-div29.9
Simplified29.9
if 5.2200474481706602e101 < x Initial program 55.2
Taylor expanded around inf 18.1
Final simplification26.0
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)))