\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r542608 = x;
double r542609 = y;
double r542610 = r542608 + r542609;
double r542611 = r542608 - r542609;
double r542612 = r542610 / r542611;
return r542612;
}
double f(double x, double y) {
double r542613 = x;
double r542614 = y;
double r542615 = r542613 + r542614;
double r542616 = r542613 - r542614;
double r542617 = r542615 / r542616;
return r542617;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020046 +o rules:numerics
(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)))