\frac{x + y}{x - y}\frac{x + y}{x - y} \cdot \log edouble f(double x, double y) {
double r349146 = x;
double r349147 = y;
double r349148 = r349146 + r349147;
double r349149 = r349146 - r349147;
double r349150 = r349148 / r349149;
return r349150;
}
double f(double x, double y) {
double r349151 = x;
double r349152 = y;
double r349153 = r349151 + r349152;
double r349154 = r349151 - r349152;
double r349155 = r349153 / r349154;
double r349156 = exp(1.0);
double r349157 = log(r349156);
double r349158 = r349155 * r349157;
return r349158;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied add-log-exp0.0
rmApplied *-un-lft-identity0.0
Applied *-un-lft-identity0.0
Applied times-frac0.0
Applied exp-prod0.0
Simplified0.0
rmApplied add-sqr-sqrt0.5
Applied unpow-prod-down0.0
Applied log-prod0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019308
(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)))