\frac{x - y}{x + y}\log \left(e^{\frac{x}{x + y}}\right) - \frac{y}{x + y}double f(double x, double y) {
double r538142 = x;
double r538143 = y;
double r538144 = r538142 - r538143;
double r538145 = r538142 + r538143;
double r538146 = r538144 / r538145;
return r538146;
}
double f(double x, double y) {
double r538147 = x;
double r538148 = y;
double r538149 = r538147 + r538148;
double r538150 = r538147 / r538149;
double r538151 = exp(r538150);
double r538152 = log(r538151);
double r538153 = r538148 / r538149;
double r538154 = r538152 - r538153;
return r538154;
}




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 +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)))