\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\begin{array}{l}
\mathbf{if}\;\pi \cdot \ell \le -1.8811346040743589 \cdot 10^{169}:\\
\;\;\;\;\pi \cdot \ell - \frac{\sqrt[3]{1} \cdot \sqrt[3]{1}}{F} \cdot \frac{\sqrt[3]{1} \cdot \sin \left(\left(\sqrt[3]{\pi} \cdot \sqrt[3]{\pi}\right) \cdot \left(\sqrt[3]{\pi} \cdot \ell\right)\right)}{F \cdot \cos \left(\pi \cdot \ell\right)}\\
\mathbf{elif}\;\pi \cdot \ell \le 7.80115771138798894 \cdot 10^{143}:\\
\;\;\;\;\pi \cdot \ell - \frac{\sqrt[3]{1} \cdot \sqrt[3]{1}}{F} \cdot \frac{\sqrt[3]{1} \cdot \sin \left(\pi \cdot \ell\right)}{F \cdot \left(\left(\frac{1}{24} \cdot \left({\pi}^{4} \cdot {\ell}^{4}\right) + 1\right) - \frac{1}{2} \cdot \left({\pi}^{2} \cdot {\ell}^{2}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(e^{\log \left(\pi \cdot \ell\right)}\right)\\
\end{array}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) {
double VAR;
if (((((double) M_PI) * l) <= -1.881134604074359e+169)) {
VAR = ((((double) M_PI) * l) - (((cbrt(1.0) * cbrt(1.0)) / F) * ((cbrt(1.0) * sin(((cbrt(((double) M_PI)) * cbrt(((double) M_PI))) * (cbrt(((double) M_PI)) * l)))) / (F * cos((((double) M_PI) * l))))));
} else {
double VAR_1;
if (((((double) M_PI) * l) <= 7.801157711387989e+143)) {
VAR_1 = ((((double) M_PI) * l) - (((cbrt(1.0) * cbrt(1.0)) / F) * ((cbrt(1.0) * sin((((double) M_PI) * l))) / (F * (((0.041666666666666664 * (pow(((double) M_PI), 4.0) * pow(l, 4.0))) + 1.0) - (0.5 * (pow(((double) M_PI), 2.0) * pow(l, 2.0))))))));
} else {
VAR_1 = ((((double) M_PI) * l) - ((1.0 / (F * F)) * tan(exp(log((((double) M_PI) * l))))));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus F



Bits error versus l
Results
if (* PI l) < -1.881134604074359e+169Initial program 20.2
rmApplied add-cube-cbrt20.2
Applied times-frac20.2
Applied associate-*l*20.2
rmApplied tan-quot20.2
Applied frac-times20.2
rmApplied add-cube-cbrt20.2
Applied associate-*l*20.1
if -1.881134604074359e+169 < (* PI l) < 7.801157711387989e+143Initial program 14.9
rmApplied add-cube-cbrt14.9
Applied times-frac14.9
Applied associate-*l*9.6
rmApplied tan-quot9.6
Applied frac-times9.6
Taylor expanded around 0 4.7
if 7.801157711387989e+143 < (* PI l) Initial program 21.2
rmApplied add-exp-log21.2
Applied add-exp-log21.2
Applied prod-exp21.2
Simplified21.2
Final simplification8.9
herbie shell --seed 2020075
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))