\frac{x + y}{x - y}\sqrt[3]{{\left(\frac{x + y}{x - y}\right)}^{3}}double f(double x, double y) {
double r1256782 = x;
double r1256783 = y;
double r1256784 = r1256782 + r1256783;
double r1256785 = r1256782 - r1256783;
double r1256786 = r1256784 / r1256785;
return r1256786;
}
double f(double x, double y) {
double r1256787 = x;
double r1256788 = y;
double r1256789 = r1256787 + r1256788;
double r1256790 = r1256787 - r1256788;
double r1256791 = r1256789 / r1256790;
double r1256792 = 3.0;
double r1256793 = pow(r1256791, r1256792);
double r1256794 = cbrt(r1256793);
return r1256794;
}




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.3
Applied add-cbrt-cube42.2
Applied cbrt-undiv42.1
Simplified0.0
Final simplification0.0
herbie shell --seed 2019198
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, A"
:herbie-target
(/ 1.0 (- (/ x (+ x y)) (/ y (+ x y))))
(/ (+ x y) (- x y)))