\frac{x + y}{x - y}\log \left(e^{\frac{x + y}{x - y}}\right)double f(double x, double y) {
double r456633 = x;
double r456634 = y;
double r456635 = r456633 + r456634;
double r456636 = r456633 - r456634;
double r456637 = r456635 / r456636;
return r456637;
}
double f(double x, double y) {
double r456638 = x;
double r456639 = y;
double r456640 = r456638 + r456639;
double r456641 = r456638 - r456639;
double r456642 = r456640 / r456641;
double r456643 = exp(r456642);
double r456644 = log(r456643);
return r456644;
}




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 +o rules:numerics
(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)))