\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 -5.19803098256445386 \cdot 10^{141}:\\
\;\;\;\;0\\
\mathbf{elif}\;k \le -17485.4634943626188:\\
\;\;\;\;\frac{2}{\mathsf{fma}\left(2, {\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}}, {\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}}\right)}\\
\mathbf{elif}\;k \le 3.06107820193804619 \cdot 10^{-22}:\\
\;\;\;\;\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{elif}\;k \le 6.35603571580847875 \cdot 10^{110}:\\
\;\;\;\;\frac{2}{\mathsf{fma}\left(2, {\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}}, {\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}}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt[3]{2} \cdot \sqrt[3]{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(\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)\right) \cdot \tan k} \cdot \frac{\sqrt[3]{2}}{\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 ((k <= -5.198030982564454e+141)) {
VAR = 0.0;
} else {
double VAR_1;
if ((k <= -17485.46349436262)) {
VAR_1 = (2.0 / fma(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 {
double VAR_2;
if ((k <= 3.061078201938046e-22)) {
VAR_2 = (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 {
double VAR_3;
if ((k <= 6.356035715808479e+110)) {
VAR_3 = (2.0 / fma(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 = (((cbrt(2.0) * cbrt(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))) * (cbrt(2.0) / ((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 k < -5.198030982564454e+141Initial program 33.4
rmApplied add-cube-cbrt33.4
Applied unpow-prod-down33.4
Applied times-frac27.4
Applied associate-*l*27.4
rmApplied add-cube-cbrt27.4
Applied sqr-pow27.4
Applied times-frac21.9
rmApplied associate-*l*21.9
Taylor expanded around inf 21.7
if -5.198030982564454e+141 < k < -17485.46349436262 or 3.061078201938046e-22 < k < 6.356035715808479e+110Initial program 29.6
rmApplied add-cube-cbrt29.8
Applied unpow-prod-down29.8
Applied times-frac22.0
Applied associate-*l*21.9
Taylor expanded around -inf 16.9
Simplified16.9
if -17485.46349436262 < k < 3.061078201938046e-22Initial program 32.9
rmApplied add-cube-cbrt33.1
Applied unpow-prod-down33.1
Applied times-frac26.5
Applied associate-*l*21.5
rmApplied add-cube-cbrt21.5
Applied sqr-pow21.5
Applied times-frac15.0
rmApplied associate-*l*12.6
rmApplied associate-*l*8.6
if 6.356035715808479e+110 < k Initial program 33.1
rmApplied add-cube-cbrt33.1
Applied unpow-prod-down33.1
Applied times-frac26.9
Applied associate-*l*26.9
rmApplied add-cube-cbrt26.9
Applied sqr-pow26.9
Applied times-frac21.7
rmApplied associate-*l*21.7
rmApplied add-cube-cbrt21.7
Applied times-frac22.0
Final simplification16.0
herbie shell --seed 2020105 +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))))