\frac{x + y}{x - y}\frac{1}{\frac{x - y}{x + y}}double f(double x, double y) {
double r397042 = x;
double r397043 = y;
double r397044 = r397042 + r397043;
double r397045 = r397042 - r397043;
double r397046 = r397044 / r397045;
return r397046;
}
double f(double x, double y) {
double r397047 = 1.0;
double r397048 = x;
double r397049 = y;
double r397050 = r397048 - r397049;
double r397051 = r397048 + r397049;
double r397052 = r397050 / r397051;
double r397053 = r397047 / r397052;
return r397053;
}




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