\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}\;k \le -7.83518389073447 \cdot 10^{170} \lor \neg \left(k \le 6.69600377793563804 \cdot 10^{153}\right):\\
\;\;\;\;2 \cdot \left(\left({\left(\frac{1}{{k}^{\left(\frac{2}{2}\right)} \cdot \left({k}^{\left(\frac{2}{2}\right)} \cdot {t}^{1}\right)}\right)}^{1} \cdot \frac{\frac{1}{\frac{{\left(\sqrt[3]{\sin k}\right)}^{4}}{\ell}}}{{\left(\sqrt[3]{1}\right)}^{2}}\right) \cdot \frac{\frac{\cos k}{\frac{1}{\ell}}}{{\left(\sqrt[3]{\sin k}\right)}^{2}}\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left({\left(\frac{1}{{k}^{2}}\right)}^{1} \cdot \left({\left(\frac{1}{{t}^{1}}\right)}^{1} \cdot \frac{\frac{1}{\frac{{\left(\sqrt[3]{\sin k}\right)}^{4}}{\ell}}}{{\left(\sqrt[3]{1}\right)}^{2}}\right)\right) \cdot \frac{\frac{\cos k}{\frac{1}{\ell}}}{{\left(\sqrt[3]{\sin k}\right)}^{2}}\right)\\
\end{array}double f(double t, double l, double k) {
double r508704 = 2.0;
double r508705 = t;
double r508706 = 3.0;
double r508707 = pow(r508705, r508706);
double r508708 = l;
double r508709 = r508708 * r508708;
double r508710 = r508707 / r508709;
double r508711 = k;
double r508712 = sin(r508711);
double r508713 = r508710 * r508712;
double r508714 = tan(r508711);
double r508715 = r508713 * r508714;
double r508716 = 1.0;
double r508717 = r508711 / r508705;
double r508718 = pow(r508717, r508704);
double r508719 = r508716 + r508718;
double r508720 = r508719 - r508716;
double r508721 = r508715 * r508720;
double r508722 = r508704 / r508721;
return r508722;
}
double f(double t, double l, double k) {
double r508723 = k;
double r508724 = -7.83518389073447e+170;
bool r508725 = r508723 <= r508724;
double r508726 = 6.696003777935638e+153;
bool r508727 = r508723 <= r508726;
double r508728 = !r508727;
bool r508729 = r508725 || r508728;
double r508730 = 2.0;
double r508731 = 1.0;
double r508732 = 2.0;
double r508733 = r508730 / r508732;
double r508734 = pow(r508723, r508733);
double r508735 = t;
double r508736 = 1.0;
double r508737 = pow(r508735, r508736);
double r508738 = r508734 * r508737;
double r508739 = r508734 * r508738;
double r508740 = r508731 / r508739;
double r508741 = pow(r508740, r508736);
double r508742 = sin(r508723);
double r508743 = cbrt(r508742);
double r508744 = 4.0;
double r508745 = pow(r508743, r508744);
double r508746 = l;
double r508747 = r508745 / r508746;
double r508748 = r508731 / r508747;
double r508749 = cbrt(r508731);
double r508750 = pow(r508749, r508732);
double r508751 = r508748 / r508750;
double r508752 = r508741 * r508751;
double r508753 = cos(r508723);
double r508754 = r508731 / r508746;
double r508755 = r508753 / r508754;
double r508756 = pow(r508743, r508732);
double r508757 = r508755 / r508756;
double r508758 = r508752 * r508757;
double r508759 = r508730 * r508758;
double r508760 = pow(r508723, r508730);
double r508761 = r508731 / r508760;
double r508762 = pow(r508761, r508736);
double r508763 = r508731 / r508737;
double r508764 = pow(r508763, r508736);
double r508765 = r508764 * r508751;
double r508766 = r508762 * r508765;
double r508767 = r508766 * r508757;
double r508768 = r508730 * r508767;
double r508769 = r508729 ? r508759 : r508768;
return r508769;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if k < -7.83518389073447e+170 or 6.696003777935638e+153 < k Initial program 39.9
Simplified34.5
Taylor expanded around inf 24.7
rmApplied add-cube-cbrt24.7
Applied unpow-prod-down24.7
Applied associate-/r*24.7
Simplified24.7
rmApplied *-un-lft-identity24.7
Applied cbrt-prod24.7
Applied unpow-prod-down24.7
Applied div-inv24.7
Applied *-un-lft-identity24.7
Applied times-frac24.7
Applied times-frac24.7
Applied associate-*r*22.7
rmApplied sqr-pow22.7
Applied associate-*l*15.0
if -7.83518389073447e+170 < k < 6.696003777935638e+153Initial program 53.7
Simplified44.3
Taylor expanded around inf 20.9
rmApplied add-cube-cbrt21.4
Applied unpow-prod-down21.4
Applied associate-/r*21.4
Simplified19.4
rmApplied *-un-lft-identity19.4
Applied cbrt-prod19.4
Applied unpow-prod-down19.4
Applied div-inv19.4
Applied *-un-lft-identity19.4
Applied times-frac19.2
Applied times-frac18.2
Applied associate-*r*12.5
rmApplied *-un-lft-identity12.5
Applied times-frac12.4
Applied unpow-prod-down12.4
Applied associate-*l*8.7
Final simplification11.1
herbie shell --seed 2020039 +o rules:numerics
(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))))