\frac{x \cdot y}{\left(z \cdot z\right) \cdot \left(z + 1\right)}\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -6.072582763214135 \cdot 10^{+302}:\\
\;\;\;\;\left(x \cdot \frac{\sqrt[3]{y} \cdot \frac{\sqrt[3]{y}}{z}}{\sqrt[3]{z} \cdot \sqrt[3]{z}}\right) \cdot \frac{\frac{\sqrt[3]{y}}{\sqrt[3]{z}}}{z + 1}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(\sqrt[3]{y} \cdot \frac{\sqrt[3]{y}}{z}\right)\right) \cdot \frac{\frac{\sqrt[3]{y}}{z}}{z + 1}\\
\end{array}double code(double x, double y, double z) {
return (((double) (x * y)) / ((double) (((double) (z * z)) * ((double) (z + 1.0)))));
}
double code(double x, double y, double z) {
double VAR;
if ((((double) (x * y)) <= -6.072582763214135e+302)) {
VAR = ((double) (((double) (x * (((double) (((double) cbrt(y)) * (((double) cbrt(y)) / z))) / ((double) (((double) cbrt(z)) * ((double) cbrt(z))))))) * ((((double) cbrt(y)) / ((double) cbrt(z))) / ((double) (z + 1.0)))));
} else {
VAR = ((double) (((double) (x * ((double) (((double) cbrt(y)) * (((double) cbrt(y)) / z))))) * ((((double) cbrt(y)) / z) / ((double) (z + 1.0)))));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 14.1 |
|---|---|
| Target | 3.9 |
| Herbie | 1.7 |
if (* x y) < -6.072582763214135e302Initial program Error: 62.1 bits
SimplifiedError: 30.0 bits
rmApplied add-cube-cbrtError: 30.2 bits
Applied times-fracError: 20.9 bits
Applied associate-*r*Error: 23.9 bits
SimplifiedError: 23.9 bits
rmApplied associate-/r*Error: 14.6 bits
rmApplied *-un-lft-identityError: 14.6 bits
Applied add-cube-cbrtError: 14.7 bits
Applied *-un-lft-identityError: 14.7 bits
Applied times-fracError: 14.7 bits
Applied times-fracError: 14.8 bits
Applied associate-*r*Error: 5.1 bits
SimplifiedError: 1.3 bits
if -6.072582763214135e302 < (* x y) Initial program Error: 12.2 bits
SimplifiedError: 12.5 bits
rmApplied add-cube-cbrtError: 12.9 bits
Applied times-fracError: 8.3 bits
Applied associate-*r*Error: 2.3 bits
SimplifiedError: 2.3 bits
rmApplied associate-/r*Error: 1.7 bits
Final simplificationError: 1.7 bits
herbie shell --seed 2020200
(FPCore (x y z)
:name "Statistics.Distribution.Beta:$cvariance from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(if (< z 249.6182814532307) (/ (* y (/ x z)) (+ z (* z z))) (/ (* (/ (/ y z) (+ 1.0 z)) x) z))
(/ (* x y) (* (* z z) (+ z 1.0))))