\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 -3.52399151005714026 \cdot 10^{-147}:\\
\;\;\;\;\frac{\sqrt{2}}{\frac{\left(\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(\left(\sqrt[3]{\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k} \cdot \sqrt[3]{\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k}\right) \cdot \sqrt[3]{\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)}{\sqrt{2}}}\\
\mathbf{elif}\;t \le 3.991291502179229 \cdot 10^{-11}:\\
\;\;\;\;\frac{2}{2 \cdot \left({\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}}\right) + {\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}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\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]{\sqrt{t}}\right)}^{3}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \left(\frac{{\left(\sqrt[3]{\sqrt{t}}\right)}^{3}}{\sqrt[3]{\ell}} \cdot \sin k\right)\right)\right) \cdot \tan k\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 VAR;
if ((t <= -3.52399151005714e-147)) {
VAR = (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))) * ((cbrt(((pow(cbrt(t), 3.0) / l) * sin(k))) * cbrt(((pow(cbrt(t), 3.0) / l) * sin(k)))) * cbrt(((pow(cbrt(t), 3.0) / l) * sin(k))))) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0)) / sqrt(2.0)));
} else {
double VAR_1;
if ((t <= 3.991291502179229e-11)) {
VAR_1 = (2.0 / ((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 {
VAR_1 = (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(sqrt(t)), 3.0) / (cbrt(l) * cbrt(l))) * ((pow(cbrt(sqrt(t)), 3.0) / cbrt(l)) * sin(k)))) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0)));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -3.52399151005714e-147Initial program 26.0
rmApplied add-cube-cbrt26.2
Applied unpow-prod-down26.2
Applied times-frac18.4
Applied associate-*l*16.2
rmApplied add-cube-cbrt16.2
Applied sqr-pow16.2
Applied times-frac11.6
rmApplied add-sqr-sqrt11.6
Applied associate-/l*11.6
rmApplied add-cube-cbrt11.6
if -3.52399151005714e-147 < t < 3.991291502179229e-11Initial program 54.3
rmApplied add-cube-cbrt54.4
Applied unpow-prod-down54.4
Applied times-frac48.2
Applied associate-*l*47.1
Taylor expanded around -inf 37.7
if 3.991291502179229e-11 < t Initial program 21.3
rmApplied add-cube-cbrt21.4
Applied unpow-prod-down21.4
Applied times-frac14.9
Applied associate-*l*13.1
rmApplied add-cube-cbrt13.1
Applied sqr-pow13.1
Applied times-frac8.2
rmApplied add-cube-cbrt8.2
Applied add-sqr-sqrt8.2
Applied cbrt-prod8.2
Applied unpow-prod-down8.2
Applied times-frac8.2
Applied associate-*l*8.2
Final simplification17.4
herbie shell --seed 2020075
(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))))