\frac{x - y}{x + y}\frac{x}{x + y} + \left(-\frac{y}{x + y}\right)double f(double x, double y) {
double r736707 = x;
double r736708 = y;
double r736709 = r736707 - r736708;
double r736710 = r736707 + r736708;
double r736711 = r736709 / r736710;
return r736711;
}
double f(double x, double y) {
double r736712 = x;
double r736713 = y;
double r736714 = r736712 + r736713;
double r736715 = r736712 / r736714;
double r736716 = r736713 / r736714;
double r736717 = -r736716;
double r736718 = r736715 + r736717;
return r736718;
}




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 add-log-exp0.0
Final simplification0.0
herbie shell --seed 2019303
(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)))