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 r480196 = x;
double r480197 = y;
double r480198 = r480196 / r480197;
double r480199 = log(r480198);
double r480200 = r480196 * r480199;
double r480201 = z;
double r480202 = r480200 - r480201;
return r480202;
}
double f(double x, double y, double z) {
double r480203 = x;
double r480204 = 2.0;
double r480205 = cbrt(r480203);
double r480206 = y;
double r480207 = cbrt(r480206);
double r480208 = r480205 / r480207;
double r480209 = log(r480208);
double r480210 = r480204 * r480209;
double r480211 = r480210 + r480209;
double r480212 = r480203 * r480211;
double r480213 = z;
double r480214 = r480212 - r480213;
return r480214;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 15.1 |
|---|---|
| Target | 7.7 |
| 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 2020046
(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))