\frac{x - y}{2 - \left(x + y\right)}\frac{x - y}{2 - \left(x + y\right)}double f(double x, double y) {
double r873069 = x;
double r873070 = y;
double r873071 = r873069 - r873070;
double r873072 = 2.0;
double r873073 = r873069 + r873070;
double r873074 = r873072 - r873073;
double r873075 = r873071 / r873074;
return r873075;
}
double f(double x, double y) {
double r873076 = x;
double r873077 = y;
double r873078 = r873076 - r873077;
double r873079 = 2.0;
double r873080 = r873076 + r873077;
double r873081 = r873079 - r873080;
double r873082 = r873078 / r873081;
return r873082;
}




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))))