\frac{x - y}{2 - \left(x + y\right)}\frac{x - y}{2 - \left(x + y\right)}double f(double x, double y) {
double r875688 = x;
double r875689 = y;
double r875690 = r875688 - r875689;
double r875691 = 2.0;
double r875692 = r875688 + r875689;
double r875693 = r875691 - r875692;
double r875694 = r875690 / r875693;
return r875694;
}
double f(double x, double y) {
double r875695 = x;
double r875696 = y;
double r875697 = r875695 - r875696;
double r875698 = 2.0;
double r875699 = r875695 + r875696;
double r875700 = r875698 - r875699;
double r875701 = r875697 / r875700;
return r875701;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied div-sub0.0
rmApplied sub-div0.0
Final simplification0.0
herbie shell --seed 2020001
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, C"
:precision binary64
:herbie-target
(- (/ x (- 2 (+ x y))) (/ y (- 2 (+ x y))))
(/ (- x y) (- 2 (+ x y))))