\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r101607422 = x;
double r101607423 = y;
double r101607424 = r101607422 + r101607423;
double r101607425 = r101607422 - r101607423;
double r101607426 = r101607424 / r101607425;
return r101607426;
}
double f(double x, double y) {
double r101607427 = x;
double r101607428 = y;
double r101607429 = r101607427 + r101607428;
double r101607430 = r101607427 - r101607428;
double r101607431 = r101607429 / r101607430;
return r101607431;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2019173
(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)))