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 r444493 = x;
double r444494 = y;
double r444495 = r444493 / r444494;
double r444496 = log(r444495);
double r444497 = r444493 * r444496;
double r444498 = z;
double r444499 = r444497 - r444498;
return r444499;
}
double f(double x, double y, double z) {
double r444500 = x;
double r444501 = 2.0;
double r444502 = cbrt(r444500);
double r444503 = y;
double r444504 = cbrt(r444503);
double r444505 = r444502 / r444504;
double r444506 = log(r444505);
double r444507 = r444501 * r444506;
double r444508 = r444500 * r444507;
double r444509 = r444500 * r444506;
double r444510 = r444508 + r444509;
double r444511 = z;
double r444512 = r444510 - r444511;
return r444512;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.1 |
|---|---|
| Target | 7.8 |
| Herbie | 0.2 |
Initial program 15.1
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 2020056
(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))