\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.59468687605592097 \cdot 10^{-87} \lor \neg \left(t \le 1.16374875303792599 \cdot 10^{-223}\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}{\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}}}\\
\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.594686876055921e-87) || !(t <= 1.163748753037926e-223))) {
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 / (((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))))));
}
return temp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -7.594686876055921e-87 or 1.163748753037926e-223 < t Initial program 26.7
rmApplied add-cube-cbrt26.9
Applied unpow-prod-down26.9
Applied times-frac19.7
Applied associate-*l*17.6
rmApplied add-cube-cbrt17.6
Applied sqr-pow17.6
Applied times-frac12.4
rmApplied associate-*l*11.5
rmApplied associate-*l*9.7
if -7.594686876055921e-87 < t < 1.163748753037926e-223Initial program 61.5
Taylor expanded around inf 39.4
Final simplification14.6
herbie shell --seed 2020053
(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))))