\frac{x + y}{x - y}\log \left(e^{\frac{x + y}{x - y}}\right)double f(double x, double y) {
double r656346 = x;
double r656347 = y;
double r656348 = r656346 + r656347;
double r656349 = r656346 - r656347;
double r656350 = r656348 / r656349;
return r656350;
}
double f(double x, double y) {
double r656351 = x;
double r656352 = y;
double r656353 = r656351 + r656352;
double r656354 = r656351 - r656352;
double r656355 = r656353 / r656354;
double r656356 = exp(r656355);
double r656357 = log(r656356);
return r656357;
}




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
Final simplification0.0
herbie shell --seed 2020047
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, A"
:precision binary64
:herbie-target
(/ 1 (- (/ x (+ x y)) (/ y (+ x y))))
(/ (+ x y) (- x y)))