\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 r34871074 = x;
double r34871075 = y;
double r34871076 = r34871074 + r34871075;
double r34871077 = r34871074 - r34871075;
double r34871078 = r34871076 / r34871077;
return r34871078;
}
double f(double x, double y) {
double r34871079 = y;
double r34871080 = x;
double r34871081 = r34871079 + r34871080;
double r34871082 = r34871080 - r34871079;
double r34871083 = r34871081 / r34871082;
double r34871084 = r34871083 * r34871083;
double r34871085 = 0.3333333333333333;
double r34871086 = pow(r34871084, r34871085);
double r34871087 = cbrt(r34871083);
double r34871088 = r34871086 * r34871087;
return r34871088;
}




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)))