\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r491619 = x;
double r491620 = y;
double r491621 = r491619 + r491620;
double r491622 = r491619 - r491620;
double r491623 = r491621 / r491622;
return r491623;
}
double f(double x, double y) {
double r491624 = x;
double r491625 = y;
double r491626 = r491624 + r491625;
double r491627 = r491624 - r491625;
double r491628 = r491626 / r491627;
return r491628;
}




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