\frac{x + y}{x - y}\sqrt[3]{{\left(\sqrt[3]{\frac{x + y}{x - y} \cdot \frac{x + y}{x - y}} \cdot \sqrt[3]{\frac{x + y}{x - y}}\right)}^{3}}double f(double x, double y) {
double r580887 = x;
double r580888 = y;
double r580889 = r580887 + r580888;
double r580890 = r580887 - r580888;
double r580891 = r580889 / r580890;
return r580891;
}
double f(double x, double y) {
double r580892 = x;
double r580893 = y;
double r580894 = r580892 + r580893;
double r580895 = r580892 - r580893;
double r580896 = r580894 / r580895;
double r580897 = r580896 * r580896;
double r580898 = cbrt(r580897);
double r580899 = cbrt(r580896);
double r580900 = r580898 * r580899;
double r580901 = 3.0;
double r580902 = pow(r580900, r580901);
double r580903 = cbrt(r580902);
return r580903;
}




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
rmApplied add-cube-cbrt0.1
Simplified0.0
Final simplification0.0
herbie shell --seed 2020065
(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)))