\frac{x + y}{x - y}{\left(\frac{y + x}{x - y} \cdot \frac{y + x}{x - y}\right)}^{\frac{1}{3}} \cdot \sqrt[3]{\frac{y + x}{x - y}}double f(double x, double y) {
double r27265454 = x;
double r27265455 = y;
double r27265456 = r27265454 + r27265455;
double r27265457 = r27265454 - r27265455;
double r27265458 = r27265456 / r27265457;
return r27265458;
}
double f(double x, double y) {
double r27265459 = y;
double r27265460 = x;
double r27265461 = r27265459 + r27265460;
double r27265462 = r27265460 - r27265459;
double r27265463 = r27265461 / r27265462;
double r27265464 = r27265463 * r27265463;
double r27265465 = 0.3333333333333333;
double r27265466 = pow(r27265464, r27265465);
double r27265467 = cbrt(r27265463);
double r27265468 = r27265466 * r27265467;
return r27265468;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied add-cube-cbrt0.1
rmApplied pow1/331.8
Applied pow1/331.8
Applied pow-prod-down0.0
Final simplification0.0
herbie shell --seed 2019171
(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)))