\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 \leq -1.523926379378027 \cdot 10^{+159} \lor \neg \left(\ell \leq 1.3604675236684082 \cdot 10^{+154}\right):\\
\;\;\;\;\frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot t}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{k}{\frac{\frac{\cos k \cdot {\ell}^{2}}{k}}{t \cdot {\sin k}^{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 (<= l -1.523926379378027e+159) (not (<= l 1.3604675236684082e+154)))
(/
2.0
(* (* (* (/ t l) (* (/ (* t t) l) (sin k))) (tan k)) (pow (/ k t) 2.0)))
(/ 2.0 (/ k (/ (/ (* (cos k) (pow l 2.0)) k) (* t (pow (sin k) 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 ((l <= -1.523926379378027e+159) || !(l <= 1.3604675236684082e+154)) {
tmp = 2.0 / ((((t / l) * (((t * t) / l) * sin(k))) * tan(k)) * pow((k / t), 2.0));
} else {
tmp = 2.0 / (k / (((cos(k) * pow(l, 2.0)) / k) / (t * pow(sin(k), 2.0))));
}
return tmp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if l < -1.523926379378027e159 or 1.36046752366840816e154 < l Initial program 64.0
Simplified64.0
Applied cube-mult_binary6464.0
Applied times-frac_binary6449.5
Applied associate-*l*_binary6449.4
if -1.523926379378027e159 < l < 1.36046752366840816e154Initial program 45.7
Simplified36.3
Taylor expanded in t around 0 15.8
Applied unpow2_binary6415.8
Applied associate-*l*_binary6413.5
Applied associate-/l*_binary6411.1
Applied associate-/r*_binary6410.5
Final simplification16.4
herbie shell --seed 2022039
(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))))