c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\begin{array}{l}
\mathbf{if}\;V \cdot \ell \le -8.3845321407732062 \cdot 10^{186}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{1}{V} \cdot \frac{A}{\ell}}\\
\mathbf{elif}\;V \cdot \ell \le -2.6496509911402419 \cdot 10^{-254}:\\
\;\;\;\;\sqrt{\frac{A}{V \cdot \ell}} \cdot c0\\
\mathbf{elif}\;V \cdot \ell \le 6.8556055 \cdot 10^{-319}:\\
\;\;\;\;\left(\left|\frac{\sqrt[3]{A}}{{V}^{\frac{1}{2}}}\right| \cdot \sqrt{\frac{\sqrt[3]{A}}{\ell}}\right) \cdot c0\\
\mathbf{elif}\;V \cdot \ell \le 1.09163379013158326 \cdot 10^{285}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\
\mathbf{else}:\\
\;\;\;\;\left(c0 \cdot \sqrt{\sqrt{\frac{1}{V} \cdot \frac{A}{\ell}}}\right) \cdot \sqrt{\sqrt{\left(\sqrt[3]{\frac{1}{V} \cdot \frac{A}{\ell}} \cdot \sqrt[3]{\frac{1}{V} \cdot \frac{A}{\ell}}\right) \cdot \sqrt[3]{\frac{1}{V} \cdot \frac{A}{\ell}}}}\\
\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) <= -8.384532140773206e+186)) {
temp = (c0 * sqrt(((1.0 / V) * (A / l))));
} else {
double temp_1;
if (((V * l) <= -2.649650991140242e-254)) {
temp_1 = (sqrt((A / (V * l))) * c0);
} else {
double temp_2;
if (((V * l) <= 6.8556054951286e-319)) {
temp_2 = ((fabs((cbrt(A) / pow(V, 0.5))) * sqrt((cbrt(A) / l))) * c0);
} else {
double temp_3;
if (((V * l) <= 1.0916337901315833e+285)) {
temp_3 = (c0 * (sqrt(A) / sqrt((V * l))));
} else {
temp_3 = ((c0 * sqrt(sqrt(((1.0 / V) * (A / l))))) * sqrt(sqrt(((cbrt(((1.0 / V) * (A / l))) * cbrt(((1.0 / V) * (A / l)))) * cbrt(((1.0 / V) * (A / l)))))));
}
temp_2 = temp_3;
}
temp_1 = temp_2;
}
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) < -8.384532140773206e+186Initial program 28.2
rmApplied *-un-lft-identity28.2
Applied times-frac18.8
if -8.384532140773206e+186 < (* V l) < -2.649650991140242e-254Initial program 7.9
rmApplied *-commutative7.9
if -2.649650991140242e-254 < (* V l) < 6.8556054951286e-319Initial program 56.1
rmApplied *-commutative56.1
rmApplied add-cube-cbrt56.2
Applied times-frac35.8
Applied sqrt-prod39.3
Simplified35.9
if 6.8556054951286e-319 < (* V l) < 1.0916337901315833e+285Initial program 9.5
rmApplied *-un-lft-identity9.5
Applied times-frac15.7
rmApplied frac-times9.5
Applied sqrt-div0.5
Simplified0.5
if 1.0916337901315833e+285 < (* V l) Initial program 39.8
rmApplied *-un-lft-identity39.8
Applied times-frac21.9
rmApplied add-sqr-sqrt22.1
Applied associate-*r*22.1
rmApplied add-cube-cbrt22.1
Final simplification11.0
herbie shell --seed 2020058 +o rules:numerics
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))