



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.6 |
|---|---|
| Target | 25.5 |
| Herbie | 25.9 |
if x < -9.1465934743589074e114Initial program 57.2
rmApplied sqrt-div57.2
Simplified57.2
Taylor expanded around -inf 17.9
Simplified17.9
if -9.1465934743589074e114 < x < 2.37632430376721905e53Initial program 29.0
rmApplied div-inv29.0
Applied sqrt-prod29.1
Simplified29.1
if 2.37632430376721905e53 < x Initial program 49.4
Taylor expanded around inf 21.9
Final simplification25.9
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)))