x \cdot \log \left(\frac{x}{y}\right) - zx \cdot \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \sqrt[3]{\left(\left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right) \cdot \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right)\right) \cdot \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right)}\right) - zdouble f(double x, double y, double z) {
double r25039606 = x;
double r25039607 = y;
double r25039608 = r25039606 / r25039607;
double r25039609 = log(r25039608);
double r25039610 = r25039606 * r25039609;
double r25039611 = z;
double r25039612 = r25039610 - r25039611;
return r25039612;
}
double f(double x, double y, double z) {
double r25039613 = x;
double r25039614 = cbrt(r25039613);
double r25039615 = y;
double r25039616 = cbrt(r25039615);
double r25039617 = r25039614 / r25039616;
double r25039618 = log(r25039617);
double r25039619 = r25039618 + r25039618;
double r25039620 = r25039619 * r25039619;
double r25039621 = r25039620 * r25039619;
double r25039622 = cbrt(r25039621);
double r25039623 = r25039618 + r25039622;
double r25039624 = r25039613 * r25039623;
double r25039625 = z;
double r25039626 = r25039624 - r25039625;
return r25039626;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 14.6 |
|---|---|
| Target | 7.3 |
| Herbie | 0.3 |
Initial program 14.6
rmApplied add-cube-cbrt14.6
Applied add-cube-cbrt14.6
Applied times-frac14.6
Applied log-prod3.4
Simplified3.4
rmApplied add-cbrt-cube3.5
Simplified0.3
Final simplification0.3
herbie shell --seed 2019162
(FPCore (x y z)
:name "Numeric.SpecFunctions.Extra:bd0 from math-functions-0.1.5.2"
:herbie-target
(if (< y 7.595077799083773e-308) (- (* x (log (/ x y))) z) (- (* x (- (log x) (log y))) z))
(- (* x (log (/ x y))) z))