\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 -4.767926568016393126457677186561838999712 \cdot 10^{-144}:\\
\;\;\;\;2 \cdot \left({\left(\frac{1}{{k}^{\left(\frac{2}{2}\right)}}\right)}^{1} \cdot \left(\left({\left(\frac{1}{{k}^{\left(\frac{2}{2}\right)} \cdot {t}^{1}}\right)}^{1} \cdot \left(\cos k \cdot {\ell}^{2}\right)\right) \cdot \frac{1}{{\left(\sin k\right)}^{2}}\right)\right)\\
\mathbf{elif}\;\ell \le 7.868644037131389794828350389295985380254 \cdot 10^{-109}:\\
\;\;\;\;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(\left({\left(\frac{1}{{k}^{\left(\frac{2}{2}\right)} \cdot {t}^{1}}\right)}^{1} \cdot \frac{\cos k}{\sqrt{{\left(\sin k\right)}^{2}}}\right) \cdot \frac{{\ell}^{2}}{\sqrt{{\left(\sin k\right)}^{2}}}\right)\right)\\
\end{array}double f(double t, double l, double k) {
double r92275 = 2.0;
double r92276 = t;
double r92277 = 3.0;
double r92278 = pow(r92276, r92277);
double r92279 = l;
double r92280 = r92279 * r92279;
double r92281 = r92278 / r92280;
double r92282 = k;
double r92283 = sin(r92282);
double r92284 = r92281 * r92283;
double r92285 = tan(r92282);
double r92286 = r92284 * r92285;
double r92287 = 1.0;
double r92288 = r92282 / r92276;
double r92289 = pow(r92288, r92275);
double r92290 = r92287 + r92289;
double r92291 = r92290 - r92287;
double r92292 = r92286 * r92291;
double r92293 = r92275 / r92292;
return r92293;
}
double f(double t, double l, double k) {
double r92294 = l;
double r92295 = -4.767926568016393e-144;
bool r92296 = r92294 <= r92295;
double r92297 = 2.0;
double r92298 = 1.0;
double r92299 = k;
double r92300 = 2.0;
double r92301 = r92297 / r92300;
double r92302 = pow(r92299, r92301);
double r92303 = r92298 / r92302;
double r92304 = 1.0;
double r92305 = pow(r92303, r92304);
double r92306 = t;
double r92307 = pow(r92306, r92304);
double r92308 = r92302 * r92307;
double r92309 = r92298 / r92308;
double r92310 = pow(r92309, r92304);
double r92311 = cos(r92299);
double r92312 = pow(r92294, r92300);
double r92313 = r92311 * r92312;
double r92314 = r92310 * r92313;
double r92315 = sin(r92299);
double r92316 = pow(r92315, r92300);
double r92317 = r92298 / r92316;
double r92318 = r92314 * r92317;
double r92319 = r92305 * r92318;
double r92320 = r92297 * r92319;
double r92321 = 7.86864403713139e-109;
bool r92322 = r92294 <= r92321;
double r92323 = r92302 * r92308;
double r92324 = r92298 / r92323;
double r92325 = pow(r92324, r92304);
double r92326 = cbrt(r92315);
double r92327 = 4.0;
double r92328 = pow(r92326, r92327);
double r92329 = r92328 / r92294;
double r92330 = r92329 / r92294;
double r92331 = r92311 / r92330;
double r92332 = pow(r92326, r92300);
double r92333 = r92331 / r92332;
double r92334 = r92325 * r92333;
double r92335 = r92297 * r92334;
double r92336 = sqrt(r92316);
double r92337 = r92311 / r92336;
double r92338 = r92310 * r92337;
double r92339 = r92312 / r92336;
double r92340 = r92338 * r92339;
double r92341 = r92305 * r92340;
double r92342 = r92297 * r92341;
double r92343 = r92322 ? r92335 : r92342;
double r92344 = r92296 ? r92320 : r92343;
return r92344;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if l < -4.767926568016393e-144Initial program 49.5
Simplified42.3
Taylor expanded around inf 23.8
rmApplied sqr-pow23.8
Applied associate-*l*20.0
rmApplied *-un-lft-identity20.0
Applied times-frac19.7
Applied unpow-prod-down19.7
Applied associate-*l*17.2
rmApplied div-inv17.3
Applied associate-*r*17.5
if -4.767926568016393e-144 < l < 7.86864403713139e-109Initial program 45.8
Simplified36.0
Taylor expanded around inf 16.9
rmApplied sqr-pow16.9
Applied associate-*l*16.8
rmApplied add-cube-cbrt16.9
Applied unpow-prod-down16.9
Applied associate-/r*16.5
Simplified11.5
if 7.86864403713139e-109 < l Initial program 51.4
Simplified44.2
Taylor expanded around inf 27.7
rmApplied sqr-pow27.7
Applied associate-*l*23.7
rmApplied *-un-lft-identity23.7
Applied times-frac23.3
Applied unpow-prod-down23.3
Applied associate-*l*20.8
rmApplied add-sqr-sqrt20.8
Applied times-frac20.8
Applied associate-*r*20.5
Final simplification16.0
herbie shell --seed 2020001
(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))))