\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 \cdot \ell \le 9.9470297795445965 \cdot 10^{-264}:\\
\;\;\;\;\frac{2}{\left(\left(\left({\left(\sqrt[3]{t}\right)}^{3} \cdot \frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell}\right) \cdot \left({\left({t}^{1}\right)}^{1} \cdot \frac{\sin k}{\ell}\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}\\
\mathbf{elif}\;\ell \cdot \ell \le 5.3780304422650812 \cdot 10^{-244}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2} \cdot \left(t \cdot {\left(\sin k\right)}^{2}\right)}{\cos k \cdot {\ell}^{2}} + 2 \cdot \frac{{t}^{3} \cdot {\left(\sin k\right)}^{2}}{\cos k \cdot {\ell}^{2}}}\\
\mathbf{elif}\;\ell \cdot \ell \le 9.816394660137228 \cdot 10^{-177}:\\
\;\;\;\;\frac{2}{\left(\left(\left({\left({t}^{2}\right)}^{1} \cdot \frac{1}{\ell}\right) \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}\;\ell \cdot \ell \le 2.9646084215984668 \cdot 10^{-73}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2} \cdot \left(t \cdot {\left(\sin k\right)}^{2}\right)}{\cos k \cdot {\ell}^{2}} + 2 \cdot \frac{{t}^{3} \cdot {\left(\sin k\right)}^{2}}{\cos k \cdot {\ell}^{2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\left(\left(\sqrt[3]{\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1} \cdot \sqrt[3]{\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1}\right) \cdot \left(\left({\left(\sqrt[3]{\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k}\right)}^{3} \cdot {\left(\sqrt[3]{t}\right)}^{3}\right) \cdot \frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell}\right)\right) \cdot \tan k\right) \cdot \sqrt[3]{\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1}}\\
\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 * l) <= 9.947029779544597e-264)) {
VAR = (2.0 / ((((pow(cbrt(t), 3.0) * (pow(cbrt(t), 3.0) / l)) * (pow(pow(t, 1.0), 1.0) * (sin(k) / l))) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0)));
} else {
double VAR_1;
if (((l * l) <= 5.378030442265081e-244)) {
VAR_1 = (2.0 / (((pow(k, 2.0) * (t * pow(sin(k), 2.0))) / (cos(k) * pow(l, 2.0))) + (2.0 * ((pow(t, 3.0) * pow(sin(k), 2.0)) / (cos(k) * pow(l, 2.0))))));
} else {
double VAR_2;
if (((l * l) <= 9.816394660137228e-177)) {
VAR_2 = (2.0 / ((((pow(pow(t, 2.0), 1.0) * (1.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 * l) <= 2.964608421598467e-73)) {
VAR_3 = (2.0 / (((pow(k, 2.0) * (t * pow(sin(k), 2.0))) / (cos(k) * pow(l, 2.0))) + (2.0 * ((pow(t, 3.0) * pow(sin(k), 2.0)) / (cos(k) * pow(l, 2.0))))));
} else {
VAR_3 = (2.0 / ((((cbrt(((1.0 + pow((k / t), 2.0)) + 1.0)) * cbrt(((1.0 + pow((k / t), 2.0)) + 1.0))) * ((pow(cbrt(((pow(cbrt(t), 3.0) / l) * sin(k))), 3.0) * pow(cbrt(t), 3.0)) * (pow(cbrt(t), 3.0) / l))) * tan(k)) * cbrt(((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 l) < 9.947029779544597e-264Initial program 24.9
rmApplied add-cube-cbrt25.0
Applied unpow-prod-down25.0
Applied times-frac18.2
Applied associate-*l*15.6
rmApplied *-un-lft-identity15.6
Applied unpow-prod-down15.6
Applied times-frac10.3
Simplified10.3
Taylor expanded around inf 10.2
if 9.947029779544597e-264 < (* l l) < 5.378030442265081e-244 or 9.816394660137228e-177 < (* l l) < 2.964608421598467e-73Initial program 22.6
Taylor expanded around inf 14.6
if 5.378030442265081e-244 < (* l l) < 9.816394660137228e-177Initial program 21.5
rmApplied add-cube-cbrt21.8
Applied unpow-prod-down21.8
Applied times-frac18.7
Applied associate-*l*16.3
Taylor expanded around 0 16.1
if 2.964608421598467e-73 < (* l l) Initial program 41.9
rmApplied add-cube-cbrt42.1
Applied unpow-prod-down42.1
Applied times-frac33.1
Applied associate-*l*32.2
rmApplied *-un-lft-identity32.2
Applied unpow-prod-down32.2
Applied times-frac24.6
Simplified24.6
rmApplied add-cube-cbrt24.6
rmApplied add-cube-cbrt24.6
Applied associate-*r*24.7
Simplified22.8
Final simplification17.0
herbie shell --seed 2020091
(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))))