\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.953282748199605 \cdot 10^{-30} \lor \neg \left(t \leq 4.3543219557651655 \cdot 10^{-32}\right):\\
\;\;\;\;\frac{1}{\frac{t \cdot \left(\frac{t}{\ell} \cdot \sin k\right)}{\frac{\frac{\ell}{t}}{\tan k}}} \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{\sin k}^{2}}{\ell \cdot \ell} \cdot \left(\frac{t \cdot \left(k \cdot k\right)}{\cos k} + 2 \cdot \frac{{t}^{3}}{\cos k}\right)}\\
\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.953282748199605e-30) (not (<= t 4.3543219557651655e-32)))
(*
(/ 1.0 (/ (* t (* (/ t l) (sin k))) (/ (/ l t) (tan k))))
(/ 2.0 (+ 2.0 (pow (/ k t) 2.0))))
(/
2.0
(*
(/ (pow (sin k) 2.0) (* l l))
(+ (/ (* t (* k k)) (cos k)) (* 2.0 (/ (pow t 3.0) (cos k))))))))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.953282748199605e-30) || !(t <= 4.3543219557651655e-32)) {
tmp = (1.0 / ((t * ((t / l) * sin(k))) / ((l / t) / tan(k)))) * (2.0 / (2.0 + pow((k / t), 2.0)));
} else {
tmp = 2.0 / ((pow(sin(k), 2.0) / (l * l)) * (((t * (k * k)) / cos(k)) + (2.0 * (pow(t, 3.0) / cos(k)))));
}
return tmp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -4.9532827481996048e-30 or 4.35432195576516549e-32 < t Initial program 23.0
Simplified23.0
rmApplied cube-mult_binary6423.0
Applied times-frac_binary6416.6
Applied associate-*l*_binary6414.1
rmApplied *-un-lft-identity_binary6414.1
Applied times-frac_binary648.4
Applied associate-*l*_binary647.1
rmApplied *-un-lft-identity_binary647.1
Applied times-frac_binary647.0
Simplified4.2
rmApplied clear-num_binary644.4
Simplified3.6
if -4.9532827481996048e-30 < t < 4.35432195576516549e-32Initial program 52.5
Simplified52.5
Taylor expanded around inf 35.6
Simplified24.8
Final simplification10.6
herbie shell --seed 2020233
(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))))