c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}
\begin{array}{l}
t_0 := c0 \cdot \frac{\sqrt{\frac{A}{V}}}{\sqrt{\ell}}\\
\mathbf{if}\;V \cdot \ell \leq -4.448709412619901 \cdot 10^{+182}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;V \cdot \ell \leq -3.9825286554761743 \cdot 10^{-56}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\\
\mathbf{elif}\;V \cdot \ell \leq 0:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;c0 \cdot \left(\sqrt{A} \cdot \sqrt{\frac{1}{V \cdot \ell}}\right)\\
\end{array}
(FPCore (c0 A V l) :precision binary64 (* c0 (sqrt (/ A (* V l)))))
(FPCore (c0 A V l)
:precision binary64
(let* ((t_0 (* c0 (/ (sqrt (/ A V)) (sqrt l)))))
(if (<= (* V l) -4.448709412619901e+182)
t_0
(if (<= (* V l) -3.9825286554761743e-56)
(* c0 (sqrt (/ A (* V l))))
(if (<= (* V l) 0.0) t_0 (* c0 (* (sqrt A) (sqrt (/ 1.0 (* 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 t_0 = c0 * (sqrt(A / V) / sqrt(l));
double tmp;
if ((V * l) <= -4.448709412619901e+182) {
tmp = t_0;
} else if ((V * l) <= -3.9825286554761743e-56) {
tmp = c0 * sqrt(A / (V * l));
} else if ((V * l) <= 0.0) {
tmp = t_0;
} else {
tmp = c0 * (sqrt(A) * sqrt(1.0 / (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) < -4.44870941261990077e182 or -3.98252865547617431e-56 < (*.f64 V l) < -0.0Initial program 31.3
Applied add-cube-cbrt_binary6431.5
Applied times-frac_binary6423.1
Applied associate-*r/_binary6423.7
Applied sqrt-div_binary6415.8
Simplified15.5
if -4.44870941261990077e182 < (*.f64 V l) < -3.98252865547617431e-56Initial program 5.3
Applied add-cube-cbrt_binary645.7
Applied times-frac_binary6413.8
Applied *-un-lft-identity_binary6413.8
Applied associate-*l*_binary6413.8
Simplified5.3
if -0.0 < (*.f64 V l) Initial program 15.7
Applied div-inv_binary6415.9
Applied sqrt-prod_binary647.2
Final simplification9.8
herbie shell --seed 2021334
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))