\frac{x + y}{x - y}\log \left(e^{\frac{x + y}{x - y}}\right)double f(double x, double y) {
double r556369 = x;
double r556370 = y;
double r556371 = r556369 + r556370;
double r556372 = r556369 - r556370;
double r556373 = r556371 / r556372;
return r556373;
}
double f(double x, double y) {
double r556374 = x;
double r556375 = y;
double r556376 = r556374 + r556375;
double r556377 = r556374 - r556375;
double r556378 = r556376 / r556377;
double r556379 = exp(r556378);
double r556380 = log(r556379);
return r556380;
}




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