\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}
t_1 := \sqrt{n \cdot \left(U \cdot \left(\frac{n \cdot U*}{Om \cdot Om} - \left(\frac{2}{Om} + \frac{n \cdot U}{Om \cdot Om}\right)\right)\right)} \cdot \left(\ell \cdot \sqrt{2}\right)\\
\mathbf{if}\;\ell \leq -1.0705867384987085 \cdot 10^{+171}:\\
\;\;\;\;-t_1\\
\mathbf{elif}\;\ell \leq -4.765493873791625 \cdot 10^{-180}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\ell, -2, \left(U* - U\right) \cdot \frac{n}{\frac{Om}{\ell}}\right), t\right)\right)}\\
\mathbf{elif}\;\ell \leq 1.344976359452591 \cdot 10^{-272}:\\
\;\;\;\;\sqrt{\left(U \cdot \left(n \cdot 2\right)\right) \cdot \left(t + \frac{\ell}{Om} \cdot \mathsf{fma}\left(\ell, -2, \frac{n \cdot \left(\ell \cdot U*\right)}{Om} - \frac{n \cdot \left(\ell \cdot U\right)}{Om}\right)\right)}\\
\mathbf{elif}\;\ell \leq 2.7421380102116284 \cdot 10^{+200}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\ell, -2, \left(U* - U\right) \cdot \left(n \cdot \left(\ell \cdot \frac{1}{Om}\right)\right)\right), t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\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
(let* ((t_1
(*
(sqrt
(*
n
(*
U
(- (/ (* n U*) (* Om Om)) (+ (/ 2.0 Om) (/ (* n U) (* Om Om)))))))
(* l (sqrt 2.0)))))
(if (<= l -1.0705867384987085e+171)
(- t_1)
(if (<= l -4.765493873791625e-180)
(sqrt
(*
(* n 2.0)
(* U (fma (/ l Om) (fma l -2.0 (* (- U* U) (/ n (/ Om l)))) t))))
(if (<= l 1.344976359452591e-272)
(sqrt
(*
(* U (* n 2.0))
(+
t
(*
(/ l Om)
(fma l -2.0 (- (/ (* n (* l U*)) Om) (/ (* n (* l U)) Om)))))))
(if (<= l 2.7421380102116284e+200)
(sqrt
(*
(* n 2.0)
(*
U
(fma
(/ l Om)
(fma l -2.0 (* (- U* U) (* n (* l (/ 1.0 Om)))))
t))))
t_1))))))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 t_1 = sqrt(n * (U * (((n * U_42_) / (Om * Om)) - ((2.0 / Om) + ((n * U) / (Om * Om)))))) * (l * sqrt(2.0));
double tmp;
if (l <= -1.0705867384987085e+171) {
tmp = -t_1;
} else if (l <= -4.765493873791625e-180) {
tmp = sqrt((n * 2.0) * (U * fma((l / Om), fma(l, -2.0, ((U_42_ - U) * (n / (Om / l)))), t)));
} else if (l <= 1.344976359452591e-272) {
tmp = sqrt((U * (n * 2.0)) * (t + ((l / Om) * fma(l, -2.0, (((n * (l * U_42_)) / Om) - ((n * (l * U)) / Om))))));
} else if (l <= 2.7421380102116284e+200) {
tmp = sqrt((n * 2.0) * (U * fma((l / Om), fma(l, -2.0, ((U_42_ - U) * (n * (l * (1.0 / Om))))), t)));
} else {
tmp = t_1;
}
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*
if l < -1.0705867384987085e171Initial program 64.0
Simplified48.7
Taylor expanded in l around -inf 32.9
Simplified32.9
if -1.0705867384987085e171 < l < -4.7654938737916248e-180Initial program 31.6
Simplified28.6
Applied associate-*l*_binary6427.9
Simplified28.7
Applied associate-/l*_binary6427.9
if -4.7654938737916248e-180 < l < 1.34497635945259093e-272Initial program 24.5
Simplified23.6
Taylor expanded in U* around 0 24.0
if 1.34497635945259093e-272 < l < 2.74213801021162836e200Initial program 30.7
Simplified27.3
Applied associate-*l*_binary6426.9
Simplified27.8
Applied div-inv_binary6427.8
Applied associate-*l*_binary6426.9
if 2.74213801021162836e200 < l Initial program 64.0
Simplified54.3
Taylor expanded in l around inf 33.4
Simplified33.4
Final simplification27.5
herbie shell --seed 2022005
(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*))))))