\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r639433 = x;
double r639434 = y;
double r639435 = r639433 + r639434;
double r639436 = r639433 - r639434;
double r639437 = r639435 / r639436;
return r639437;
}
double f(double x, double y) {
double r639438 = x;
double r639439 = y;
double r639440 = r639438 + r639439;
double r639441 = r639438 - r639439;
double r639442 = r639440 / r639441;
return r639442;
}




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 2020046 +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)))