\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 \leq -1.6871124400902934 \cdot 10^{+125} \lor \neg \left(U \leq 7.326913697535261 \cdot 10^{+45}\right):\\
\;\;\;\;\sqrt{\left(U \cdot \left(2 \cdot n\right)\right) \cdot \left(t + \frac{\ell}{Om} \cdot \left(\ell \cdot -2 - \left(n \cdot \frac{\ell}{Om}\right) \cdot \left(U - U*\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{\ell}{Om} \cdot \left(\ell \cdot -2 - \left(n \cdot \frac{\ell}{Om}\right) \cdot \left(U - U*\right)\right)\right)\right)}\\
\end{array}(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
(FPCore (n U t l Om U*)
:precision binary64
(if (or (<= U -1.6871124400902934e+125) (not (<= U 7.326913697535261e+45)))
(sqrt
(*
(* U (* 2.0 n))
(+ t (* (/ l Om) (- (* l -2.0) (* (* n (/ l Om)) (- U U*)))))))
(sqrt
(*
(* 2.0 n)
(* U (+ t (* (/ l Om) (- (* l -2.0) (* (* n (/ l Om)) (- U U*))))))))))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 tmp;
if ((U <= -1.6871124400902934e+125) || !(U <= 7.326913697535261e+45)) {
tmp = sqrt((U * (2.0 * n)) * (t + ((l / Om) * ((l * -2.0) - ((n * (l / Om)) * (U - U_42_))))));
} else {
tmp = sqrt((2.0 * n) * (U * (t + ((l / Om) * ((l * -2.0) - ((n * (l / Om)) * (U - U_42_)))))));
}
return tmp;
}



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 < -1.68711e125 or 7.32684e45 < U Initial program 29.7
Simplified27.1
rmApplied associate-*r*_binary6426.1
if -1.68711e125 < U < 7.32684e45Initial program 35.3
Simplified31.4
rmApplied associate-*r*_binary6431.3
rmApplied associate-*l*_binary6428.3
Final simplification27.8
herbie shell --seed 2020231
(FPCore (n U t l Om U*)
:name "Toniolo and Linder, Equation (13)"
:precision binary64
(sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))