x \cdot \log \left(\frac{x}{y}\right) - zx \cdot \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right) + \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) \cdot x - z\right)double f(double x, double y, double z) {
double r9671166 = x;
double r9671167 = y;
double r9671168 = r9671166 / r9671167;
double r9671169 = log(r9671168);
double r9671170 = r9671166 * r9671169;
double r9671171 = z;
double r9671172 = r9671170 - r9671171;
return r9671172;
}
double f(double x, double y, double z) {
double r9671173 = x;
double r9671174 = cbrt(r9671173);
double r9671175 = y;
double r9671176 = cbrt(r9671175);
double r9671177 = r9671174 / r9671176;
double r9671178 = log(r9671177);
double r9671179 = r9671178 + r9671178;
double r9671180 = r9671173 * r9671179;
double r9671181 = r9671178 * r9671173;
double r9671182 = z;
double r9671183 = r9671181 - r9671182;
double r9671184 = r9671180 + r9671183;
return r9671184;
}




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-rgt-in3.6
Applied associate--l+3.6
rmApplied times-frac3.6
Applied log-prod0.2
Final simplification0.2
herbie shell --seed 2019179
(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))