c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\begin{array}{l}
\mathbf{if}\;V \cdot \ell \le 0.0:\\
\;\;\;\;c0 \cdot \sqrt{\frac{\sqrt[3]{A} \cdot \sqrt[3]{A}}{V} \cdot \frac{\sqrt[3]{A}}{\ell}}\\
\mathbf{elif}\;V \cdot \ell \le 4.92760119783052435 \cdot 10^{240}:\\
\;\;\;\;\frac{c0 \cdot \sqrt{A}}{\sqrt{V \cdot \ell}}\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\
\end{array}double code(double c0, double A, double V, double l) {
return (c0 * sqrt((A / (V * l))));
}
double code(double c0, double A, double V, double l) {
double temp;
if (((V * l) <= 0.0)) {
temp = (c0 * sqrt((((cbrt(A) * cbrt(A)) / V) * (cbrt(A) / l))));
} else {
double temp_1;
if (((V * l) <= 4.927601197830524e+240)) {
temp_1 = ((c0 * sqrt(A)) / sqrt((V * l)));
} else {
temp_1 = (c0 * sqrt(((A / l) / V)));
}
temp = temp_1;
}
return temp;
}



Bits error versus c0



Bits error versus A



Bits error versus V



Bits error versus l
Results
if (* V l) < 0.0Initial program 23.3
rmApplied add-cube-cbrt23.6
Applied times-frac19.9
if 0.0 < (* V l) < 4.927601197830524e+240Initial program 10.0
rmApplied sqrt-div0.7
Applied associate-*r/3.4
if 4.927601197830524e+240 < (* V l) Initial program 35.1
rmApplied add-cube-cbrt35.2
Applied times-frac22.5
rmApplied associate-*l/22.6
Simplified22.4
Final simplification14.3
herbie shell --seed 2020066
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))