\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r628508 = x;
double r628509 = y;
double r628510 = r628508 + r628509;
double r628511 = r628508 - r628509;
double r628512 = r628510 / r628511;
return r628512;
}
double f(double x, double y) {
double r628513 = x;
double r628514 = y;
double r628515 = r628513 + r628514;
double r628516 = r628513 - r628514;
double r628517 = r628515 / r628516;
return r628517;
}




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