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 r23845364 = x;
double r23845365 = y;
double r23845366 = r23845364 / r23845365;
double r23845367 = log(r23845366);
double r23845368 = r23845364 * r23845367;
double r23845369 = z;
double r23845370 = r23845368 - r23845369;
return r23845370;
}
double f(double x, double y, double z) {
double r23845371 = x;
double r23845372 = cbrt(r23845371);
double r23845373 = cbrt(r23845372);
double r23845374 = y;
double r23845375 = cbrt(r23845374);
double r23845376 = r23845373 / r23845375;
double r23845377 = log(r23845376);
double r23845378 = r23845377 + r23845377;
double r23845379 = r23845378 + r23845377;
double r23845380 = r23845379 * r23845371;
double r23845381 = r23845372 * r23845372;
double r23845382 = log(r23845381);
double r23845383 = r23845382 * r23845371;
double r23845384 = r23845380 + r23845383;
double r23845385 = z;
double r23845386 = r23845384 - r23845385;
return r23845386;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.7 |
|---|---|
| Target | 8.3 |
| Herbie | 0.3 |
Initial program 15.7
rmApplied *-un-lft-identity15.7
Applied add-cube-cbrt15.7
Applied times-frac15.7
Applied log-prod4.9
Applied distribute-lft-in4.9
Simplified4.9
rmApplied add-cube-cbrt4.9
Applied add-cube-cbrt4.9
Applied times-frac4.9
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))