\frac{841}{108} \cdot x + \frac{4}{29}0.13793103448275862 + x \cdot 7.787037037037037
(FPCore (x) :precision binary64 (+ (* (/ 841.0 108.0) x) (/ 4.0 29.0)))
(FPCore (x) :precision binary64 (+ 0.13793103448275862 (* x 7.787037037037037)))
double code(double x) {
return ((841.0 / 108.0) * x) + (4.0 / 29.0);
}
double code(double x) {
return 0.13793103448275862 + (x * 7.787037037037037);
}






Bits error versus x
Results
| Alternative 1 | |
|---|---|
| Error | 1.4 |
| Cost | 520 |
| Alternative 2 | |
|---|---|
| Error | 32.1 |
| Cost | 64 |
| Alternative 3 | |
|---|---|
| Error | 57.8 |
| Cost | 64 |

Initial program 0.1
Simplified0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2021044
(FPCore (x)
:name "Data.Colour.CIE:cieLABView from colour-2.3.3, A"
:precision binary64
(+ (* (/ 841.0 108.0) x) (/ 4.0 29.0)))