\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 2.20401191496371068 \cdot 10^{-304}:\\
\;\;\;\;\frac{2}{\left(\left({\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)} \cdot \frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\ell}\right) \cdot \left(\left(\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k\right) \cdot \tan k\right)\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}\\
\mathbf{elif}\;\ell \cdot \ell \le 39114531484820.75:\\
\;\;\;\;\frac{2}{\mathsf{fma}\left(2, \frac{{t}^{3} \cdot {\left(\sin k\right)}^{2}}{\cos k \cdot {\ell}^{2}}, \frac{{k}^{2} \cdot \left(t \cdot {\left(\sin k\right)}^{2}\right)}{\cos k \cdot {\ell}^{2}}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\left(\left({\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)} \cdot \frac{{\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)}^{\left(\frac{3}{2}\right)}}{\ell}\right) \cdot \left(\left(\sqrt[3]{\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k} \cdot \sqrt[3]{\frac{{\left(\sqrt[3]{t}\right)}^{3}}{\ell} \cdot \sin k}\right) \cdot \sqrt[3]{\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)}\\
\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 (((l * l) <= 2.2040119149637107e-304)) {
temp = (2.0 / (((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) * (pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / l)) * (((pow(cbrt(t), 3.0) / l) * sin(k)) * tan(k))) * ((1.0 + pow((k / t), 2.0)) + 1.0)));
} else {
double temp_1;
if (((l * l) <= 39114531484820.75)) {
temp_1 = (2.0 / fma(2.0, ((pow(t, 3.0) * pow(sin(k), 2.0)) / (cos(k) * pow(l, 2.0))), ((pow(k, 2.0) * (t * pow(sin(k), 2.0))) / (cos(k) * pow(l, 2.0)))));
} else {
temp_1 = (2.0 / ((((pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) * (pow((cbrt(t) * cbrt(t)), (3.0 / 2.0)) / l)) * ((cbrt(((pow(cbrt(t), 3.0) / l) * sin(k))) * cbrt(((pow(cbrt(t), 3.0) / l) * sin(k)))) * cbrt(((pow(cbrt(t), 3.0) / l) * sin(k))))) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0)));
}
temp = temp_1;
}
return temp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if (* l l) < 2.2040119149637107e-304Initial program 24.7
rmApplied add-cube-cbrt24.7
Applied unpow-prod-down24.7
Applied times-frac18.1
Applied associate-*l*15.3
rmApplied *-un-lft-identity15.3
Applied sqr-pow15.3
Applied times-frac8.7
Simplified8.7
rmApplied associate-*l*8.6
if 2.2040119149637107e-304 < (* l l) < 39114531484820.75Initial program 22.7
Taylor expanded around inf 13.6
Simplified13.6
if 39114531484820.75 < (* l l) Initial program 46.1
rmApplied add-cube-cbrt46.2
Applied unpow-prod-down46.2
Applied times-frac35.1
Applied associate-*l*34.6
rmApplied *-un-lft-identity34.6
Applied sqr-pow34.6
Applied times-frac25.1
Simplified25.1
rmApplied add-cube-cbrt25.1
Final simplification16.7
herbie shell --seed 2020065 +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))))