\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\pi \cdot \ell - \frac{\sqrt{1}}{F} \cdot \left(\frac{\sqrt{1}}{F} \cdot \tan \left(\left(\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}\right) \cdot \left(\sqrt{\pi} \cdot \ell\right)\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) - ((sqrt(1.0) / F) * ((sqrt(1.0) / F) * tan(((sqrt(sqrt(((double) M_PI))) * sqrt(sqrt(((double) M_PI)))) * (sqrt(((double) M_PI)) * l))))));
}



Bits error versus F



Bits error versus l
Results
Initial program 16.6
rmApplied add-sqr-sqrt16.6
Applied times-frac16.7
Applied associate-*l*12.6
rmApplied add-sqr-sqrt12.7
Applied associate-*l*12.7
rmApplied add-sqr-sqrt12.7
Applied sqrt-prod12.6
Final simplification12.6
herbie shell --seed 2020060
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))