x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \frac{e^{\left(2 \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)\right) \cdot y} \cdot \sqrt[3]{{\left({\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}\right)}^{3}}}{y}double f(double x, double y, double z) {
double r322528 = x;
double r322529 = y;
double r322530 = z;
double r322531 = r322530 + r322529;
double r322532 = r322529 / r322531;
double r322533 = log(r322532);
double r322534 = r322529 * r322533;
double r322535 = exp(r322534);
double r322536 = r322535 / r322529;
double r322537 = r322528 + r322536;
return r322537;
}
double f(double x, double y, double z) {
double r322538 = x;
double r322539 = 2.0;
double r322540 = y;
double r322541 = cbrt(r322540);
double r322542 = z;
double r322543 = r322542 + r322540;
double r322544 = cbrt(r322543);
double r322545 = r322541 / r322544;
double r322546 = log(r322545);
double r322547 = r322539 * r322546;
double r322548 = r322547 * r322540;
double r322549 = exp(r322548);
double r322550 = pow(r322545, r322540);
double r322551 = 3.0;
double r322552 = pow(r322550, r322551);
double r322553 = cbrt(r322552);
double r322554 = r322549 * r322553;
double r322555 = r322554 / r322540;
double r322556 = r322538 + r322555;
return r322556;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 5.9 |
|---|---|
| Target | 0.9 |
| Herbie | 0.9 |
Initial program 5.9
Simplified5.9
rmApplied add-cube-cbrt19.8
Applied add-cube-cbrt5.9
Applied times-frac5.9
Applied unpow-prod-down2.1
rmApplied add-exp-log39.3
Applied add-exp-log39.3
Applied prod-exp39.3
Applied add-exp-log39.2
Applied add-exp-log35.4
Applied prod-exp31.4
Applied div-exp31.4
Applied pow-exp30.9
Simplified0.9
rmApplied add-cbrt-cube0.9
Simplified0.9
Final simplification0.9
herbie shell --seed 2019304 +o rules:numerics
(FPCore (x y z)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, G"
:precision binary64
:herbie-target
(if (< (/ y (+ z y)) 7.1154157598e-315) (+ x (/ (exp (/ -1 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y)))
(+ x (/ (exp (* y (log (/ y (+ z y))))) y)))