\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r560573 = x;
double r560574 = y;
double r560575 = r560573 + r560574;
double r560576 = r560573 - r560574;
double r560577 = r560575 / r560576;
return r560577;
}
double f(double x, double y) {
double r560578 = x;
double r560579 = y;
double r560580 = r560578 + r560579;
double r560581 = r560578 - r560579;
double r560582 = r560580 / r560581;
return r560582;
}




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