\frac{x + y}{x - y}\frac{y + x}{x - y}double f(double x, double y) {
double r379501 = x;
double r379502 = y;
double r379503 = r379501 + r379502;
double r379504 = r379501 - r379502;
double r379505 = r379503 / r379504;
return r379505;
}
double f(double x, double y) {
double r379506 = y;
double r379507 = x;
double r379508 = r379506 + r379507;
double r379509 = r379507 - r379506;
double r379510 = r379508 / r379509;
return r379510;
}




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 2019174 +o rules:numerics
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, A"
:herbie-target
(/ 1.0 (- (/ x (+ x y)) (/ y (+ x y))))
(/ (+ x y) (- x y)))