\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 -1.0947836772367752 \cdot 10^{-145} \lor \neg \left(t \le 1.2028965794189301 \cdot 10^{-155}\right):\\
\;\;\;\;\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 \left(\left(\frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\sqrt[3]{\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)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{-\left(2 \cdot \left({\left(\frac{1}{{-1}^{3}}\right)}^{1} \cdot \frac{{\left(\sqrt[3]{-1}\right)}^{6} \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{t \cdot \left({k}^{2} \cdot {\left(\sin k\right)}^{2}\right)}{\cos k \cdot {\ell}^{2}}\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 <= -1.0947836772367752e-145) || !(t <= 1.20289657941893e-155))) {
temp = (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 {
temp = (2.0 / -((2.0 * (pow((1.0 / pow(-1.0, 3.0)), 1.0) * ((pow(cbrt(-1.0), 6.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))))));
}
return temp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -1.0947836772367752e-145 or 1.20289657941893e-155 < t Initial program 25.6
rmApplied add-cube-cbrt25.8
Applied unpow-prod-down25.8
Applied times-frac18.1
Applied associate-*l*15.9
rmApplied add-cube-cbrt16.0
Applied sqr-pow16.0
Applied times-frac11.4
rmApplied associate-*l*10.4
rmApplied associate-*l*8.4
if -1.0947836772367752e-145 < t < 1.20289657941893e-155Initial program 64.0
rmApplied add-cube-cbrt64.0
Applied unpow-prod-down64.0
Applied times-frac62.0
Applied associate-*l*62.0
rmApplied add-cube-cbrt62.0
Applied sqr-pow62.0
Applied times-frac50.7
Taylor expanded around -inf 39.8
Final simplification13.8
herbie shell --seed 2020066
(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))))