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 | 31.6 |
| Cost | 12992 |
| Alternative 2 | |
|---|---|
| Error | 21.0 |
| Cost | 7168 |
| Alternative 3 | |
|---|---|
| Error | 15.7 |
| Cost | 576 |
| Alternative 4 | |
|---|---|
| Error | 31.6 |
| Cost | 64 |
| Alternative 5 | |
|---|---|
| Error | 31.5 |
| Cost | 64 |
| Alternative 6 | |
|---|---|
| Error | 57.3 |
| Cost | 64 |
| Alternative 7 | |
|---|---|
| Error | 62.3 |
| Cost | 64 |
| Alternative 8 | |
|---|---|
| Error | 62.4 |
| Cost | 64 |

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