x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \frac{{\left(\frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{y + z} \cdot \sqrt[3]{y + z}}\right)}^{y} \cdot {\left(\frac{\sqrt[3]{y}}{\sqrt[3]{y + z}}\right)}^{y}}{y}(FPCore (x y z) :precision binary64 (+ x (/ (exp (* y (log (/ y (+ z y))))) y)))
(FPCore (x y z)
:precision binary64
(+
x
(/
(*
(pow (/ (* (cbrt y) (cbrt y)) (* (cbrt (+ y z)) (cbrt (+ y z)))) y)
(pow (/ (cbrt y) (cbrt (+ y z))) y))
y)))double code(double x, double y, double z) {
return x + (exp(y * log(y / (z + y))) / y);
}
double code(double x, double y, double z) {
return x + ((pow(((cbrt(y) * cbrt(y)) / (cbrt(y + z) * cbrt(y + z))), y) * pow((cbrt(y) / cbrt(y + z)), y)) / y);
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.1 |
|---|---|
| Target | 1.0 |
| Herbie | 2.1 |
Initial program 6.1
Simplified6.1
rmApplied add-cube-cbrt_binary6419.1
Applied add-cube-cbrt_binary646.1
Applied times-frac_binary646.1
Applied unpow-prod-down_binary642.1
Final simplification2.1
herbie shell --seed 2020253
(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.1154157597908e-315) (+ x (/ (exp (/ -1.0 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y)))
(+ x (/ (exp (* y (log (/ y (+ z y))))) y)))