\frac{x + y}{x - y}\frac{1}{\frac{x - y}{x + y}}double f(double x, double y) {
double r651624 = x;
double r651625 = y;
double r651626 = r651624 + r651625;
double r651627 = r651624 - r651625;
double r651628 = r651626 / r651627;
return r651628;
}
double f(double x, double y) {
double r651629 = 1.0;
double r651630 = x;
double r651631 = y;
double r651632 = r651630 - r651631;
double r651633 = r651630 + r651631;
double r651634 = r651632 / r651633;
double r651635 = r651629 / r651634;
return r651635;
}




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