\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r539415 = x;
double r539416 = y;
double r539417 = r539415 + r539416;
double r539418 = r539415 - r539416;
double r539419 = r539417 / r539418;
return r539419;
}
double f(double x, double y) {
double r539420 = x;
double r539421 = y;
double r539422 = r539420 + r539421;
double r539423 = r539420 - r539421;
double r539424 = r539422 / r539423;
return r539424;
}




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