\frac{x + y}{\left(x \cdot 2\right) \cdot y}\frac{0.5}{y} + \frac{0.5}{x}double f(double x, double y) {
double r470893 = x;
double r470894 = y;
double r470895 = r470893 + r470894;
double r470896 = 2.0;
double r470897 = r470893 * r470896;
double r470898 = r470897 * r470894;
double r470899 = r470895 / r470898;
return r470899;
}
double f(double x, double y) {
double r470900 = 0.5;
double r470901 = y;
double r470902 = r470900 / r470901;
double r470903 = x;
double r470904 = r470900 / r470903;
double r470905 = r470902 + r470904;
return r470905;
}




Bits error versus x




Bits error versus y
Results
| Original | 15.3 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 15.3
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019326 +o rules:numerics
(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)))