\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 r547040 = x;
double r547041 = y;
double r547042 = r547040 + r547041;
double r547043 = r547040 - r547041;
double r547044 = r547042 / r547043;
return r547044;
}
double f(double x, double y) {
double r547045 = x;
double r547046 = y;
double r547047 = r547045 - r547046;
double r547048 = r547045 / r547047;
double r547049 = 3.0;
double r547050 = pow(r547048, r547049);
double r547051 = cbrt(r547050);
double r547052 = r547046 / r547047;
double r547053 = r547051 + r547052;
return r547053;
}




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