



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 38.2 |
|---|---|
| Target | 26.2 |
| Herbie | 26.7 |
if x < -1.95445500961015716e112Initial program 55.6
Taylor expanded around -inf 17.7
Simplified17.7
if -1.95445500961015716e112 < x < -6.7336058996915783e-215 or -1.81250657436522472e-266 < x < 3.2526274382715766e104Initial program 29.7
Taylor expanded around 0 29.8
Simplified29.8
if -6.7336058996915783e-215 < x < -1.81250657436522472e-266Initial program 34.0
rmApplied sqrt-div34.1
Simplified34.1
Taylor expanded around 0 47.1
if 3.2526274382715766e104 < x Initial program 55.2
rmApplied sqrt-div55.2
Simplified55.2
Taylor expanded around inf 18.5
Final simplification26.7
herbie shell --seed 2020192
(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)))