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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 48.4
Simplified41.0
Taylor expanded around inf 23.7
Simplified23.7
rmApplied associate-*l*_binary6421.7
rmApplied times-frac_binary6419.7
Applied *-un-lft-identity_binary6419.7
Applied times-frac_binary6419.7
Simplified19.6
rmApplied *-un-lft-identity_binary6419.6
Applied times-frac_binary6414.3
Applied associate-*l*_binary6410.1
Simplified10.1
Final simplification10.1
herbie shell --seed 2020224
(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))))