\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r581262 = x;
double r581263 = y;
double r581264 = r581262 + r581263;
double r581265 = r581262 - r581263;
double r581266 = r581264 / r581265;
return r581266;
}
double f(double x, double y) {
double r581267 = x;
double r581268 = y;
double r581269 = r581267 + r581268;
double r581270 = r581267 - r581268;
double r581271 = r581269 / r581270;
return r581271;
}




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