\frac{x + y}{x - y}\log \left(e^{\frac{x + y}{x - y}}\right)double f(double x, double y) {
double r438339 = x;
double r438340 = y;
double r438341 = r438339 + r438340;
double r438342 = r438339 - r438340;
double r438343 = r438341 / r438342;
return r438343;
}
double f(double x, double y) {
double r438344 = x;
double r438345 = y;
double r438346 = r438344 + r438345;
double r438347 = r438344 - r438345;
double r438348 = r438346 / r438347;
double r438349 = exp(r438348);
double r438350 = log(r438349);
return r438350;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
rmApplied add-log-exp0.0
Final simplification0.0
herbie shell --seed 2019179
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, A"
:herbie-target
(/ 1.0 (- (/ x (+ x y)) (/ y (+ x y))))
(/ (+ x y) (- x y)))