\frac{x - y}{2 - \left(x + y\right)}\frac{x - y}{2 - \left(x + y\right)}double f(double x, double y) {
double r602271 = x;
double r602272 = y;
double r602273 = r602271 - r602272;
double r602274 = 2.0;
double r602275 = r602271 + r602272;
double r602276 = r602274 - r602275;
double r602277 = r602273 / r602276;
return r602277;
}
double f(double x, double y) {
double r602278 = x;
double r602279 = y;
double r602280 = r602278 - r602279;
double r602281 = 2.0;
double r602282 = r602278 + r602279;
double r602283 = r602281 - r602282;
double r602284 = r602280 / r602283;
return r602284;
}




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