\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)}\frac{\ell}{k} \cdot \frac{2}{\frac{\sin k \cdot \left(t \cdot \sin k\right)}{\cos k} \cdot \frac{k}{\ell}}(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 (* (/ l k) (/ 2.0 (* (/ (* (sin k) (* t (sin k))) (cos k)) (/ k 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) {
return (l / k) * (2.0 / (((sin(k) * (t * sin(k))) / cos(k)) * (k / l)));
}



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 48.5
Simplified40.7
Taylor expanded around inf 22.9
Simplified22.9
rmApplied associate-/l*_binary64_36822.0
Simplified22.0
rmApplied *-un-lft-identity_binary64_42322.0
Applied times-frac_binary64_42917.4
Applied times-frac_binary64_4297.6
Applied *-un-lft-identity_binary64_4237.6
Applied times-frac_binary64_4297.3
Simplified7.3
Simplified3.9
rmApplied unpow2_binary64_4883.9
Applied associate-*r*_binary64_3632.5
Final simplification2.5
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))))