\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 \le -1.2094829756305392 \cdot 10^{-97}:\\
\;\;\;\;2 \cdot \frac{{\left(\frac{1}{{k}^{\left(\frac{2}{2}\right)}}\right)}^{1} \cdot \left({\left(\frac{1}{{k}^{\left(\frac{2}{2}\right)} \cdot {t}^{1}}\right)}^{1} \cdot \left(\cos k \cdot {\ell}^{2}\right)\right)}{{\left(\sin k\right)}^{2}}\\
\mathbf{elif}\;\ell \le 1.53396116894158868 \cdot 10^{-171}:\\
\;\;\;\;2 \cdot \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{\cos k}{\frac{\frac{{\left(\sqrt[3]{\sin k}\right)}^{4}}{\ell}}{\ell}}}{{\left(\sqrt[3]{\sin k}\right)}^{2}}\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left({\left(\frac{1}{{k}^{\left(\frac{2}{2}\right)}}\right)}^{1} \cdot \left(\frac{{\left(\frac{1}{{k}^{\left(\frac{2}{2}\right)} \cdot {t}^{1}}\right)}^{1} \cdot \cos k}{\sin k} \cdot \frac{{\ell}^{2}}{{\left(\sin k\right)}^{1}}\right)\right)\\
\end{array}double f(double t, double l, double k) {
double r93483 = 2.0;
double r93484 = t;
double r93485 = 3.0;
double r93486 = pow(r93484, r93485);
double r93487 = l;
double r93488 = r93487 * r93487;
double r93489 = r93486 / r93488;
double r93490 = k;
double r93491 = sin(r93490);
double r93492 = r93489 * r93491;
double r93493 = tan(r93490);
double r93494 = r93492 * r93493;
double r93495 = 1.0;
double r93496 = r93490 / r93484;
double r93497 = pow(r93496, r93483);
double r93498 = r93495 + r93497;
double r93499 = r93498 - r93495;
double r93500 = r93494 * r93499;
double r93501 = r93483 / r93500;
return r93501;
}
double f(double t, double l, double k) {
double r93502 = l;
double r93503 = -1.2094829756305392e-97;
bool r93504 = r93502 <= r93503;
double r93505 = 2.0;
double r93506 = 1.0;
double r93507 = k;
double r93508 = 2.0;
double r93509 = r93505 / r93508;
double r93510 = pow(r93507, r93509);
double r93511 = r93506 / r93510;
double r93512 = 1.0;
double r93513 = pow(r93511, r93512);
double r93514 = t;
double r93515 = pow(r93514, r93512);
double r93516 = r93510 * r93515;
double r93517 = r93506 / r93516;
double r93518 = pow(r93517, r93512);
double r93519 = cos(r93507);
double r93520 = pow(r93502, r93508);
double r93521 = r93519 * r93520;
double r93522 = r93518 * r93521;
double r93523 = r93513 * r93522;
double r93524 = sin(r93507);
double r93525 = pow(r93524, r93508);
double r93526 = r93523 / r93525;
double r93527 = r93505 * r93526;
double r93528 = 1.5339611689415887e-171;
bool r93529 = r93502 <= r93528;
double r93530 = r93510 * r93516;
double r93531 = r93506 / r93530;
double r93532 = pow(r93531, r93512);
double r93533 = cbrt(r93524);
double r93534 = 4.0;
double r93535 = pow(r93533, r93534);
double r93536 = r93535 / r93502;
double r93537 = r93536 / r93502;
double r93538 = r93519 / r93537;
double r93539 = pow(r93533, r93508);
double r93540 = r93538 / r93539;
double r93541 = r93532 * r93540;
double r93542 = r93505 * r93541;
double r93543 = r93518 * r93519;
double r93544 = r93543 / r93524;
double r93545 = pow(r93524, r93506);
double r93546 = r93520 / r93545;
double r93547 = r93544 * r93546;
double r93548 = r93513 * r93547;
double r93549 = r93505 * r93548;
double r93550 = r93529 ? r93542 : r93549;
double r93551 = r93504 ? r93527 : r93550;
return r93551;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if l < -1.2094829756305392e-97Initial program 50.2
Simplified43.4
Taylor expanded around inf 28.0
rmApplied sqr-pow28.0
Applied associate-*l*23.8
rmApplied *-un-lft-identity23.8
Applied times-frac23.6
Applied unpow-prod-down23.6
Applied associate-*l*21.0
rmApplied associate-*r/20.7
Applied associate-*r/20.7
if -1.2094829756305392e-97 < l < 1.5339611689415887e-171Initial program 44.7
Simplified35.7
Taylor expanded around inf 16.4
rmApplied sqr-pow16.4
Applied associate-*l*16.3
rmApplied add-cube-cbrt16.4
Applied unpow-prod-down16.4
Applied associate-/r*16.0
Simplified11.5
if 1.5339611689415887e-171 < l Initial program 49.3
Simplified42.0
Taylor expanded around inf 22.6
rmApplied sqr-pow22.6
Applied associate-*l*19.7
rmApplied *-un-lft-identity19.7
Applied times-frac19.5
Applied unpow-prod-down19.5
Applied associate-*l*17.2
rmApplied sqr-pow17.2
Applied times-frac16.7
Applied associate-*r*16.9
Simplified16.8
Final simplification15.9
herbie shell --seed 2020060 +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))))