x \cdot \log \left(\frac{x}{y}\right) - z\left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \left(\log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right)\right) \cdot x - zdouble f(double x, double y, double z) {
double r16455545 = x;
double r16455546 = y;
double r16455547 = r16455545 / r16455546;
double r16455548 = log(r16455547);
double r16455549 = r16455545 * r16455548;
double r16455550 = z;
double r16455551 = r16455549 - r16455550;
return r16455551;
}
double f(double x, double y, double z) {
double r16455552 = x;
double r16455553 = cbrt(r16455552);
double r16455554 = y;
double r16455555 = cbrt(r16455554);
double r16455556 = r16455553 / r16455555;
double r16455557 = log(r16455556);
double r16455558 = r16455557 + r16455557;
double r16455559 = r16455557 + r16455558;
double r16455560 = r16455559 * r16455552;
double r16455561 = z;
double r16455562 = r16455560 - r16455561;
return r16455562;
}




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.4
Simplified0.2
Final simplification0.2
herbie shell --seed 2019164 +o rules:numerics
(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))