\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 -5.682272213353497 \cdot 10^{-132}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\left(t \cdot \frac{t}{\ell}\right) \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)}\\
\mathbf{elif}\;t \leq 8.735486909965795 \cdot 10^{-203}:\\
\;\;\;\;\frac{2}{\frac{{\sin k}^{2}}{\cos k} \cdot \left(\frac{t \cdot \left(k \cdot k\right)}{\ell \cdot \ell} + 2 \cdot \frac{{t}^{3}}{\ell \cdot \ell}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\sqrt[3]{\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \left(\tan k \cdot \left(\frac{t}{\ell} \cdot \left(\frac{t}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \left(\sin k \cdot \frac{t}{\sqrt[3]{\ell}}\right)\right)\right)\right)} \cdot \left(\sqrt[3]{\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \left(\tan k \cdot \left(\frac{t}{\ell} \cdot \left(\frac{t}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \left(\sin k \cdot \frac{t}{\sqrt[3]{\ell}}\right)\right)\right)\right)} \cdot \sqrt[3]{\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \left(\tan k \cdot \left(\frac{t}{\ell} \cdot \left(\frac{t}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \left(\sin k \cdot \frac{t}{\sqrt[3]{\ell}}\right)\right)\right)\right)}\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 (<= t -5.682272213353497e-132)
(/
2.0
(*
(* (* (/ t l) (* (* t (/ t l)) (sin k))) (tan k))
(+ 2.0 (pow (/ k t) 2.0))))
(if (<= t 8.735486909965795e-203)
(/
2.0
(*
(/ (pow (sin k) 2.0) (cos k))
(+ (/ (* t (* k k)) (* l l)) (* 2.0 (/ (pow t 3.0) (* l l))))))
(/
2.0
(*
(cbrt
(*
(+ 2.0 (pow (/ k t) 2.0))
(*
(tan k)
(*
(/ t l)
(* (/ t (* (cbrt l) (cbrt l))) (* (sin k) (/ t (cbrt l))))))))
(*
(cbrt
(*
(+ 2.0 (pow (/ k t) 2.0))
(*
(tan k)
(*
(/ t l)
(* (/ t (* (cbrt l) (cbrt l))) (* (sin k) (/ t (cbrt l))))))))
(cbrt
(*
(+ 2.0 (pow (/ k t) 2.0))
(*
(tan k)
(*
(/ t l)
(*
(/ t (* (cbrt l) (cbrt l)))
(* (sin k) (/ t (cbrt 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 tmp;
if (t <= -5.682272213353497e-132) {
tmp = 2.0 / ((((t / l) * ((t * (t / l)) * sin(k))) * tan(k)) * (2.0 + pow((k / t), 2.0)));
} else if (t <= 8.735486909965795e-203) {
tmp = 2.0 / ((pow(sin(k), 2.0) / cos(k)) * (((t * (k * k)) / (l * l)) + (2.0 * (pow(t, 3.0) / (l * l)))));
} else {
tmp = 2.0 / (cbrt((2.0 + pow((k / t), 2.0)) * (tan(k) * ((t / l) * ((t / (cbrt(l) * cbrt(l))) * (sin(k) * (t / cbrt(l))))))) * (cbrt((2.0 + pow((k / t), 2.0)) * (tan(k) * ((t / l) * ((t / (cbrt(l) * cbrt(l))) * (sin(k) * (t / cbrt(l))))))) * cbrt((2.0 + pow((k / t), 2.0)) * (tan(k) * ((t / l) * ((t / (cbrt(l) * cbrt(l))) * (sin(k) * (t / cbrt(l)))))))));
}
return tmp;
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
if t < -5.682272213353497e-132Initial program 25.0
Simplified25.0
rmApplied cube-mult_binary64_44125.0
Applied times-frac_binary64_42017.7
Applied associate-*l*_binary64_35715.5
rmApplied *-un-lft-identity_binary64_41415.5
Applied times-frac_binary64_42010.2
Simplified10.2
if -5.682272213353497e-132 < t < 8.7354869099657953e-203Initial program 64.0
Simplified64.0
Taylor expanded around inf 41.2
Simplified40.0
if 8.7354869099657953e-203 < t Initial program 28.8
Simplified28.8
rmApplied cube-mult_binary64_44128.8
Applied times-frac_binary64_42021.2
Applied associate-*l*_binary64_35718.8
rmApplied add-cube-cbrt_binary64_44619.0
Applied times-frac_binary64_42013.7
Applied associate-*l*_binary64_35712.5
Simplified12.5
rmApplied add-cube-cbrt_binary64_44612.6
rmApplied add-cube-cbrt_binary64_44612.7
Simplified12.6
Simplified12.6
Final simplification15.7
herbie shell --seed 2020281
(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))))