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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 48.3
Simplified40.9
Taylor expanded around inf 23.6
Simplified23.6
rmApplied associate-*l*_binary6421.4
rmApplied times-frac_binary6419.1
Applied associate-/r*_binary6419.0
rmApplied *-un-lft-identity_binary6419.0
Applied times-frac_binary6419.0
Applied *-un-lft-identity_binary6419.0
Applied times-frac_binary6413.7
Applied *-un-lft-identity_binary6413.7
Applied times-frac_binary6413.5
Applied times-frac_binary643.7
Simplified3.7
Final simplification3.7
herbie shell --seed 2020219
(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))))