\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}\begin{array}{l}
\mathbf{if}\;k \le -5.71240151429869033 \cdot 10^{159}:\\
\;\;\;\;\frac{2}{\left(\frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell}}\right) \cdot \left(\left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k\right) \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)}\\
\mathbf{elif}\;k \le -9.7473637556821307 \cdot 10^{-26}:\\
\;\;\;\;\frac{2}{\mathsf{fma}\left(2, {\left(\frac{1}{{-1}^{3}}\right)}^{1} \cdot \frac{{\left(\sqrt[3]{-1}\right)}^{9} \cdot \left({t}^{3} \cdot {\left(\sin k\right)}^{2}\right)}{\cos k \cdot {\ell}^{2}}, {\left(\frac{1}{{-1}^{3}}\right)}^{1} \cdot \frac{{\left(\sqrt[3]{-1}\right)}^{9} \cdot \left({\left(\sin k\right)}^{2} \cdot \left({k}^{2} \cdot t\right)\right)}{\cos k \cdot {\ell}^{2}}\right)}\\
\mathbf{elif}\;k \le -4.55098416660800201 \cdot 10^{-183}:\\
\;\;\;\;\frac{2}{\left(\frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell}}\right) \cdot \left(\left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k\right) \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)}\\
\mathbf{elif}\;k \le 5.16616581327173723 \cdot 10^{-107}:\\
\;\;\;\;\frac{\sqrt{2}}{\left(\left(\frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell}}\right) \cdot \left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k\right)\right) \cdot \tan k} \cdot \frac{\sqrt{2}}{\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1}\\
\mathbf{elif}\;k \le 3.8900892684683303 \cdot 10^{36}:\\
\;\;\;\;\frac{2}{\left(\frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell}}\right) \cdot \left(\left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k\right) \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)}\\
\mathbf{elif}\;k \le 1.8346047238911825 \cdot 10^{113}:\\
\;\;\;\;\frac{2}{\mathsf{fma}\left(2, \frac{{t}^{3} \cdot {\left(\sin k\right)}^{2}}{\cos k \cdot {\ell}^{2}}, \frac{{k}^{2} \cdot \left(t \cdot {\left(\sin k\right)}^{2}\right)}{\cos k \cdot {\ell}^{2}}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\ell}}\right) \cdot \left(\left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k\right) \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)}\\
\end{array}double code(double t, double l, double k) {
return (2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0)));
}
double code(double t, double l, double k) {
double VAR;
if ((k <= -5.71240151429869e+159)) {
VAR = (2.0 / (((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / (cbrt(l) * cbrt(l))) * (pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / cbrt(l))) * (((pow(cbrt(t), 3.0) / l) * sin(k)) * (tan(k) * ((1.0 + pow((k / t), 2.0)) + 1.0)))));
} else {
double VAR_1;
if ((k <= -9.747363755682131e-26)) {
VAR_1 = (2.0 / fma(2.0, (pow((1.0 / pow(-1.0, 3.0)), 1.0) * ((pow(cbrt(-1.0), 9.0) * (pow(t, 3.0) * pow(sin(k), 2.0))) / (cos(k) * pow(l, 2.0)))), (pow((1.0 / pow(-1.0, 3.0)), 1.0) * ((pow(cbrt(-1.0), 9.0) * (pow(sin(k), 2.0) * (pow(k, 2.0) * t))) / (cos(k) * pow(l, 2.0))))));
} else {
double VAR_2;
if ((k <= -4.550984166608002e-183)) {
VAR_2 = (2.0 / (((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / (cbrt(l) * cbrt(l))) * (pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / cbrt(l))) * (((pow(cbrt(t), 3.0) / l) * sin(k)) * (tan(k) * ((1.0 + pow((k / t), 2.0)) + 1.0)))));
} else {
double VAR_3;
if ((k <= 5.166165813271737e-107)) {
VAR_3 = ((sqrt(2.0) / ((((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / (cbrt(l) * cbrt(l))) * (pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / cbrt(l))) * ((pow(cbrt(t), 3.0) / l) * sin(k))) * tan(k))) * (sqrt(2.0) / ((1.0 + pow((k / t), 2.0)) + 1.0)));
} else {
double VAR_4;
if ((k <= 3.89008926846833e+36)) {
VAR_4 = (2.0 / (((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / (cbrt(l) * cbrt(l))) * (pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / cbrt(l))) * (((pow(cbrt(t), 3.0) / l) * sin(k)) * (tan(k) * ((1.0 + pow((k / t), 2.0)) + 1.0)))));
} else {
double VAR_5;
if ((k <= 1.8346047238911825e+113)) {
VAR_5 = (2.0 / fma(2.0, ((pow(t, 3.0) * pow(sin(k), 2.0)) / (cos(k) * pow(l, 2.0))), ((pow(k, 2.0) * (t * pow(sin(k), 2.0))) / (cos(k) * pow(l, 2.0)))));
} else {
VAR_5 = (2.0 / (((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / (cbrt(l) * cbrt(l))) * (pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / cbrt(l))) * (((pow(cbrt(t), 3.0) / l) * sin(k)) * (tan(k) * ((1.0 + pow((k / t), 2.0)) + 1.0)))));
}
VAR_4 = VAR_5;
}
VAR_3 = VAR_4;
}
VAR_2 = VAR_3;
}
VAR_1 = VAR_2;
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if k < -5.71240151429869e+159 or -9.747363755682131e-26 < k < -4.550984166608002e-183 or 5.166165813271737e-107 < k < 3.89008926846833e+36 or 1.8346047238911825e+113 < k Initial program 30.5
rmApplied add-cube-cbrt30.7
Applied unpow-prod-down30.7
Applied times-frac23.8
Applied associate-*l*23.2
rmApplied add-cube-cbrt23.2
Applied sqr-pow23.2
Applied times-frac17.7
rmApplied associate-*l*17.3
rmApplied associate-*l*15.4
if -5.71240151429869e+159 < k < -9.747363755682131e-26Initial program 31.7
rmApplied add-cube-cbrt31.8
Applied unpow-prod-down31.8
Applied times-frac23.5
Applied associate-*l*23.5
Taylor expanded around -inf 19.3
Simplified19.3
if -4.550984166608002e-183 < k < 5.166165813271737e-107Initial program 35.3
rmApplied add-cube-cbrt35.5
Applied unpow-prod-down35.5
Applied times-frac31.3
Applied associate-*l*23.6
rmApplied add-cube-cbrt23.6
Applied sqr-pow23.6
Applied times-frac17.8
rmApplied add-sqr-sqrt17.8
Applied times-frac17.9
if 3.89008926846833e+36 < k < 1.8346047238911825e+113Initial program 28.2
Taylor expanded around inf 15.8
Simplified15.8
Final simplification16.5
herbie shell --seed 2020079 +o rules:numerics
(FPCore (t l k)
:name "Toniolo and Linder, Equation (10+)"
:precision binary64
(/ 2 (* (* (* (/ (pow t 3) (* l l)) (sin k)) (tan k)) (+ (+ 1 (pow (/ k t) 2)) 1))))