\frac{x - y}{x + y}\log \left({e}^{\left(\frac{x}{x + y}\right)}\right) - \log \left({e}^{\left(\frac{y}{x + y}\right)}\right)double f(double x, double y) {
double r794889 = x;
double r794890 = y;
double r794891 = r794889 - r794890;
double r794892 = r794889 + r794890;
double r794893 = r794891 / r794892;
return r794893;
}
double f(double x, double y) {
double r794894 = exp(1.0);
double r794895 = x;
double r794896 = y;
double r794897 = r794895 + r794896;
double r794898 = r794895 / r794897;
double r794899 = pow(r794894, r794898);
double r794900 = log(r794899);
double r794901 = r794896 / r794897;
double r794902 = pow(r794894, r794901);
double r794903 = log(r794902);
double r794904 = r794900 - r794903;
return r794904;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied add-log-exp0.0
rmApplied *-un-lft-identity0.0
Applied *-un-lft-identity0.0
Applied times-frac0.0
Applied exp-prod0.0
Simplified0.0
rmApplied div-sub0.0
Applied pow-sub0.0
Applied log-div0.0
Final simplification0.0
herbie shell --seed 2019354
(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)))