\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\begin{array}{l}
\mathbf{if}\;\pi \cdot \ell \le -2.0845581642214246 \cdot 10^{154}:\\
\;\;\;\;\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right) \cdot \sqrt[3]{\pi \cdot \ell}\right)\\
\mathbf{elif}\;\pi \cdot \ell \le 7.7154867931676 \cdot 10^{137}:\\
\;\;\;\;\pi \cdot \ell - {\left(\frac{\frac{1 \cdot \sin \left(\pi \cdot \ell\right)}{F \cdot \mathsf{fma}\left(\frac{1}{24} \cdot {\pi}^{4}, {\ell}^{4}, 1 - \frac{1}{2} \cdot \left({\pi}^{2} \cdot {\ell}^{2}\right)\right)}}{F}\right)}^{1}\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\left(\pi \cdot \left(\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}\right)\right) \cdot \sqrt[3]{\ell}\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) <= -2.0845581642214246e+154)) {
VAR = ((((double) M_PI) * l) - ((1.0 / (F * F)) * tan(((cbrt((((double) M_PI) * l)) * cbrt((((double) M_PI) * l))) * cbrt((((double) M_PI) * l))))));
} else {
double VAR_1;
if (((((double) M_PI) * l) <= 7.715486793167634e+137)) {
VAR_1 = ((((double) M_PI) * l) - pow((((1.0 * sin((((double) M_PI) * l))) / (F * fma((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))))))) / F), 1.0));
} else {
VAR_1 = ((((double) M_PI) * l) - ((1.0 / (F * F)) * tan(((((double) M_PI) * (cbrt(l) * cbrt(l))) * cbrt(l)))));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus F



Bits error versus l
Results
if (* PI l) < -2.0845581642214246e+154Initial program 19.0
rmApplied add-cube-cbrt19.0
if -2.0845581642214246e+154 < (* PI l) < 7.715486793167634e+137Initial program 15.3
rmApplied *-un-lft-identity15.3
Applied times-frac15.3
Applied associate-*l*9.4
rmApplied tan-quot9.4
Applied frac-times9.4
rmApplied pow19.4
Applied pow19.4
Applied pow-prod-down9.4
Simplified9.4
Taylor expanded around 0 3.7
Simplified3.7
if 7.715486793167634e+137 < (* PI l) Initial program 20.5
rmApplied add-cube-cbrt20.5
Applied associate-*r*20.5
Final simplification8.3
herbie shell --seed 2020105 +o rules:numerics
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))