\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r458480 = x;
double r458481 = y;
double r458482 = r458480 + r458481;
double r458483 = r458480 - r458481;
double r458484 = r458482 / r458483;
return r458484;
}
double f(double x, double y) {
double r458485 = x;
double r458486 = y;
double r458487 = r458485 + r458486;
double r458488 = r458485 - r458486;
double r458489 = r458487 / r458488;
return r458489;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied *-un-lft-identity0.0
Applied *-un-lft-identity0.0
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019212
(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)))