\frac{x + y}{x - y}\frac{1}{\frac{x - y}{x + y}}double f(double x, double y) {
double r299770 = x;
double r299771 = y;
double r299772 = r299770 + r299771;
double r299773 = r299770 - r299771;
double r299774 = r299772 / r299773;
return r299774;
}
double f(double x, double y) {
double r299775 = 1.0;
double r299776 = x;
double r299777 = y;
double r299778 = r299776 - r299777;
double r299779 = r299776 + r299777;
double r299780 = r299778 / r299779;
double r299781 = r299775 / r299780;
return r299781;
}




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 2019199 +o rules:numerics
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, A"
:herbie-target
(/ 1.0 (- (/ x (+ x y)) (/ y (+ x y))))
(/ (+ x y) (- x y)))