\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\begin{array}{l}
\mathbf{if}\;\pi \cdot \ell \le -8.659932407972988 \cdot 10^{+22}:\\
\;\;\;\;\pi \cdot \ell - \frac{\left(\left(\frac{\tan \left(\pi \cdot \ell\right)}{F}\right)\right)}{F}\\
\mathbf{elif}\;\pi \cdot \ell \le 1.3394936946479616 \cdot 10^{-06}:\\
\;\;\;\;\pi \cdot \ell - \frac{\frac{\tan \left(\pi \cdot \ell\right)}{F}}{F}\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \ell - \frac{\left(\left(\frac{\tan \left(\pi \cdot \ell\right)}{F}\right)\right)}{F}\\
\end{array}double f(double F, double l) {
double r863474 = atan2(1.0, 0.0);
double r863475 = l;
double r863476 = r863474 * r863475;
double r863477 = 1.0;
double r863478 = F;
double r863479 = r863478 * r863478;
double r863480 = r863477 / r863479;
double r863481 = tan(r863476);
double r863482 = r863480 * r863481;
double r863483 = r863476 - r863482;
return r863483;
}
double f(double F, double l) {
double r863484 = atan2(1.0, 0.0);
double r863485 = l;
double r863486 = r863484 * r863485;
double r863487 = -8.659932407972988e+22;
bool r863488 = r863486 <= r863487;
double r863489 = tan(r863486);
double r863490 = F;
double r863491 = r863489 / r863490;
double r863492 = /* ERROR: no posit support in C */;
double r863493 = /* ERROR: no posit support in C */;
double r863494 = r863493 / r863490;
double r863495 = r863486 - r863494;
double r863496 = 1.3394936946479616e-06;
bool r863497 = r863486 <= r863496;
double r863498 = r863491 / r863490;
double r863499 = r863486 - r863498;
double r863500 = r863497 ? r863499 : r863495;
double r863501 = r863488 ? r863495 : r863500;
return r863501;
}



Bits error versus F



Bits error versus l
if (* PI l) < -8.659932407972988e+22 or 1.3394936946479616e-06 < (* PI l) Initial program 23.5
Simplified23.5
rmApplied associate-/r*23.5
rmApplied insert-posit1616.4
if -8.659932407972988e+22 < (* PI l) < 1.3394936946479616e-06Initial program 9.1
Simplified8.5
rmApplied associate-/r*0.9
Final simplification8.9
herbie shell --seed 2019158 +o rules:numerics
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
(- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))