\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 r325629 = x;
double r325630 = y;
double r325631 = r325629 + r325630;
double r325632 = 2.0;
double r325633 = r325629 * r325632;
double r325634 = r325633 * r325630;
double r325635 = r325631 / r325634;
return r325635;
}
double f(double x, double y) {
double r325636 = 0.5;
double r325637 = x;
double r325638 = r325636 / r325637;
double r325639 = y;
double r325640 = r325636 / r325639;
double r325641 = r325638 + r325640;
return r325641;
}




Bits error versus x




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