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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 48.5
Simplified40.7
Taylor expanded around inf 23.0
Simplified23.0
rmApplied associate-*l*_binary64_35721.1
rmApplied associate-/l*_binary64_36118.9
Simplified18.9
rmApplied div-inv_binary64_41118.9
Applied times-frac_binary64_42012.6
Applied *-un-lft-identity_binary64_41412.6
Applied times-frac_binary64_4208.7
Simplified4.4
Simplified4.4
Final simplification4.4
herbie shell --seed 2020280
(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))))