\frac{x + y}{x - y}\frac{1}{\frac{x - y}{y + x}}double f(double x, double y) {
double r379346 = x;
double r379347 = y;
double r379348 = r379346 + r379347;
double r379349 = r379346 - r379347;
double r379350 = r379348 / r379349;
return r379350;
}
double f(double x, double y) {
double r379351 = 1.0;
double r379352 = x;
double r379353 = y;
double r379354 = r379352 - r379353;
double r379355 = r379353 + r379352;
double r379356 = r379354 / r379355;
double r379357 = r379351 / r379356;
return r379357;
}




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
Final simplification0.0
herbie shell --seed 2019303
(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)))