\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 -8.728822343383789 \cdot 10^{+226}:\\
\;\;\;\;-t_1\\
\mathbf{elif}\;\ell \leq 7.905522743726848 \cdot 10^{+231}:\\
\;\;\;\;\sqrt{{\left(\sqrt[3]{n \cdot 2} \cdot \left(\sqrt[3]{U} \cdot \sqrt[3]{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\ell, -2, \left(U* - U\right) \cdot \left(n \cdot \frac{\ell}{Om}\right)\right), t\right)}\right)\right)}^{3}}\\
\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 -8.728822343383789e+226)
(- t_1)
(if (<= l 7.905522743726848e+231)
(sqrt
(pow
(*
(cbrt (* n 2.0))
(*
(cbrt U)
(cbrt (fma (/ l Om) (fma l -2.0 (* (- U* U) (* n (/ l Om)))) t))))
3.0))
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 <= -8.728822343383789e+226) {
tmp = -t_1;
} else if (l <= 7.905522743726848e+231) {
tmp = sqrt(pow((cbrt(n * 2.0) * (cbrt(U) * cbrt(fma((l / Om), fma(l, -2.0, ((U_42_ - U) * (n * (l / Om)))), t)))), 3.0));
} 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 < -8.72882234338378856e226Initial program 64.0
Simplified57.3
Taylor expanded in l around -inf 33.5
Simplified33.5
if -8.72882234338378856e226 < l < 7.90552274372684761e231Initial program 31.6
Simplified28.1
Applied egg28.1
Applied egg28.5
Applied egg28.6
Applied egg24.3
if 7.90552274372684761e231 < l Initial program 64.0
Simplified58.3
Taylor expanded in l around inf 31.6
Simplified31.6
Final simplification25.0
herbie shell --seed 2022125
(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*))))))