\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\begin{array}{l}
\mathbf{if}\;U \le -3.82104511811898944 \cdot 10^{-51} \lor \neg \left(U \le 2.21600549882266798 \cdot 10^{102}\right):\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell}{\frac{Om}{\ell}}\right) - \left(\left(\left(\sqrt[3]{n} \cdot \sqrt[3]{n}\right) \cdot \left(\sqrt[3]{n} \cdot {\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)}\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)}\right) \cdot \left(U - U*\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(\left(t - 2 \cdot \frac{\ell}{\frac{Om}{\ell}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)}\right) \cdot \left({\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)} \cdot \left(U - U*\right)\right)\right)\right)}\\
\end{array}double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
double code(double n, double U, double t, double l, double Om, double U_42_) {
double temp;
if (((U <= -3.8210451181189894e-51) || !(U <= 2.216005498822668e+102))) {
temp = sqrt((((2.0 * n) * U) * ((t - (2.0 * (l / (Om / l)))) - ((((cbrt(n) * cbrt(n)) * (cbrt(n) * pow((l / Om), (2.0 / 2.0)))) * pow((l / Om), (2.0 / 2.0))) * (U - U_42_)))));
} else {
temp = sqrt(((2.0 * n) * (U * ((t - (2.0 * (l / (Om / l)))) - ((n * pow((l / Om), (2.0 / 2.0))) * (pow((l / Om), (2.0 / 2.0)) * (U - U_42_)))))));
}
return temp;
}



Bits error versus n



Bits error versus U



Bits error versus t



Bits error versus l



Bits error versus Om



Bits error versus U*
Results
if U < -3.8210451181189894e-51 or 2.216005498822668e+102 < U Initial program 29.8
rmApplied associate-/l*26.6
rmApplied sqr-pow26.6
Applied associate-*r*26.0
rmApplied add-cube-cbrt26.0
Applied associate-*l*26.0
if -3.8210451181189894e-51 < U < 2.216005498822668e+102Initial program 37.2
rmApplied associate-/l*34.6
rmApplied sqr-pow34.6
Applied associate-*r*33.7
rmApplied associate-*l*33.1
rmApplied associate-*l*29.5
Final simplification28.3
herbie shell --seed 2020053
(FPCore (n U t l Om U*)
:name "Toniolo and Linder, Equation (13)"
:precision binary64
(sqrt (* (* (* 2 n) U) (- (- t (* 2 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2)) (- U U*))))))