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 r443800 = x;
double r443801 = y;
double r443802 = r443800 / r443801;
double r443803 = log(r443802);
double r443804 = r443800 * r443803;
double r443805 = z;
double r443806 = r443804 - r443805;
return r443806;
}
double f(double x, double y, double z) {
double r443807 = x;
double r443808 = 2.0;
double r443809 = cbrt(r443807);
double r443810 = y;
double r443811 = cbrt(r443810);
double r443812 = r443809 / r443811;
double r443813 = log(r443812);
double r443814 = r443808 * r443813;
double r443815 = r443807 * r443814;
double r443816 = r443807 * r443813;
double r443817 = r443815 + r443816;
double r443818 = z;
double r443819 = r443817 - r443818;
return r443819;
}




Bits error versus x




Bits error versus y




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