c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\begin{array}{l}
\mathbf{if}\;V \cdot \ell \leq -9.424958934095087 \cdot 10^{+230}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{V}}{\ell}}\\
\mathbf{elif}\;V \cdot \ell \leq -3.0883662960163 \cdot 10^{-293}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\\
\mathbf{elif}\;V \cdot \ell \leq 0:\\
\;\;\;\;\left(c0 \cdot \sqrt{\frac{1}{V}}\right) \cdot \sqrt{\frac{A}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\
\end{array}(FPCore (c0 A V l) :precision binary64 (* c0 (sqrt (/ A (* V l)))))
(FPCore (c0 A V l)
:precision binary64
(if (<= (* V l) -9.424958934095087e+230)
(* c0 (sqrt (/ (/ A V) l)))
(if (<= (* V l) -3.0883662960163e-293)
(* c0 (sqrt (/ A (* V l))))
(if (<= (* V l) 0.0)
(* (* c0 (sqrt (/ 1.0 V))) (sqrt (/ A l)))
(* c0 (/ (sqrt A) (sqrt (* V l))))))))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 tmp;
if ((V * l) <= -9.424958934095087e+230) {
tmp = c0 * sqrt((A / V) / l);
} else if ((V * l) <= -3.0883662960163e-293) {
tmp = c0 * sqrt(A / (V * l));
} else if ((V * l) <= 0.0) {
tmp = (c0 * sqrt(1.0 / V)) * sqrt(A / l);
} else {
tmp = c0 * (sqrt(A) / sqrt(V * l));
}
return tmp;
}



Bits error versus c0



Bits error versus A



Bits error versus V



Bits error versus l
Results
if (*.f64 V l) < -9.42495893409508672e230Initial program 34.7
rmApplied associate-/r*_binary64_104522.3
if -9.42495893409508672e230 < (*.f64 V l) < -3.08836629601629975e-293Initial program 9.3
if -3.08836629601629975e-293 < (*.f64 V l) < -0.0Initial program 60.9
rmApplied *-un-lft-identity_binary64_110160.9
Applied times-frac_binary64_110737.3
Applied sqrt-prod_binary64_111741.9
Applied associate-*r*_binary64_104142.2
Simplified42.2
if -0.0 < (*.f64 V l) Initial program 14.5
rmApplied sqrt-div_binary64_11186.6
Final simplification12.6
herbie shell --seed 2020295
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))