\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\pi \cdot \ell - \frac{1}{F} \cdot \left(\left(\sqrt[3]{\frac{1}{F} \cdot \tan \left(\pi \cdot \ell\right)} \cdot \sqrt[3]{\frac{1}{F} \cdot \tan \left(\pi \cdot \ell\right)}\right) \cdot \sqrt[3]{\frac{1}{F} \cdot \tan \left(\pi \cdot \ell\right)}\right)double code(double F, double l) {
return ((((double) M_PI) * l) - ((1.0 / (F * F)) * tan((((double) M_PI) * l))));
}
double code(double F, double l) {
return ((((double) M_PI) * l) - ((1.0 / F) * ((cbrt(((1.0 / F) * tan((((double) M_PI) * l)))) * cbrt(((1.0 / F) * tan((((double) M_PI) * l))))) * cbrt(((1.0 / F) * tan((((double) M_PI) * l)))))));
}



Bits error versus F



Bits error versus l
Results
Initial program 16.5
rmApplied *-un-lft-identity16.5
Applied times-frac16.6
Applied associate-*l*12.4
rmApplied add-cube-cbrt12.6
Final simplification12.6
herbie shell --seed 2020065 +o rules:numerics
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))