\frac{x - y}{x + y}\frac{x}{x + y} - \frac{y}{x + y}double f(double x, double y) {
double r944100 = x;
double r944101 = y;
double r944102 = r944100 - r944101;
double r944103 = r944100 + r944101;
double r944104 = r944102 / r944103;
return r944104;
}
double f(double x, double y) {
double r944105 = x;
double r944106 = y;
double r944107 = r944105 + r944106;
double r944108 = r944105 / r944107;
double r944109 = r944106 / r944107;
double r944110 = r944108 - r944109;
return r944110;
}




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
Final simplification0.0
herbie shell --seed 2019353 +o rules:numerics
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, D"
:precision binary64
:herbie-target
(- (/ x (+ x y)) (/ y (+ x y)))
(/ (- x y) (+ x y)))