\frac{x + y}{x - y}\sqrt[3]{\frac{y + x}{x - y}} \cdot \left(\sqrt[3]{\frac{y + x}{x - y}} \cdot \sqrt[3]{\frac{y + x}{x - y}}\right)double f(double x, double y) {
double r23212575 = x;
double r23212576 = y;
double r23212577 = r23212575 + r23212576;
double r23212578 = r23212575 - r23212576;
double r23212579 = r23212577 / r23212578;
return r23212579;
}
double f(double x, double y) {
double r23212580 = y;
double r23212581 = x;
double r23212582 = r23212580 + r23212581;
double r23212583 = r23212581 - r23212580;
double r23212584 = r23212582 / r23212583;
double r23212585 = cbrt(r23212584);
double r23212586 = r23212585 * r23212585;
double r23212587 = r23212585 * r23212586;
return r23212587;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 0.0
rmApplied add-cube-cbrt0.1
Final simplification0.1
herbie shell --seed 2019192
(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)))