\frac{x + y}{x - y}\log \left(e^{\frac{y + x}{x - y}}\right)double f(double x, double y) {
double r25847137 = x;
double r25847138 = y;
double r25847139 = r25847137 + r25847138;
double r25847140 = r25847137 - r25847138;
double r25847141 = r25847139 / r25847140;
return r25847141;
}
double f(double x, double y) {
double r25847142 = y;
double r25847143 = x;
double r25847144 = r25847142 + r25847143;
double r25847145 = r25847143 - r25847142;
double r25847146 = r25847144 / r25847145;
double r25847147 = exp(r25847146);
double r25847148 = log(r25847147);
return r25847148;
}




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