\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}
t_1 := t \cdot {\sin k}^{2}\\
t_2 := \frac{k}{\cos k}\\
\mathbf{if}\;k \leq -2.7246474924947304 \cdot 10^{+175} \lor \neg \left(k \leq 2.1694879221150623 \cdot 10^{+145}\right):\\
\;\;\;\;\frac{2}{t_2 \cdot \frac{\frac{k}{\ell} \cdot t_1}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(t_2 \cdot \frac{k}{\ell}\right) \cdot \frac{t_1}{\ell}}\\
\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
(let* ((t_1 (* t (pow (sin k) 2.0))) (t_2 (/ k (cos k))))
(if (or (<= k -2.7246474924947304e+175)
(not (<= k 2.1694879221150623e+145)))
(/ 2.0 (* t_2 (/ (* (/ k l) t_1) l)))
(/ 2.0 (* (* t_2 (/ k l)) (/ t_1 l))))))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 t_1 = t * pow(sin(k), 2.0);
double t_2 = k / cos(k);
double tmp;
if ((k <= -2.7246474924947304e+175) || !(k <= 2.1694879221150623e+145)) {
tmp = 2.0 / (t_2 * (((k / l) * t_1) / l));
} else {
tmp = 2.0 / ((t_2 * (k / l)) * (t_1 / l));
}
return tmp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if k < -2.7246474924947304e175 or 2.16948792211506227e145 < k Initial program 39.1
Simplified33.4
Taylor expanded in t around 0 22.9
Applied unpow2_binary6422.9
Applied associate-*l*_binary6418.2
Applied times-frac_binary6414.7
Applied unpow2_binary6414.7
Applied associate-/r*_binary649.6
Simplified4.9
if -2.7246474924947304e175 < k < 2.16948792211506227e145Initial program 53.7
Simplified44.3
Taylor expanded in t around 0 21.8
Applied unpow2_binary6421.8
Applied associate-*l*_binary6421.4
Applied times-frac_binary6419.5
Applied unpow2_binary6419.5
Applied times-frac_binary649.0
Applied associate-*r*_binary648.1
Final simplification6.9
herbie shell --seed 2022055
(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))))