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 r467506 = x;
double r467507 = y;
double r467508 = r467506 / r467507;
double r467509 = log(r467508);
double r467510 = r467506 * r467509;
double r467511 = z;
double r467512 = r467510 - r467511;
return r467512;
}
double f(double x, double y, double z) {
double r467513 = x;
double r467514 = 2.0;
double r467515 = cbrt(r467513);
double r467516 = y;
double r467517 = cbrt(r467516);
double r467518 = r467515 / r467517;
double r467519 = log(r467518);
double r467520 = r467514 * r467519;
double r467521 = r467513 * r467520;
double r467522 = r467513 * r467519;
double r467523 = r467521 + r467522;
double r467524 = z;
double r467525 = r467523 - r467524;
return r467525;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.0 |
|---|---|
| Target | 7.9 |
| Herbie | 0.2 |
Initial program 15.0
rmApplied add-cube-cbrt15.0
Applied add-cube-cbrt15.0
Applied times-frac15.0
Applied log-prod3.3
Applied distribute-lft-in3.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019356
(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))