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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 47.4
Simplified39.7
Taylor expanded in t around 0 22.5
Applied unpow2_binary6422.5
Applied associate-*l*_binary6420.4
Applied associate-/r*_binary6418.4
Simplified18.4
Applied associate-*r*_binary6413.1
Final simplification13.1
herbie shell --seed 2021340
(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))))