\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}\;t \leq -9.27291794463707 \cdot 10^{-307}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \left(n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U* - U\right)\right) - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 1.3152323392947841 \cdot 10^{-194}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot U\right)} \cdot \sqrt{t - \left(2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right) + n \cdot \left(\sqrt[3]{U - U*} \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(\sqrt[3]{U - U*} \cdot \sqrt[3]{U - U*}\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 7.158335102890174 \cdot 10^{+73}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \left(n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U* - U\right)\right) - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot U\right)} \cdot \sqrt{t + \left(n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U* - U\right)\right) - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\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 (<= t -9.27291794463707e-307)
(sqrt
(*
(* 2.0 n)
(*
U
(+ t (- (* n (* (pow (/ l Om) 2.0) (- U* U))) (* 2.0 (* l (/ l Om))))))))
(if (<= t 1.3152323392947841e-194)
(*
(sqrt (* 2.0 (* n U)))
(sqrt
(-
t
(+
(* 2.0 (* l (/ l Om)))
(*
n
(*
(cbrt (- U U*))
(* (pow (/ l Om) 2.0) (* (cbrt (- U U*)) (cbrt (- U U*))))))))))
(if (<= t 7.158335102890174e+73)
(sqrt
(*
(* 2.0 n)
(*
U
(+
t
(- (* n (* (pow (/ l Om) 2.0) (- U* U))) (* 2.0 (* l (/ l Om))))))))
(*
(sqrt (* 2.0 (* n U)))
(sqrt
(+
t
(-
(* n (* (pow (/ l Om) 2.0) (- U* U)))
(* 2.0 (* l (/ l Om)))))))))))double code(double n, double U, double t, double l, double Om, double U_42_) {
return ((double) sqrt(((double) (((double) (((double) (2.0 * n)) * U)) * ((double) (((double) (t - ((double) (2.0 * (((double) (l * l)) / Om))))) - ((double) (((double) (n * ((double) pow((l / Om), 2.0)))) * ((double) (U - U_42_))))))))));
}
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((t <= -9.27291794463707e-307)) {
tmp = ((double) sqrt(((double) (((double) (2.0 * n)) * ((double) (U * ((double) (t + ((double) (((double) (n * ((double) (((double) pow((l / Om), 2.0)) * ((double) (U_42_ - U)))))) - ((double) (2.0 * ((double) (l * (l / Om)))))))))))))));
} else {
double tmp_1;
if ((t <= 1.3152323392947841e-194)) {
tmp_1 = ((double) (((double) sqrt(((double) (2.0 * ((double) (n * U)))))) * ((double) sqrt(((double) (t - ((double) (((double) (2.0 * ((double) (l * (l / Om))))) + ((double) (n * ((double) (((double) cbrt(((double) (U - U_42_)))) * ((double) (((double) pow((l / Om), 2.0)) * ((double) (((double) cbrt(((double) (U - U_42_)))) * ((double) cbrt(((double) (U - U_42_))))))))))))))))))));
} else {
double tmp_2;
if ((t <= 7.158335102890174e+73)) {
tmp_2 = ((double) sqrt(((double) (((double) (2.0 * n)) * ((double) (U * ((double) (t + ((double) (((double) (n * ((double) (((double) pow((l / Om), 2.0)) * ((double) (U_42_ - U)))))) - ((double) (2.0 * ((double) (l * (l / Om)))))))))))))));
} else {
tmp_2 = ((double) (((double) sqrt(((double) (2.0 * ((double) (n * U)))))) * ((double) sqrt(((double) (t + ((double) (((double) (n * ((double) (((double) pow((l / Om), 2.0)) * ((double) (U_42_ - U)))))) - ((double) (2.0 * ((double) (l * (l / Om)))))))))))));
}
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*
Results
if t < -9.27291794463706929e-307 or 1.315232339294784e-194 < t < 7.15833510289017356e73Initial program Error: 34.2 bits
rmApplied associate-*l*Error: 34.1 bits
SimplifiedError: 32.0 bits
if -9.27291794463706929e-307 < t < 1.315232339294784e-194Initial program Error: 38.9 bits
rmApplied add-cube-cbrtError: 38.9 bits
Applied associate-*r*Error: 39.0 bits
SimplifiedError: 38.9 bits
rmApplied sqrt-prodError: 38.1 bits
SimplifiedError: 38.1 bits
SimplifiedError: 36.4 bits
if 7.15833510289017356e73 < t Initial program Error: 35.1 bits
rmApplied sqrt-prodError: 27.3 bits
SimplifiedError: 27.3 bits
SimplifiedError: 25.7 bits
Final simplificationError: 31.1 bits
herbie shell --seed 2020204
(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*))))))