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 r490830 = x;
double r490831 = y;
double r490832 = r490830 / r490831;
double r490833 = log(r490832);
double r490834 = r490830 * r490833;
double r490835 = z;
double r490836 = r490834 - r490835;
return r490836;
}
double f(double x, double y, double z) {
double r490837 = x;
double r490838 = 2.0;
double r490839 = cbrt(r490837);
double r490840 = y;
double r490841 = cbrt(r490840);
double r490842 = r490839 / r490841;
double r490843 = log(r490842);
double r490844 = r490838 * r490843;
double r490845 = r490837 * r490844;
double r490846 = r490837 * r490843;
double r490847 = r490845 + r490846;
double r490848 = z;
double r490849 = r490847 - r490848;
return r490849;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 14.8 |
|---|---|
| Target | 7.3 |
| Herbie | 0.2 |
Initial program 14.8
rmApplied add-cube-cbrt14.8
Applied add-cube-cbrt14.8
Applied times-frac14.8
Applied log-prod3.6
Applied distribute-lft-in3.6
Simplified0.2
Final simplification0.2
herbie shell --seed 2020049
(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))