x \cdot \log \left(\frac{x}{y}\right) - z\left(x \cdot \left(2 \cdot \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right) + x \cdot \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right) - zdouble f(double x, double y, double z) {
double r580077 = x;
double r580078 = y;
double r580079 = r580077 / r580078;
double r580080 = log(r580079);
double r580081 = r580077 * r580080;
double r580082 = z;
double r580083 = r580081 - r580082;
return r580083;
}
double f(double x, double y, double z) {
double r580084 = x;
double r580085 = 2.0;
double r580086 = cbrt(r580084);
double r580087 = y;
double r580088 = cbrt(r580087);
double r580089 = r580086 / r580088;
double r580090 = log(r580089);
double r580091 = r580085 * r580090;
double r580092 = r580084 * r580091;
double r580093 = r580084 * r580090;
double r580094 = r580092 + r580093;
double r580095 = z;
double r580096 = r580094 - r580095;
return r580096;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.0 |
|---|---|
| Target | 7.6 |
| Herbie | 0.2 |
Initial program 15.0
rmApplied add-cube-cbrt15.1
Applied add-cube-cbrt15.1
Applied times-frac15.1
Applied log-prod3.5
Applied distribute-lft-in3.5
Simplified0.2
Final simplification0.2
herbie shell --seed 2020034
(FPCore (x y z)
:name "Numeric.SpecFunctions.Extra:bd0 from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(if (< y 7.595077799083773e-308) (- (* x (log (/ x y))) z) (- (* x (- (log x) (log y))) z))
(- (* x (log (/ x y))) z))