\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 r600722 = x;
double r600723 = y;
double r600724 = r600722 + r600723;
double r600725 = 2.0;
double r600726 = r600722 * r600725;
double r600727 = r600726 * r600723;
double r600728 = r600724 / r600727;
return r600728;
}
double f(double x, double y) {
double r600729 = 0.5;
double r600730 = y;
double r600731 = r600729 / r600730;
double r600732 = x;
double r600733 = r600729 / r600732;
double r600734 = r600731 + r600733;
return r600734;
}




Bits error versus x




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