\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 3.90891404632138 \cdot 10^{-129}:\\
\;\;\;\;\frac{2}{\frac{\frac{\left(\sin k \cdot \mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)\right) \cdot \frac{t}{\ell}}{\frac{1}{t}}}{\frac{\frac{\ell}{t}}{\tan k}}}\\
\mathbf{elif}\;\ell \cdot \ell \le 7.981741095003087 \cdot 10^{-73}:\\
\;\;\;\;\frac{2}{\mathsf{fma}\left(2, \frac{\sin k \cdot \sin k}{\cos k} \cdot \frac{\left(t \cdot t\right) \cdot t}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell} \cdot \frac{\left(k \cdot k\right) \cdot \left(\sin k \cdot \sin k\right)}{\cos k}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\frac{\left(\sin k \cdot \left(\sqrt{\sqrt{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}}\right)\right) \cdot \frac{t}{\ell}}{\frac{1}{t}}}}{\frac{\sqrt{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}}{\frac{\frac{\ell}{t}}{\tan k}}}\\
\end{array}double f(double t, double l, double k) {
double r7949496 = 2.0;
double r7949497 = t;
double r7949498 = 3.0;
double r7949499 = pow(r7949497, r7949498);
double r7949500 = l;
double r7949501 = r7949500 * r7949500;
double r7949502 = r7949499 / r7949501;
double r7949503 = k;
double r7949504 = sin(r7949503);
double r7949505 = r7949502 * r7949504;
double r7949506 = tan(r7949503);
double r7949507 = r7949505 * r7949506;
double r7949508 = 1.0;
double r7949509 = r7949503 / r7949497;
double r7949510 = pow(r7949509, r7949496);
double r7949511 = r7949508 + r7949510;
double r7949512 = r7949511 + r7949508;
double r7949513 = r7949507 * r7949512;
double r7949514 = r7949496 / r7949513;
return r7949514;
}
double f(double t, double l, double k) {
double r7949515 = l;
double r7949516 = r7949515 * r7949515;
double r7949517 = 3.90891404632138e-129;
bool r7949518 = r7949516 <= r7949517;
double r7949519 = 2.0;
double r7949520 = k;
double r7949521 = sin(r7949520);
double r7949522 = t;
double r7949523 = r7949520 / r7949522;
double r7949524 = fma(r7949523, r7949523, r7949519);
double r7949525 = r7949521 * r7949524;
double r7949526 = r7949522 / r7949515;
double r7949527 = r7949525 * r7949526;
double r7949528 = 1.0;
double r7949529 = r7949528 / r7949522;
double r7949530 = r7949527 / r7949529;
double r7949531 = r7949515 / r7949522;
double r7949532 = tan(r7949520);
double r7949533 = r7949531 / r7949532;
double r7949534 = r7949530 / r7949533;
double r7949535 = r7949519 / r7949534;
double r7949536 = 7.981741095003087e-73;
bool r7949537 = r7949516 <= r7949536;
double r7949538 = r7949521 * r7949521;
double r7949539 = cos(r7949520);
double r7949540 = r7949538 / r7949539;
double r7949541 = r7949522 * r7949522;
double r7949542 = r7949541 * r7949522;
double r7949543 = r7949542 / r7949516;
double r7949544 = r7949540 * r7949543;
double r7949545 = r7949522 / r7949516;
double r7949546 = r7949520 * r7949520;
double r7949547 = r7949546 * r7949538;
double r7949548 = r7949547 / r7949539;
double r7949549 = r7949545 * r7949548;
double r7949550 = fma(r7949519, r7949544, r7949549);
double r7949551 = r7949519 / r7949550;
double r7949552 = sqrt(r7949524);
double r7949553 = sqrt(r7949552);
double r7949554 = r7949553 * r7949553;
double r7949555 = r7949521 * r7949554;
double r7949556 = r7949555 * r7949526;
double r7949557 = r7949556 / r7949529;
double r7949558 = r7949519 / r7949557;
double r7949559 = r7949552 / r7949533;
double r7949560 = r7949558 / r7949559;
double r7949561 = r7949537 ? r7949551 : r7949560;
double r7949562 = r7949518 ? r7949535 : r7949561;
return r7949562;
}



Bits error versus t



Bits error versus l



Bits error versus k
if (* l l) < 3.90891404632138e-129Initial program 24.1
Simplified11.0
rmApplied clear-num11.0
Applied div-inv11.0
Applied associate-/r*11.0
Applied frac-times10.8
Applied associate-*l/8.5
Applied associate-*l/7.9
Simplified7.9
rmApplied associate-/r*5.6
if 3.90891404632138e-129 < (* l l) < 7.981741095003087e-73Initial program 22.6
Simplified20.2
Taylor expanded around inf 13.6
Simplified13.8
if 7.981741095003087e-73 < (* l l) Initial program 40.3
Simplified24.0
rmApplied clear-num24.0
Applied div-inv24.0
Applied associate-/r*24.0
Applied frac-times22.2
Applied associate-*l/19.9
Applied associate-*l/17.8
Simplified17.8
rmApplied add-sqr-sqrt18.0
Applied associate-*r*17.9
Applied associate-*r*17.9
Applied times-frac17.2
Applied associate-/r*16.9
rmApplied add-sqr-sqrt16.9
Applied sqrt-prod16.8
Final simplification11.2
herbie shell --seed 2019158 +o rules:numerics
(FPCore (t l k)
:name "Toniolo and Linder, Equation (10+)"
(/ 2 (* (* (* (/ (pow t 3) (* l l)) (sin k)) (tan k)) (+ (+ 1 (pow (/ k t) 2)) 1))))