x - \frac{1}{3}x - \frac{1}{3}(FPCore (x) :precision binary64 (- x (/ 1.0 3.0)))
(FPCore (x) :precision binary64 (- x (/ 1.0 3.0)))
double code(double x) {
return ((double) (x - (1.0 / 3.0)));
}
double code(double x) {
return ((double) (x - (1.0 / 3.0)));
}



Bits error versus x
Results
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020198
(FPCore (x)
:name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, G"
:precision binary64
(- x (/ 1.0 3.0)))