\frac{x + y}{\left(x \cdot 2\right) \cdot y}\frac{\frac{\frac{x + y}{y}}{2}}{x}double f(double x, double y) {
double r442629 = x;
double r442630 = y;
double r442631 = r442629 + r442630;
double r442632 = 2.0;
double r442633 = r442629 * r442632;
double r442634 = r442633 * r442630;
double r442635 = r442631 / r442634;
return r442635;
}
double f(double x, double y) {
double r442636 = x;
double r442637 = y;
double r442638 = r442636 + r442637;
double r442639 = r442638 / r442637;
double r442640 = 2.0;
double r442641 = r442639 / r442640;
double r442642 = r442641 / r442636;
return r442642;
}




Bits error versus x




Bits error versus y
Results
| Original | 15.3 |
|---|---|
| Target | 0.0 |
| Herbie | 8.4 |
if y < -2.1344161616579373e+52 or 1.5003823122464018e-27 < y Initial program 16.3
rmApplied *-un-lft-identity16.3
Applied times-frac0.2
if -2.1344161616579373e+52 < y < 1.5003823122464018e-27Initial program 14.5
rmApplied *-un-lft-identity14.5
Applied times-frac16.1
rmApplied div-inv16.0
Applied associate-*r*0.4
Simplified0.3
Final simplification8.4
herbie shell --seed 1978988140
(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)))