\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 -20628.158740343424:\\
\;\;\;\;\sqrt{{\left(\left(\left(2 \cdot n\right) \cdot \left(t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) - \left(-\left(U - U*\right)\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(2 \cdot \frac{2}{2}\right)}\right)\right)\right)\right) \cdot U\right)}^{1}}\\
\mathbf{elif}\;U* \le -4.76646529296008896 \cdot 10^{-280}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) - \left(-\left(U - U*\right)\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(2 \cdot \frac{2}{2}\right)}\right)\right)\right)\right)}\\
\mathbf{elif}\;U* \le 2.59749590331003066 \cdot 10^{-120}:\\
\;\;\;\;\sqrt{{\left(\left(\left(2 \cdot n\right) \cdot \left(t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) - \left(-\left(U - U*\right)\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(2 \cdot \frac{2}{2}\right)}\right)\right)\right)\right) \cdot U\right)}^{1}}\\
\mathbf{elif}\;U* \le 5.75933392999608157 \cdot 10^{-28}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot U} \cdot \sqrt{\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)}\right) \cdot {\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)}\right) \cdot \left(U - U*\right)}\\
\mathbf{elif}\;U* \le 1.4516180238382799 \cdot 10^{124}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(\left(\left(n \cdot {\ell}^{\left(\frac{2}{2}\right)}\right) \cdot {\left(\frac{1}{Om}\right)}^{\left(\frac{2}{2}\right)}\right) \cdot {\left(\frac{\ell}{Om}\right)}^{\left(\frac{2}{2}\right)}\right) \cdot \left(U - U*\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{{\left(\left(\left(2 \cdot n\right) \cdot \left(t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) - \left(-\left(U - U*\right)\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{\left(2 \cdot \frac{2}{2}\right)}\right)\right)\right)\right) \cdot U\right)}^{1}}\\
\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_42_ <= -20628.158740343424)) {
temp = sqrt(pow((((2.0 * n) * (t - ((2.0 * (l * (l / Om))) - (-(U - U_42_) * (n * pow((l / Om), (2.0 * (2.0 / 2.0)))))))) * U), 1.0));
} else {
double temp_1;
if ((U_42_ <= -4.766465292960089e-280)) {
temp_1 = sqrt(((2.0 * n) * (U * (t - ((2.0 * (l * (l / Om))) - (-(U - U_42_) * (n * pow((l / Om), (2.0 * (2.0 / 2.0))))))))));
} else {
double temp_2;
if ((U_42_ <= 2.5974959033100307e-120)) {
temp_2 = sqrt(pow((((2.0 * n) * (t - ((2.0 * (l * (l / Om))) - (-(U - U_42_) * (n * pow((l / Om), (2.0 * (2.0 / 2.0)))))))) * U), 1.0));
} else {
double temp_3;
if ((U_42_ <= 5.759333929996082e-28)) {
temp_3 = (sqrt(((2.0 * n) * U)) * sqrt(((t - (2.0 * (l * (l / Om)))) - (((n * pow((l / Om), (2.0 / 2.0))) * pow((l / Om), (2.0 / 2.0))) * (U - U_42_)))));
} else {
double temp_4;
if ((U_42_ <= 1.4516180238382799e+124)) {
temp_4 = sqrt((((2.0 * n) * U) * ((t - (2.0 * (l * (l / Om)))) - ((((n * pow(l, (2.0 / 2.0))) * pow((1.0 / Om), (2.0 / 2.0))) * pow((l / Om), (2.0 / 2.0))) * (U - U_42_)))));
} else {
temp_4 = sqrt(pow((((2.0 * n) * (t - ((2.0 * (l * (l / Om))) - (-(U - U_42_) * (n * pow((l / Om), (2.0 * (2.0 / 2.0)))))))) * U), 1.0));
}
temp_3 = temp_4;
}
temp_2 = temp_3;
}
temp_1 = temp_2;
}
temp = temp_1;
}
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* < -20628.158740343424 or -4.766465292960089e-280 < U* < 2.5974959033100307e-120 or 1.4516180238382799e+124 < U* Initial program 36.3
rmApplied *-un-lft-identity36.3
Applied times-frac34.1
Simplified34.1
rmApplied sqr-pow34.1
Applied associate-*r*33.0
rmApplied pow133.0
Applied pow133.0
Applied pow133.0
Applied pow133.0
Applied pow-prod-down33.0
Applied pow-prod-down33.0
Applied pow-prod-down33.0
Simplified33.8
if -20628.158740343424 < U* < -4.766465292960089e-280Initial program 32.1
rmApplied *-un-lft-identity32.1
Applied times-frac29.0
Simplified29.0
rmApplied sqr-pow29.0
Applied associate-*r*28.4
rmApplied associate-*l*29.6
Simplified30.7
if 2.5974959033100307e-120 < U* < 5.759333929996082e-28Initial program 35.0
rmApplied *-un-lft-identity35.0
Applied times-frac31.7
Simplified31.7
rmApplied sqr-pow31.7
Applied associate-*r*30.8
rmApplied sqrt-prod42.7
if 5.759333929996082e-28 < U* < 1.4516180238382799e+124Initial program 33.4
rmApplied *-un-lft-identity33.4
Applied times-frac30.5
Simplified30.5
rmApplied sqr-pow30.5
Applied associate-*r*29.3
rmApplied div-inv29.3
Applied unpow-prod-down29.3
Applied associate-*r*30.0
Final simplification33.2
herbie shell --seed 2020049 +o rules:numerics
(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*))))))