\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 r812072 = x;
double r812073 = y;
double r812074 = r812072 - r812073;
double r812075 = r812072 + r812073;
double r812076 = r812074 / r812075;
return r812076;
}
double f(double x, double y) {
double r812077 = x;
double r812078 = y;
double r812079 = r812077 + r812078;
double r812080 = r812077 / r812079;
double r812081 = 3.0;
double r812082 = pow(r812080, r812081);
double r812083 = cbrt(r812082);
double r812084 = r812078 / r812079;
double r812085 = r812083 - r812084;
return r812085;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied div-sub0.0
rmApplied add-cbrt-cube23.6
Applied add-cbrt-cube27.4
Applied cbrt-undiv27.4
Simplified0.0
Final simplification0.0
herbie shell --seed 2020089 +o rules:numerics
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, D"
:precision binary64
:herbie-target
(- (/ x (+ x y)) (/ y (+ x y)))
(/ (- x y) (+ x y)))