x \cdot \log \left(\frac{x}{y}\right) - zx \cdot \left(2 \cdot \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right) + \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{y}}\right)\right) - zdouble f(double x, double y, double z) {
double r523375 = x;
double r523376 = y;
double r523377 = r523375 / r523376;
double r523378 = log(r523377);
double r523379 = r523375 * r523378;
double r523380 = z;
double r523381 = r523379 - r523380;
return r523381;
}
double f(double x, double y, double z) {
double r523382 = x;
double r523383 = 2.0;
double r523384 = cbrt(r523382);
double r523385 = y;
double r523386 = cbrt(r523385);
double r523387 = r523384 / r523386;
double r523388 = log(r523387);
double r523389 = r523383 * r523388;
double r523390 = r523389 + r523388;
double r523391 = r523382 * r523390;
double r523392 = z;
double r523393 = r523391 - r523392;
return r523393;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.1 |
|---|---|
| Target | 7.2 |
| Herbie | 0.2 |
Initial program 15.1
rmApplied add-cube-cbrt15.1
Applied add-cube-cbrt15.1
Applied times-frac15.1
Applied log-prod3.5
Simplified0.2
Final simplification0.2
herbie shell --seed 2019354
(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))