\frac{x + y}{\left(x \cdot 2\right) \cdot y}\frac{0.5}{x} + \frac{0.5}{y}double f(double x, double y) {
double r1167568 = x;
double r1167569 = y;
double r1167570 = r1167568 + r1167569;
double r1167571 = 2.0;
double r1167572 = r1167568 * r1167571;
double r1167573 = r1167572 * r1167569;
double r1167574 = r1167570 / r1167573;
return r1167574;
}
double f(double x, double y) {
double r1167575 = 0.5;
double r1167576 = x;
double r1167577 = r1167575 / r1167576;
double r1167578 = y;
double r1167579 = r1167575 / r1167578;
double r1167580 = r1167577 + r1167579;
return r1167580;
}




Bits error versus x




Bits error versus y
Results
| Original | 15.6 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 15.6
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020047
(FPCore (x y)
:name "Linear.Projection:inversePerspective from linear-1.19.1.3, C"
:precision binary64
:herbie-target
(+ (/ 0.5 x) (/ 0.5 y))
(/ (+ x y) (* (* x 2) y)))