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



Bits error versus F



Bits error versus l
Results
Initial program 16.6
Simplified16.4
rmApplied clear-num16.4
Simplified12.1
Taylor expanded around 0 8.5
Simplified8.5
rmApplied associate-/r*8.5
Final simplification8.5
herbie shell --seed 2020196
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))