c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\begin{array}{l}
\mathbf{if}\;V \cdot \ell \le -2.1097398257928835 \cdot 10^{184}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{1}{V} \cdot \frac{A}{\ell}}\\
\mathbf{elif}\;V \cdot \ell \le -2.33844682678579 \cdot 10^{-290}:\\
\;\;\;\;\left(c0 \cdot \sqrt{\sqrt{\frac{A}{V \cdot \ell}}}\right) \cdot \sqrt{\sqrt{\frac{A}{V \cdot \ell}}}\\
\mathbf{elif}\;V \cdot \ell \le 1.0367029 \cdot 10^{-318}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{1}{V} \cdot \frac{A}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \left(\sqrt{A} \cdot \sqrt{\frac{1}{V \cdot \ell}}\right)\\
\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 VAR;
if (((V * l) <= -2.1097398257928835e+184)) {
VAR = (c0 * sqrt(((1.0 / V) * (A / l))));
} else {
double VAR_1;
if (((V * l) <= -2.3384468267857903e-290)) {
VAR_1 = ((c0 * sqrt(sqrt((A / (V * l))))) * sqrt(sqrt((A / (V * l)))));
} else {
double VAR_2;
if (((V * l) <= 1.0367028853251e-318)) {
VAR_2 = (c0 * sqrt(((1.0 / V) * (A / l))));
} else {
VAR_2 = (c0 * (sqrt(A) * sqrt((1.0 / (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) < -2.1097398257928835e+184 or -2.3384468267857903e-290 < (* V l) < 1.0367028853251e-318Initial program 40.9
rmApplied *-un-lft-identity40.9
Applied times-frac25.8
if -2.1097398257928835e+184 < (* V l) < -2.3384468267857903e-290Initial program 8.4
rmApplied add-sqr-sqrt8.4
Applied sqrt-prod8.7
Applied associate-*r*8.6
if 1.0367028853251e-318 < (* V l) Initial program 15.0
rmApplied div-inv15.2
Applied sqrt-prod6.8
Final simplification11.6
herbie shell --seed 2020105
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))