\frac{x + y}{x - y}\frac{1}{\log \left(e^{\frac{1}{\frac{x + y}{x - y}}}\right)}double f(double x, double y) {
double r20140185 = x;
double r20140186 = y;
double r20140187 = r20140185 + r20140186;
double r20140188 = r20140185 - r20140186;
double r20140189 = r20140187 / r20140188;
return r20140189;
}
double f(double x, double y) {
double r20140190 = 1.0;
double r20140191 = x;
double r20140192 = y;
double r20140193 = r20140191 + r20140192;
double r20140194 = r20140191 - r20140192;
double r20140195 = r20140193 / r20140194;
double r20140196 = r20140190 / r20140195;
double r20140197 = exp(r20140196);
double r20140198 = log(r20140197);
double r20140199 = r20140190 / r20140198;
return r20140199;
}




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
rmApplied add-log-exp0.0
rmApplied clear-num0.0
Final simplification0.0
herbie shell --seed 2019164 +o rules:numerics
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, A"
:herbie-target
(/ 1 (- (/ x (+ x y)) (/ y (+ x y))))
(/ (+ x y) (- x y)))