\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 r858855 = x;
double r858856 = y;
double r858857 = r858855 - r858856;
double r858858 = r858855 + r858856;
double r858859 = r858857 / r858858;
return r858859;
}
double f(double x, double y) {
double r858860 = x;
double r858861 = y;
double r858862 = r858860 + r858861;
double r858863 = r858860 / r858862;
double r858864 = r858861 / r858862;
double r858865 = 3.0;
double r858866 = pow(r858864, r858865);
double r858867 = cbrt(r858866);
double r858868 = exp(r858867);
double r858869 = log(r858868);
double r858870 = r858863 - r858869;
return r858870;
}




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