\frac{x + y}{x - y}\frac{1}{\frac{x}{x + y} - \frac{1}{\frac{x + y}{y}}}double f(double x, double y) {
double r468402 = x;
double r468403 = y;
double r468404 = r468402 + r468403;
double r468405 = r468402 - r468403;
double r468406 = r468404 / r468405;
return r468406;
}
double f(double x, double y) {
double r468407 = 1.0;
double r468408 = x;
double r468409 = y;
double r468410 = r468408 + r468409;
double r468411 = r468408 / r468410;
double r468412 = r468410 / r468409;
double r468413 = r468407 / r468412;
double r468414 = r468411 - r468413;
double r468415 = r468407 / r468414;
return r468415;
}




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