c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\begin{array}{l}
\mathbf{if}\;V \cdot \ell \leq -\infty:\\
\;\;\;\;c0 \cdot \sqrt{\frac{1}{V} \cdot \frac{A}{\ell}}\\
\mathbf{elif}\;V \cdot \ell \leq -4.0316195450836665 \cdot 10^{-72}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\\
\mathbf{elif}\;V \cdot \ell \leq 4.2481508027014795 \cdot 10^{-283}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{1}{V} \cdot \frac{A}{\ell}}\\
\mathbf{elif}\;V \cdot \ell \leq 1.4847817159190444 \cdot 10^{+237}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{V}}{\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) (- INFINITY))
(* c0 (sqrt (* (/ 1.0 V) (/ A l))))
(if (<= (* V l) -4.0316195450836665e-72)
(* c0 (sqrt (/ A (* V l))))
(if (<= (* V l) 4.2481508027014795e-283)
(* c0 (sqrt (* (/ 1.0 V) (/ A l))))
(if (<= (* V l) 1.4847817159190444e+237)
(* c0 (/ (sqrt A) (sqrt (* V l))))
(* c0 (sqrt (/ (/ A 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) <= -((double) INFINITY)) {
tmp = c0 * sqrt((1.0 / V) * (A / l));
} else if ((V * l) <= -4.0316195450836665e-72) {
tmp = c0 * sqrt(A / (V * l));
} else if ((V * l) <= 4.2481508027014795e-283) {
tmp = c0 * sqrt((1.0 / V) * (A / l));
} else if ((V * l) <= 1.4847817159190444e+237) {
tmp = c0 * (sqrt(A) / sqrt(V * l));
} else {
tmp = c0 * sqrt((A / 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) < -inf.0 or -4.0316195450836665e-72 < (*.f64 V l) < 4.2481508027014795e-283Initial program 37.1
rmApplied *-un-lft-identity_binary6437.1
Applied times-frac_binary6427.2
if -inf.0 < (*.f64 V l) < -4.0316195450836665e-72Initial program 7.7
rmApplied *-commutative_binary647.7
if 4.2481508027014795e-283 < (*.f64 V l) < 1.48478171591904443e237Initial program 9.1
rmApplied sqrt-div_binary640.4
if 1.48478171591904443e237 < (*.f64 V l) Initial program 33.3
rmApplied associate-/r*_binary6421.8
Final simplification12.6
herbie shell --seed 2021168
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))