\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 r319270 = x;
double r319271 = y;
double r319272 = r319270 + r319271;
double r319273 = 2.0;
double r319274 = r319270 * r319273;
double r319275 = r319274 * r319271;
double r319276 = r319272 / r319275;
return r319276;
}
double f(double x, double y) {
double r319277 = 0.5;
double r319278 = x;
double r319279 = r319277 / r319278;
double r319280 = y;
double r319281 = r319277 / r319280;
double r319282 = r319279 + r319281;
return r319282;
}




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 2019323
(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)))