\frac{x + y}{x - y}\sqrt[3]{{\left(\frac{x}{x - y}\right)}^{3}} + \frac{y}{x - y}double f(double x, double y) {
double r704573 = x;
double r704574 = y;
double r704575 = r704573 + r704574;
double r704576 = r704573 - r704574;
double r704577 = r704575 / r704576;
return r704577;
}
double f(double x, double y) {
double r704578 = x;
double r704579 = y;
double r704580 = r704578 - r704579;
double r704581 = r704578 / r704580;
double r704582 = 3.0;
double r704583 = pow(r704581, r704582);
double r704584 = cbrt(r704583);
double r704585 = r704579 / r704580;
double r704586 = r704584 + r704585;
return r704586;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied flip--31.2
Applied associate-/r/31.3
Simplified0.2
rmApplied distribute-lft-in0.2
Simplified0.1
Simplified0.0
rmApplied add-cbrt-cube23.9
Applied add-cbrt-cube27.9
Applied cbrt-undiv27.9
Simplified0.0
Final simplification0.0
herbie shell --seed 2020060 +o rules:numerics
(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)))