\frac{x + y}{x - y}\frac{x + y}{x - y}double f(double x, double y) {
double r553962 = x;
double r553963 = y;
double r553964 = r553962 + r553963;
double r553965 = r553962 - r553963;
double r553966 = r553964 / r553965;
return r553966;
}
double f(double x, double y) {
double r553967 = x;
double r553968 = y;
double r553969 = r553967 + r553968;
double r553970 = r553967 - r553968;
double r553971 = r553969 / r553970;
return r553971;
}




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