\frac{x - y}{x + y}\frac{x}{x + y} - \log \left(e^{\sqrt[3]{{\left(\frac{y}{x + y}\right)}^{3}}}\right)double f(double x, double y) {
double r850608 = x;
double r850609 = y;
double r850610 = r850608 - r850609;
double r850611 = r850608 + r850609;
double r850612 = r850610 / r850611;
return r850612;
}
double f(double x, double y) {
double r850613 = x;
double r850614 = y;
double r850615 = r850613 + r850614;
double r850616 = r850613 / r850615;
double r850617 = r850614 / r850615;
double r850618 = 3.0;
double r850619 = pow(r850617, r850618);
double r850620 = cbrt(r850619);
double r850621 = exp(r850620);
double r850622 = log(r850621);
double r850623 = r850616 - r850622;
return r850623;
}




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-log-exp0.0
rmApplied add-cbrt-cube24.5
Applied add-cbrt-cube28.6
Applied cbrt-undiv28.6
Simplified0.0
Final simplification0.0
herbie shell --seed 2020002
(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)))