x + \left(\left(y - x\right) \cdot 6\right) \cdot \left(\frac{2}{3} - z\right)\left(y \cdot 4 - x \cdot 3\right) + \left(\left(y - x\right) \cdot -6\right) \cdot z
(FPCore (x y z) :precision binary64 (+ x (* (* (- y x) 6.0) (- (/ 2.0 3.0) z))))
(FPCore (x y z) :precision binary64 (+ (- (* y 4.0) (* x 3.0)) (* (* (- y x) -6.0) z)))
double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z));
}
double code(double x, double y, double z) {
return ((y * 4.0) - (x * 3.0)) + (((y - x) * -6.0) * z);
}
















Bits error versus x
















Bits error versus y
















Bits error versus z
Results
| Alternative 1 | |
|---|---|
| Error | 0.2 |
| Cost | 704 |
| Alternative 2 | |
|---|---|
| Error | 0.4 |
| Cost | 704 |
| Alternative 3 | |
|---|---|
| Error | 0.4 |
| Cost | 704 |
| Alternative 4 | |
|---|---|
| Error | 1.8 |
| Cost | 1090 |
| Alternative 5 | |
|---|---|
| Error | 1.8 |
| Cost | 1090 |
| Alternative 6 | |
|---|---|
| Error | 20.3 |
| Cost | 2695 |
| Alternative 7 | |
|---|---|
| Error | 20.3 |
| Cost | 2695 |
| Alternative 8 | |
|---|---|
| Error | 20.5 |
| Cost | 2695 |
| Alternative 9 | |
|---|---|
| Error | 32.0 |
| Cost | 2567 |
| Alternative 10 | |
|---|---|
| Error | 34.3 |
| Cost | 785 |
| Alternative 11 | |
|---|---|
| Error | 43.4 |
| Cost | 192 |
| Alternative 12 | |
|---|---|
| Error | 61.9 |
| Cost | 64 |
| Alternative 13 | |
|---|---|
| Error | 62.4 |
| Cost | 64 |


Initial program 0.4
rmApplied *-un-lft-identity_binary64_106490.4
Applied cancel-sign-sub-inv_binary64_106150.4
Applied distribute-lft-in_binary64_105980.4
Applied associate-+r+_binary64_105810.4
Simplified0.2
Taylor expanded around 0 0.2
Simplified0.2
rmApplied associate-*r*_binary64_105890.2
Simplified0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2021040
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, D"
:precision binary64
(+ x (* (* (- y x) 6.0) (- (/ 2.0 3.0) z))))