\frac{x - y}{x + y}\log \left(e^{\frac{x}{x + y}}\right) - \frac{y}{x + y}double f(double x, double y) {
double r550793 = x;
double r550794 = y;
double r550795 = r550793 - r550794;
double r550796 = r550793 + r550794;
double r550797 = r550795 / r550796;
return r550797;
}
double f(double x, double y) {
double r550798 = x;
double r550799 = y;
double r550800 = r550798 + r550799;
double r550801 = r550798 / r550800;
double r550802 = exp(r550801);
double r550803 = log(r550802);
double r550804 = r550799 / r550800;
double r550805 = r550803 - r550804;
return r550805;
}




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