\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}\;\ell \le -2.5232769949611197 \cdot 10^{129}:\\
\;\;\;\;\frac{2}{\left(\left(\left({\left(\sqrt[3]{t}\right)}^{3} \cdot \frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell}\right) \cdot \left(\frac{{t}^{\left(\frac{1}{3} \cdot 3\right)}}{\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}\;\ell \le -1.0367076514937989 \cdot 10^{-160}:\\
\;\;\;\;\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{elif}\;\ell \le 4.91740638561390836 \cdot 10^{-88}:\\
\;\;\;\;\frac{2}{\left({\left(\sqrt[3]{t}\right)}^{3} \cdot \frac{{\left(\sqrt[3]{t}\right)}^{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}\;\ell \le 3.35902858881991263 \cdot 10^{118}:\\
\;\;\;\;\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(\sqrt[3]{t}\right)}^{3} \cdot \frac{{\left(\sqrt[3]{t}\right)}^{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 ((l <= -2.5232769949611197e+129)) {
VAR = (2.0 / ((((pow(cbrt(t), 3.0) * (pow(cbrt(t), 3.0) / l)) * ((pow(t, (0.3333333333333333 * 3.0)) / l) * sin(k))) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0)));
} else {
double VAR_1;
if ((l <= -1.0367076514937989e-160)) {
VAR_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 {
double VAR_2;
if ((l <= 4.9174063856139084e-88)) {
VAR_2 = (2.0 / ((pow(cbrt(t), 3.0) * (pow(cbrt(t), 3.0) / 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 ((l <= 3.3590285888199126e+118)) {
VAR_3 = (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_3 = (2.0 / ((pow(cbrt(t), 3.0) * (pow(cbrt(t), 3.0) / l)) * (((pow(cbrt(t), 3.0) / l) * sin(k)) * (tan(k) * ((1.0 + pow((k / t), 2.0)) + 1.0)))));
}
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 l < -2.5232769949611197e+129Initial program 59.7
rmApplied add-cube-cbrt59.7
Applied unpow-prod-down59.7
Applied times-frac42.4
Applied associate-*l*42.4
rmApplied *-un-lft-identity42.4
Applied unpow-prod-down42.4
Applied times-frac25.4
Simplified25.4
rmApplied pow1/346.7
Applied pow-pow25.2
if -2.5232769949611197e+129 < l < -1.0367076514937989e-160Initial program 25.7
Taylor expanded around -inf 18.0
if -1.0367076514937989e-160 < l < 4.9174063856139084e-88 or 3.3590285888199126e+118 < l Initial program 32.3
rmApplied add-cube-cbrt32.4
Applied unpow-prod-down32.4
Applied times-frac23.7
Applied associate-*l*21.5
rmApplied *-un-lft-identity21.5
Applied unpow-prod-down21.5
Applied times-frac14.3
Simplified14.3
rmApplied associate-*l*13.9
rmApplied associate-*l*13.5
if 4.9174063856139084e-88 < l < 3.3590285888199126e+118Initial program 26.0
rmApplied add-cube-cbrt26.3
Applied unpow-prod-down26.3
Applied times-frac23.3
Applied associate-*l*21.8
Taylor expanded around -inf 19.1
Final simplification16.8
herbie shell --seed 2020100
(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))))