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 r20484909 = x;
double r20484910 = y;
double r20484911 = r20484909 / r20484910;
double r20484912 = log(r20484911);
double r20484913 = r20484909 * r20484912;
double r20484914 = z;
double r20484915 = r20484913 - r20484914;
return r20484915;
}
double f(double x, double y, double z) {
double r20484916 = x;
double r20484917 = cbrt(r20484916);
double r20484918 = y;
double r20484919 = cbrt(r20484918);
double r20484920 = r20484917 / r20484919;
double r20484921 = log(r20484920);
double r20484922 = r20484921 + r20484921;
double r20484923 = r20484921 + r20484922;
double r20484924 = r20484923 * r20484916;
double r20484925 = z;
double r20484926 = r20484924 - r20484925;
return r20484926;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.0 |
|---|---|
| Target | 8.0 |
| Herbie | 0.2 |
Initial program 15.0
rmApplied add-cube-cbrt15.0
Applied add-cube-cbrt15.0
Applied times-frac15.0
Applied log-prod3.5
Simplified0.2
Final simplification0.2
herbie shell --seed 2019168 +o rules:numerics
(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))