\frac{x + y}{x - y}\sqrt[3]{{\left(\frac{x + y}{x - y}\right)}^{3}}double f(double x, double y) {
double r386798 = x;
double r386799 = y;
double r386800 = r386798 + r386799;
double r386801 = r386798 - r386799;
double r386802 = r386800 / r386801;
return r386802;
}
double f(double x, double y) {
double r386803 = x;
double r386804 = y;
double r386805 = r386803 + r386804;
double r386806 = r386803 - r386804;
double r386807 = r386805 / r386806;
double r386808 = 3.0;
double r386809 = pow(r386807, r386808);
double r386810 = cbrt(r386809);
return r386810;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied add-cbrt-cube41.2
Applied add-cbrt-cube42.0
Applied cbrt-undiv42.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019325
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, A"
:precision binary64
:herbie-target
(/ 1 (- (/ x (+ x y)) (/ y (+ x y))))
(/ (+ x y) (- x y)))