\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 r413803 = x;
double r413804 = y;
double r413805 = r413803 + r413804;
double r413806 = 2.0;
double r413807 = r413803 * r413806;
double r413808 = r413807 * r413804;
double r413809 = r413805 / r413808;
return r413809;
}
double f(double x, double y) {
double r413810 = 0.5;
double r413811 = x;
double r413812 = r413810 / r413811;
double r413813 = y;
double r413814 = r413810 / r413813;
double r413815 = r413812 + r413814;
return r413815;
}




Bits error versus x




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