



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 37.6 |
|---|---|
| Target | 25.5 |
| Herbie | 25.8 |
if x < -2.2756566799824152e79Initial program 52.5
Taylor expanded around -inf 19.8
Simplified19.8
if -2.2756566799824152e79 < x < 1.90195743875216181e73Initial program 29.2
if 1.90195743875216181e73 < x Initial program 51.7
Taylor expanded around inf 20.3
Final simplification25.8
herbie shell --seed 2020190
(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)))