c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\begin{array}{l}
\mathbf{if}\;V \cdot \ell \le -1.1138505052891914 \cdot 10^{289}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\
\mathbf{elif}\;V \cdot \ell \le -4.1616449878 \cdot 10^{-315}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{\left(A \cdot \left(\sqrt[3]{1} \cdot \sqrt[3]{\frac{1}{V \cdot \ell}}\right)\right) \cdot \sqrt[3]{1}}}{\left|\sqrt[3]{V \cdot \ell}\right|}\\
\mathbf{elif}\;V \cdot \ell \le 8.6598838 \cdot 10^{-319}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{A}{V} \cdot \frac{1}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\
\end{array}double code(double c0, double A, double V, double l) {
return ((double) (c0 * ((double) sqrt(((double) (A / ((double) (V * l))))))));
}
double code(double c0, double A, double V, double l) {
double VAR;
if ((((double) (V * l)) <= -1.1138505052891914e+289)) {
VAR = ((double) (c0 * ((double) sqrt(((double) (((double) (A / l)) / V))))));
} else {
double VAR_1;
if ((((double) (V * l)) <= -4.1616449878208e-315)) {
VAR_1 = ((double) (c0 * ((double) (((double) sqrt(((double) (((double) (A * ((double) (((double) cbrt(1.0)) * ((double) cbrt(((double) (1.0 / ((double) (V * l)))))))))) * ((double) cbrt(1.0)))))) / ((double) fabs(((double) cbrt(((double) (V * l))))))))));
} else {
double VAR_2;
if ((((double) (V * l)) <= 8.6598838271762e-319)) {
VAR_2 = ((double) (c0 * ((double) sqrt(((double) (((double) (A / V)) * ((double) (1.0 / l))))))));
} else {
VAR_2 = ((double) (c0 * ((double) (((double) sqrt(A)) / ((double) sqrt(((double) (V * l))))))));
}
VAR_1 = VAR_2;
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus c0



Bits error versus A



Bits error versus V



Bits error versus l
Results
if (* V l) < -1.1138505052891914e289Initial program 40.2
rmApplied div-inv40.2
rmApplied *-un-lft-identity40.2
Applied times-frac38.6
Applied associate-*r*22.5
Simplified22.5
rmApplied associate-*l/22.5
Simplified22.5
if -1.1138505052891914e289 < (* V l) < -4.1616449878e-315Initial program 9.7
rmApplied div-inv9.9
rmApplied add-cube-cbrt10.3
Applied associate-*r*10.3
rmApplied cbrt-div10.2
Applied cbrt-div10.2
Applied associate-*r/10.2
Applied associate-*r/10.2
Applied frac-times10.2
Applied sqrt-div3.8
Simplified3.8
Simplified3.8
if -4.1616449878e-315 < (* V l) < 8.6598838e-319Initial program 63.1
rmApplied div-inv64.0
rmApplied *-un-lft-identity64.0
Applied times-frac64.0
Applied associate-*r*39.5
Simplified39.5
if 8.6598838e-319 < (* V l) Initial program 15.0
rmApplied sqrt-div6.7
Final simplification9.6
herbie shell --seed 2020175
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))