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.4 |
| Cost | 706 |
| Alternative 2 | |
|---|---|
| Error | 26.8 |
| Cost | 706 |
| Alternative 3 | |
|---|---|
| Error | 57.4 |
| Cost | 64 |

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