\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r417722 = x;
double r417723 = y;
double r417724 = r417722 + r417723;
double r417725 = r417722 - r417723;
double r417726 = r417724 / r417725;
return r417726;
}
double f(double x, double y) {
double r417727 = x;
double r417728 = y;
double r417729 = r417727 + r417728;
double r417730 = r417727 - r417728;
double r417731 = r417729 / r417730;
return r417731;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied clear-num0.0
Final simplification0.0
herbie shell --seed 2019303
(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)))