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



Bits error versus F



Bits error versus l
Results
Initial program Error: 16.8 bits
SimplifiedError: 16.5 bits
rmApplied clear-numError: 16.5 bits
SimplifiedError: 12.6 bits
Final simplificationError: 12.6 bits
herbie shell --seed 2020200
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))