\frac{x + y}{x - y}\frac{1}{\frac{x}{x + y} - \frac{1}{\frac{x + y}{y}}}double f(double x, double y) {
double r429195 = x;
double r429196 = y;
double r429197 = r429195 + r429196;
double r429198 = r429195 - r429196;
double r429199 = r429197 / r429198;
return r429199;
}
double f(double x, double y) {
double r429200 = 1.0;
double r429201 = x;
double r429202 = y;
double r429203 = r429201 + r429202;
double r429204 = r429201 / r429203;
double r429205 = r429203 / r429202;
double r429206 = r429200 / r429205;
double r429207 = r429204 - r429206;
double r429208 = r429200 / r429207;
return r429208;
}




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
Simplified0.0
rmApplied div-sub0.0
Simplified0.0
Simplified0.0
rmApplied clear-num0.0
Final simplification0.0
herbie shell --seed 2019323
(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)))