x \cdot \log \left(\frac{x}{y}\right) - z\left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) \cdot x + \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right) \cdot x\right) - zdouble f(double x, double y, double z) {
double r19769729 = x;
double r19769730 = y;
double r19769731 = r19769729 / r19769730;
double r19769732 = log(r19769731);
double r19769733 = r19769729 * r19769732;
double r19769734 = z;
double r19769735 = r19769733 - r19769734;
return r19769735;
}
double f(double x, double y, double z) {
double r19769736 = x;
double r19769737 = cbrt(r19769736);
double r19769738 = y;
double r19769739 = cbrt(r19769738);
double r19769740 = r19769737 / r19769739;
double r19769741 = log(r19769740);
double r19769742 = r19769741 * r19769736;
double r19769743 = r19769741 + r19769741;
double r19769744 = r19769743 * r19769736;
double r19769745 = r19769742 + r19769744;
double r19769746 = z;
double r19769747 = r19769745 - r19769746;
return r19769747;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.3 |
|---|---|
| Target | 7.8 |
| Herbie | 0.2 |
Initial program 15.3
rmApplied add-cube-cbrt15.3
Applied add-cube-cbrt15.3
Applied times-frac15.3
Applied log-prod3.8
Applied distribute-lft-in3.8
Simplified0.2
Final simplification0.2
herbie shell --seed 2019200
(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))