\frac{x + y}{x - y}\frac{\frac{1}{x - y}}{\frac{1}{y + x}}double f(double x, double y) {
double r337392 = x;
double r337393 = y;
double r337394 = r337392 + r337393;
double r337395 = r337392 - r337393;
double r337396 = r337394 / r337395;
return r337396;
}
double f(double x, double y) {
double r337397 = 1.0;
double r337398 = x;
double r337399 = y;
double r337400 = r337398 - r337399;
double r337401 = r337397 / r337400;
double r337402 = r337399 + r337398;
double r337403 = r337397 / r337402;
double r337404 = r337401 / r337403;
return r337404;
}




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-inv0.2
Applied associate-/r*0.0
Final simplification0.0
herbie shell --seed 2019306
(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)))