x \cdot \log \left(\frac{x}{y}\right) - z\left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right)\right) \cdot x - zdouble f(double x, double y, double z) {
double r21828093 = x;
double r21828094 = y;
double r21828095 = r21828093 / r21828094;
double r21828096 = log(r21828095);
double r21828097 = r21828093 * r21828096;
double r21828098 = z;
double r21828099 = r21828097 - r21828098;
return r21828099;
}
double f(double x, double y, double z) {
double r21828100 = x;
double r21828101 = cbrt(r21828100);
double r21828102 = y;
double r21828103 = cbrt(r21828102);
double r21828104 = r21828101 / r21828103;
double r21828105 = log(r21828104);
double r21828106 = r21828105 + r21828105;
double r21828107 = r21828105 + r21828106;
double r21828108 = r21828107 * r21828100;
double r21828109 = z;
double r21828110 = r21828108 - r21828109;
return r21828110;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 14.8 |
|---|---|
| Target | 7.3 |
| Herbie | 0.2 |
Initial program 14.8
rmApplied add-cube-cbrt14.8
Applied add-cube-cbrt14.8
Applied times-frac14.8
Applied log-prod3.4
Simplified3.4
rmApplied log-prod0.2
Final simplification0.2
herbie shell --seed 2019164
(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))