\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}\;t \leq -4.738216409662838 \cdot 10^{-164} \lor \neg \left(t \leq 1.0926168737272691 \cdot 10^{-193}\right):\\
\;\;\;\;\frac{1}{t \cdot \frac{t \cdot \sin k}{\ell}} \cdot \left(\frac{\frac{\ell}{t}}{\tan k} \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{\cos k \cdot {\ell}^{2}}}\\
\end{array}
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
(FPCore (t l k)
:precision binary64
(if (or (<= t -4.738216409662838e-164) (not (<= t 1.0926168737272691e-193)))
(*
(/ 1.0 (* t (/ (* t (sin k)) l)))
(* (/ (/ l t) (tan k)) (/ 2.0 (+ 2.0 (pow (/ k t) 2.0)))))
(/
2.0
(/ (* (pow k 2.0) (* t (pow (sin k) 2.0))) (* (cos k) (pow l 2.0))))))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 tmp;
if ((t <= -4.738216409662838e-164) || !(t <= 1.0926168737272691e-193)) {
tmp = (1.0 / (t * ((t * sin(k)) / l))) * (((l / t) / tan(k)) * (2.0 / (2.0 + pow((k / t), 2.0))));
} else {
tmp = 2.0 / ((pow(k, 2.0) * (t * pow(sin(k), 2.0))) / (cos(k) * pow(l, 2.0)));
}
return tmp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -4.738216409662838e-164 or 1.0926168737272691e-193 < t Initial program 27.7
Simplified27.7
Applied cube-mult_binary6427.7
Applied times-frac_binary6419.4
Applied associate-*l*_binary6417.3
Applied *-un-lft-identity_binary6417.3
Applied times-frac_binary6412.4
Applied associate-*l*_binary6411.5
Applied *-un-lft-identity_binary6411.5
Applied times-frac_binary6411.6
Simplified9.9
Applied *-un-lft-identity_binary649.9
Applied times-frac_binary648.9
Applied associate-*l*_binary647.4
if -4.738216409662838e-164 < t < 1.0926168737272691e-193Initial program 64.0
Simplified64.0
Taylor expanded in t around 0 26.9
Final simplification10.1
herbie shell --seed 2021280
(FPCore (t l k)
:name "Toniolo and Linder, Equation (10+)"
:precision binary64
(/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))