x \cdot \log \left(\frac{x}{y}\right) - zx \cdot \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \sqrt[3]{\left(\left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right) \cdot \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right)\right) \cdot \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right)}\right) - zdouble f(double x, double y, double z) {
double r23411209 = x;
double r23411210 = y;
double r23411211 = r23411209 / r23411210;
double r23411212 = log(r23411211);
double r23411213 = r23411209 * r23411212;
double r23411214 = z;
double r23411215 = r23411213 - r23411214;
return r23411215;
}
double f(double x, double y, double z) {
double r23411216 = x;
double r23411217 = cbrt(r23411216);
double r23411218 = y;
double r23411219 = cbrt(r23411218);
double r23411220 = r23411217 / r23411219;
double r23411221 = log(r23411220);
double r23411222 = r23411221 + r23411221;
double r23411223 = r23411222 * r23411222;
double r23411224 = r23411223 * r23411222;
double r23411225 = cbrt(r23411224);
double r23411226 = r23411221 + r23411225;
double r23411227 = r23411216 * r23411226;
double r23411228 = z;
double r23411229 = r23411227 - r23411228;
return r23411229;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 14.6 |
|---|---|
| Target | 7.3 |
| Herbie | 0.3 |
Initial program 14.6
rmApplied add-cube-cbrt14.6
Applied add-cube-cbrt14.6
Applied times-frac14.6
Applied log-prod3.4
Simplified3.4
rmApplied add-cbrt-cube3.5
Simplified0.3
Final simplification0.3
herbie shell --seed 2019162
(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))