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





Bits error versus x
Results
| Alternative 1 | |
|---|---|
| Error | 1.2 |
| Cost | 706 |
| Alternative 2 | |
|---|---|
| Error | 31.7 |
| Cost | 64 |


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