\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 r459964 = x;
double r459965 = y;
double r459966 = r459964 + r459965;
double r459967 = 2.0;
double r459968 = r459964 * r459967;
double r459969 = r459968 * r459965;
double r459970 = r459966 / r459969;
return r459970;
}
double f(double x, double y) {
double r459971 = 0.5;
double r459972 = x;
double r459973 = r459971 / r459972;
double r459974 = y;
double r459975 = r459971 / r459974;
double r459976 = r459973 + r459975;
return r459976;
}




Bits error versus x




Bits error versus y
Results
| Original | 15.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 15.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020045
(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)))