\frac{x - y}{2 - \left(x + y\right)}\frac{x}{2 - \left(x + y\right)} - \frac{y}{2 - \left(x + y\right)}(FPCore (x y) :precision binary64 (/ (- x y) (- 2.0 (+ x y))))
(FPCore (x y) :precision binary64 (- (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y)))))
double code(double x, double y) {
return (x - y) / (2.0 - (x + y));
}
double code(double x, double y) {
return (x / (2.0 - (x + y))) - (y / (2.0 - (x + y)));
}










Bits error versus x










Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
| Alternative 1 | |
|---|---|
| Error | 0.0 |
| Cost | 576 |
| Alternative 2 | |
|---|---|
| Error | 9.7 |
| Cost | 1668 |
| Alternative 3 | |
|---|---|
| Error | 17.7 |
| Cost | 1668 |
| Alternative 4 | |
|---|---|
| Error | 15.4 |
| Cost | 962 |
| Alternative 5 | |
|---|---|
| Error | 25.0 |
| Cost | 706 |
| Alternative 6 | |
|---|---|
| Error | 38.9 |
| Cost | 64 |

Initial program 0.0
rmApplied div-sub_binary64_232710.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, C"
:precision binary64
:herbie-target
(- (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
(/ (- x y) (- 2.0 (+ x y))))