\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r501570 = x;
double r501571 = y;
double r501572 = r501570 + r501571;
double r501573 = r501570 - r501571;
double r501574 = r501572 / r501573;
return r501574;
}
double f(double x, double y) {
double r501575 = x;
double r501576 = y;
double r501577 = r501575 + r501576;
double r501578 = r501575 - r501576;
double r501579 = r501577 / r501578;
return r501579;
}




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