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



Bits error versus F



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