\frac{x + y}{x - y}\log \left(e^{\frac{y + x}{x - y}}\right)double f(double x, double y) {
double r20934050 = x;
double r20934051 = y;
double r20934052 = r20934050 + r20934051;
double r20934053 = r20934050 - r20934051;
double r20934054 = r20934052 / r20934053;
return r20934054;
}
double f(double x, double y) {
double r20934055 = y;
double r20934056 = x;
double r20934057 = r20934055 + r20934056;
double r20934058 = r20934056 - r20934055;
double r20934059 = r20934057 / r20934058;
double r20934060 = exp(r20934059);
double r20934061 = log(r20934060);
return r20934061;
}




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 2019163 +o rules:numerics
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, A"
:herbie-target
(/ 1 (- (/ x (+ x y)) (/ y (+ x y))))
(/ (+ x y) (- x y)))