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



Bits error versus t



Bits error versus l



Bits error versus k
Results
Initial program 48.2
Simplified40.4
Taylor expanded around 0 22.4
Simplified22.4
rmApplied associate-*l*_binary64_36020.5
rmApplied times-frac_binary64_42518.4
Applied *-un-lft-identity_binary64_41918.4
Applied times-frac_binary64_42518.4
Simplified18.3
rmApplied add-cube-cbrt_binary64_45418.5
Applied times-frac_binary64_42513.3
Applied associate-*l*_binary64_3608.6
Simplified8.6
Final simplification8.6
herbie shell --seed 2020353
(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))))