x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \frac{{\left({\left(\frac{\sqrt[3]{y}}{\sqrt[3]{y + z}}\right)}^{2}\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 (pow (/ (cbrt y) (cbrt (+ y z))) 2.0) 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(pow((cbrt(y) / cbrt(y + z)), 2.0), y) * pow((cbrt(y) / cbrt(y + z)), y)) / y);
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.2 |
|---|---|
| Target | 1.2 |
| Herbie | 2.4 |
Initial program 6.2
Simplified6.2
rmApplied add-cube-cbrt_binary64_1204819.6
Applied add-cube-cbrt_binary64_120486.2
Applied times-frac_binary64_120196.2
Applied unpow-prod-down_binary64_120922.4
rmApplied *-un-lft-identity_binary64_120132.4
Applied pow-unpow_binary64_120902.4
Simplified2.4
Final simplification2.4
herbie shell --seed 2020356
(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)))