x \cdot \log \left(\frac{x}{y}\right) - z\left(\left(\left(\log \left(\frac{\sqrt[3]{\sqrt[3]{x}}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{\sqrt[3]{x}}}{\sqrt[3]{y}}\right)\right) + \log \left(\frac{\sqrt[3]{\sqrt[3]{x}}}{\sqrt[3]{y}}\right)\right) \cdot x + \log \left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right) \cdot x\right) - zdouble f(double x, double y, double z) {
double r19443393 = x;
double r19443394 = y;
double r19443395 = r19443393 / r19443394;
double r19443396 = log(r19443395);
double r19443397 = r19443393 * r19443396;
double r19443398 = z;
double r19443399 = r19443397 - r19443398;
return r19443399;
}
double f(double x, double y, double z) {
double r19443400 = x;
double r19443401 = cbrt(r19443400);
double r19443402 = cbrt(r19443401);
double r19443403 = y;
double r19443404 = cbrt(r19443403);
double r19443405 = r19443402 / r19443404;
double r19443406 = log(r19443405);
double r19443407 = r19443406 + r19443406;
double r19443408 = r19443407 + r19443406;
double r19443409 = r19443408 * r19443400;
double r19443410 = r19443401 * r19443401;
double r19443411 = log(r19443410);
double r19443412 = r19443411 * r19443400;
double r19443413 = r19443409 + r19443412;
double r19443414 = z;
double r19443415 = r19443413 - r19443414;
return r19443415;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.0 |
|---|---|
| Target | 8.0 |
| Herbie | 0.3 |
Initial program 15.0
rmApplied *-un-lft-identity15.0
Applied add-cube-cbrt15.0
Applied times-frac15.0
Applied log-prod4.7
Applied distribute-lft-in4.7
Simplified4.7
rmApplied add-cube-cbrt4.7
Applied add-cube-cbrt4.7
Applied times-frac4.7
Applied log-prod0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019168
(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))