\frac{x - y}{x + y}\log \left(e^{\frac{x}{x + y} - \frac{y}{x + y}}\right)double f(double x, double y) {
double r565726 = x;
double r565727 = y;
double r565728 = r565726 - r565727;
double r565729 = r565726 + r565727;
double r565730 = r565728 / r565729;
return r565730;
}
double f(double x, double y) {
double r565731 = x;
double r565732 = y;
double r565733 = r565731 + r565732;
double r565734 = r565731 / r565733;
double r565735 = r565732 / r565733;
double r565736 = r565734 - r565735;
double r565737 = exp(r565736);
double r565738 = log(r565737);
return r565738;
}




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
Applied add-log-exp0.0
Applied diff-log0.0
Simplified0.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)))