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



Bits error versus F



Bits error versus l
Results
Initial program 16.8
rmApplied *-un-lft-identity16.8
Applied times-frac16.8
Applied associate-*l*12.8
rmApplied div-inv12.8
Applied associate-*l*12.8
Simplified12.8
rmApplied associate-*r/12.8
Applied associate-*r/12.8
Simplified12.7
rmApplied clear-num12.8
Final simplification12.8
herbie shell --seed 2020155
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))