\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 -7.803253604088981 \cdot 10^{+181}:\\
\;\;\;\;-t_1\\
\mathbf{else}:\\
\;\;\;\;\begin{array}{l}
t_2 := \mathsf{fma}\left(\ell, -2, \left(U* - U\right) \cdot \left(n \cdot \frac{\ell}{Om}\right)\right)\\
\mathbf{if}\;\ell \leq 3.070934356675914 \cdot 10^{-248}:\\
\;\;\;\;\sqrt{\left(U \cdot \left(n \cdot 2\right)\right) \cdot \left(t + \frac{\ell}{Om} \cdot t_2\right)}\\
\mathbf{else}:\\
\;\;\;\;\begin{array}{l}
t_3 := U \cdot \mathsf{fma}\left(\frac{\ell}{Om}, t_2, t\right)\\
\mathbf{if}\;\ell \leq 4.2440359176280085 \cdot 10^{-208}:\\
\;\;\;\;\sqrt{n \cdot 2} \cdot \sqrt{t_3}\\
\mathbf{elif}\;\ell \leq 8.190127014100475 \cdot 10^{+140}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot t_3\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}\\
\end{array}\\
\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 -7.803253604088981e+181)
(- t_1)
(let* ((t_2 (fma l -2.0 (* (- U* U) (* n (/ l Om))))))
(if (<= l 3.070934356675914e-248)
(sqrt (* (* U (* n 2.0)) (+ t (* (/ l Om) t_2))))
(let* ((t_3 (* U (fma (/ l Om) t_2 t))))
(if (<= l 4.2440359176280085e-208)
(* (sqrt (* n 2.0)) (sqrt t_3))
(if (<= l 8.190127014100475e+140)
(sqrt (* 2.0 (* n t_3)))
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 <= -7.803253604088981e+181) {
tmp = -t_1;
} else {
double t_2 = fma(l, -2.0, ((U_42_ - U) * (n * (l / Om))));
double tmp_1;
if (l <= 3.070934356675914e-248) {
tmp_1 = sqrt((U * (n * 2.0)) * (t + ((l / Om) * t_2)));
} else {
double t_3 = U * fma((l / Om), t_2, t);
double tmp_2;
if (l <= 4.2440359176280085e-208) {
tmp_2 = sqrt(n * 2.0) * sqrt(t_3);
} else if (l <= 8.190127014100475e+140) {
tmp_2 = sqrt(2.0 * (n * t_3));
} else {
tmp_2 = t_1;
}
tmp_1 = tmp_2;
}
tmp = tmp_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 < -7.80325360408898091e181Initial program 64.0
Simplified50.3
Taylor expanded in l around -inf 33.5
Simplified33.5
if -7.80325360408898091e181 < l < 3.07093435667591408e-248Initial program 29.9
Simplified27.4
Applied pow1_binary6427.4
Applied pow1_binary6427.4
Applied pow1_binary6427.4
Applied pow1_binary6427.4
Applied pow-prod-down_binary6427.4
Applied pow-prod-down_binary6427.4
Applied pow-prod-down_binary6427.4
if 3.07093435667591408e-248 < l < 4.24403591762800847e-208Initial program 25.1
Simplified24.4
Applied associate-*l*_binary6422.8
Applied sqrt-prod_binary6435.6
Simplified35.6
Simplified35.6
if 4.24403591762800847e-208 < l < 8.19012701410047463e140Initial program 29.2
Simplified27.8
Applied associate-*l*_binary6427.5
Applied associate-*l*_binary6427.5
Simplified27.5
if 8.19012701410047463e140 < l Initial program 61.4
Simplified47.5
Taylor expanded in l around inf 34.1
Simplified34.1
Final simplification28.8
herbie shell --seed 2022068
(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*))))))