\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}\;\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \le 0.0:\\
\;\;\;\;\sqrt{\sqrt{\left(n \cdot \left(\sqrt[3]{\mathsf{fma}\left(U* - U, \frac{\frac{n}{\frac{Om}{\ell}}}{\frac{Om}{\ell}}, \mathsf{fma}\left(-2, \frac{\ell}{\frac{Om}{\ell}}, t\right)\right)} \cdot \left(\sqrt[3]{\mathsf{fma}\left(U* - U, \frac{\frac{n}{\frac{Om}{\ell}}}{\frac{Om}{\ell}}, \mathsf{fma}\left(-2, \frac{\ell}{\frac{Om}{\ell}}, t\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(U* - U, \frac{\frac{n}{\frac{Om}{\ell}}}{\frac{Om}{\ell}}, \mathsf{fma}\left(-2, \frac{\ell}{\frac{Om}{\ell}}, t\right)\right)}\right)\right)\right) \cdot \left(U \cdot 2\right)}} \cdot \sqrt{\sqrt{\left(n \cdot \left(\sqrt[3]{\mathsf{fma}\left(U* - U, \frac{\frac{n}{\frac{Om}{\ell}}}{\frac{Om}{\ell}}, \mathsf{fma}\left(-2, \frac{\ell}{\frac{Om}{\ell}}, t\right)\right)} \cdot \left(\sqrt[3]{\mathsf{fma}\left(U* - U, \frac{\frac{n}{\frac{Om}{\ell}}}{\frac{Om}{\ell}}, \mathsf{fma}\left(-2, \frac{\ell}{\frac{Om}{\ell}}, t\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(U* - U, \frac{\frac{n}{\frac{Om}{\ell}}}{\frac{Om}{\ell}}, \mathsf{fma}\left(-2, \frac{\ell}{\frac{Om}{\ell}}, t\right)\right)}\right)\right)\right) \cdot \left(U \cdot 2\right)}}\\
\mathbf{elif}\;\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \le 8.770828183655835 \cdot 10^{+295}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(U* - U, \frac{\frac{n}{\frac{Om}{\ell}}}{\frac{Om}{\ell}}, \mathsf{fma}\left(-2, \frac{\ell}{\frac{Om}{\ell}}, t\right)\right) \cdot n} \cdot \sqrt{U \cdot 2}\\
\end{array}double f(double n, double U, double t, double l, double Om, double U_) {
double r1952871 = 2.0;
double r1952872 = n;
double r1952873 = r1952871 * r1952872;
double r1952874 = U;
double r1952875 = r1952873 * r1952874;
double r1952876 = t;
double r1952877 = l;
double r1952878 = r1952877 * r1952877;
double r1952879 = Om;
double r1952880 = r1952878 / r1952879;
double r1952881 = r1952871 * r1952880;
double r1952882 = r1952876 - r1952881;
double r1952883 = r1952877 / r1952879;
double r1952884 = pow(r1952883, r1952871);
double r1952885 = r1952872 * r1952884;
double r1952886 = U_;
double r1952887 = r1952874 - r1952886;
double r1952888 = r1952885 * r1952887;
double r1952889 = r1952882 - r1952888;
double r1952890 = r1952875 * r1952889;
double r1952891 = sqrt(r1952890);
return r1952891;
}
double f(double n, double U, double t, double l, double Om, double U_) {
double r1952892 = 2.0;
double r1952893 = n;
double r1952894 = r1952892 * r1952893;
double r1952895 = U;
double r1952896 = r1952894 * r1952895;
double r1952897 = t;
double r1952898 = l;
double r1952899 = r1952898 * r1952898;
double r1952900 = Om;
double r1952901 = r1952899 / r1952900;
double r1952902 = r1952901 * r1952892;
double r1952903 = r1952897 - r1952902;
double r1952904 = r1952898 / r1952900;
double r1952905 = pow(r1952904, r1952892);
double r1952906 = r1952893 * r1952905;
double r1952907 = U_;
double r1952908 = r1952895 - r1952907;
double r1952909 = r1952906 * r1952908;
double r1952910 = r1952903 - r1952909;
double r1952911 = r1952896 * r1952910;
double r1952912 = 0.0;
bool r1952913 = r1952911 <= r1952912;
double r1952914 = r1952907 - r1952895;
double r1952915 = r1952900 / r1952898;
double r1952916 = r1952893 / r1952915;
double r1952917 = r1952916 / r1952915;
double r1952918 = -2.0;
double r1952919 = r1952898 / r1952915;
double r1952920 = fma(r1952918, r1952919, r1952897);
double r1952921 = fma(r1952914, r1952917, r1952920);
double r1952922 = cbrt(r1952921);
double r1952923 = r1952922 * r1952922;
double r1952924 = r1952922 * r1952923;
double r1952925 = r1952893 * r1952924;
double r1952926 = r1952895 * r1952892;
double r1952927 = r1952925 * r1952926;
double r1952928 = sqrt(r1952927);
double r1952929 = sqrt(r1952928);
double r1952930 = r1952929 * r1952929;
double r1952931 = 8.770828183655835e+295;
bool r1952932 = r1952911 <= r1952931;
double r1952933 = sqrt(r1952911);
double r1952934 = r1952921 * r1952893;
double r1952935 = sqrt(r1952934);
double r1952936 = sqrt(r1952926);
double r1952937 = r1952935 * r1952936;
double r1952938 = r1952932 ? r1952933 : r1952937;
double r1952939 = r1952913 ? r1952930 : r1952938;
return r1952939;
}



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 (* (* (* 2 n) U) (- (- t (* 2 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2)) (- U U*)))) < 0.0Initial program 57.5
Simplified37.2
rmApplied add-cube-cbrt37.4
rmApplied add-sqr-sqrt37.4
if 0.0 < (* (* (* 2 n) U) (- (- t (* 2 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2)) (- U U*)))) < 8.770828183655835e+295Initial program 1.9
if 8.770828183655835e+295 < (* (* (* 2 n) U) (- (- t (* 2 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2)) (- U U*)))) Initial program 59.5
Simplified50.5
rmApplied add-cube-cbrt50.6
rmApplied sqrt-prod51.4
Simplified51.4
Final simplification26.6
herbie shell --seed 2019138 +o rules:numerics
(FPCore (n U t l Om U*)
:name "Toniolo and Linder, Equation (13)"
(sqrt (* (* (* 2 n) U) (- (- t (* 2 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2)) (- U U*))))))