\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}\;t \le -7.3219154401390226 \cdot 10^{-234}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\frac{\ell}{{\left(\sqrt[3]{t}\right)}^{3}}} \cdot \left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}\\
\mathbf{elif}\;t \le 9.31487464079908344 \cdot 10^{-123}:\\
\;\;\;\;\frac{2}{2 \cdot \frac{{t}^{3} \cdot {\left(\sin k\right)}^{2}}{\cos k \cdot {\ell}^{2}} - {\left(\frac{1}{{-1}^{3}}\right)}^{1} \cdot \frac{t \cdot \left({k}^{2} \cdot {\left(\sin k\right)}^{2}\right)}{\cos k \cdot {\ell}^{2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left({\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)} \cdot \left(\left(\frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right)\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\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 temp;
if ((t <= -7.321915440139023e-234)) {
temp = (2.0 / ((((pow(cbrt(t), 3.0) / (l / pow(cbrt(t), 3.0))) * ((pow(cbrt(t), 3.0) / l) * sin(k))) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0)));
} else {
double temp_1;
if ((t <= 9.314874640799083e-123)) {
temp_1 = (2.0 / ((2.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) * ((t * (pow(k, 2.0) * pow(sin(k), 2.0))) / (cos(k) * pow(l, 2.0))))));
} else {
temp_1 = (2.0 / ((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) * (((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / l) * ((pow(cbrt(t), 3.0) / l) * sin(k))) * tan(k))) * ((1.0 + pow((k / t), 2.0)) + 1.0)));
}
temp = temp_1;
}
return temp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -7.321915440139023e-234Initial program 29.1
rmApplied add-cube-cbrt29.3
Applied unpow-prod-down29.3
Applied times-frac22.1
Applied associate-*l*20.1
rmApplied unpow-prod-down20.1
Applied associate-/l*14.8
if -7.321915440139023e-234 < t < 9.314874640799083e-123Initial program 64.0
Taylor expanded around -inf 41.3
if 9.314874640799083e-123 < t Initial program 24.2
rmApplied add-cube-cbrt24.3
Applied unpow-prod-down24.3
Applied times-frac17.8
Applied associate-*l*15.8
rmApplied *-un-lft-identity15.8
Applied sqr-pow15.8
Applied times-frac11.3
Simplified11.3
rmApplied associate-*l*10.6
rmApplied associate-*l*10.6
Final simplification16.7
herbie shell --seed 2020060
(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))))