\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)
\]
↓
\[\begin{array}{l}
t_0 := \tan \left(\pi \cdot \ell\right)\\
\mathbf{if}\;\pi \cdot \ell \leq -2 \cdot 10^{+16} \lor \neg \left(\pi \cdot \ell \leq 5 \cdot 10^{+28}\right):\\
\;\;\;\;\pi \cdot \ell - \mathsf{expm1}\left(\frac{1}{F \cdot F} - \frac{0.5}{{F}^{4}}\right) \cdot t_0\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \ell + \frac{-1}{F \cdot \frac{F}{t_0}}\\
\end{array}
\]
(FPCore (F l)
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))
↓
(FPCore (F l)
:precision binary64
(let* ((t_0 (tan (* PI l))))
(if (or (<= (* PI l) -2e+16) (not (<= (* PI l) 5e+28)))
(- (* PI l) (* (expm1 (- (/ 1.0 (* F F)) (/ 0.5 (pow F 4.0)))) t_0))
(+ (* PI l) (/ -1.0 (* F (/ F t_0)))))))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 t_0 = tan((((double) M_PI) * l));
double tmp;
if (((((double) M_PI) * l) <= -2e+16) || !((((double) M_PI) * l) <= 5e+28)) {
tmp = (((double) M_PI) * l) - (expm1(((1.0 / (F * F)) - (0.5 / pow(F, 4.0)))) * t_0);
} else {
tmp = (((double) M_PI) * l) + (-1.0 / (F * (F / t_0)));
}
return tmp;
}
public static double code(double F, double l) {
return (Math.PI * l) - ((1.0 / (F * F)) * Math.tan((Math.PI * l)));
}
↓
public static double code(double F, double l) {
double t_0 = Math.tan((Math.PI * l));
double tmp;
if (((Math.PI * l) <= -2e+16) || !((Math.PI * l) <= 5e+28)) {
tmp = (Math.PI * l) - (Math.expm1(((1.0 / (F * F)) - (0.5 / Math.pow(F, 4.0)))) * t_0);
} else {
tmp = (Math.PI * l) + (-1.0 / (F * (F / t_0)));
}
return tmp;
}
def code(F, l):
return (math.pi * l) - ((1.0 / (F * F)) * math.tan((math.pi * l)))
↓
def code(F, l):
t_0 = math.tan((math.pi * l))
tmp = 0
if ((math.pi * l) <= -2e+16) or not ((math.pi * l) <= 5e+28):
tmp = (math.pi * l) - (math.expm1(((1.0 / (F * F)) - (0.5 / math.pow(F, 4.0)))) * t_0)
else:
tmp = (math.pi * l) + (-1.0 / (F * (F / t_0)))
return tmp
function code(F, l)
return Float64(Float64(pi * l) - Float64(Float64(1.0 / Float64(F * F)) * tan(Float64(pi * l))))
end
↓
function code(F, l)
t_0 = tan(Float64(pi * l))
tmp = 0.0
if ((Float64(pi * l) <= -2e+16) || !(Float64(pi * l) <= 5e+28))
tmp = Float64(Float64(pi * l) - Float64(expm1(Float64(Float64(1.0 / Float64(F * F)) - Float64(0.5 / (F ^ 4.0)))) * t_0));
else
tmp = Float64(Float64(pi * l) + Float64(-1.0 / Float64(F * Float64(F / t_0))));
end
return tmp
end
code[F_, l_] := N[(N[(Pi * l), $MachinePrecision] - N[(N[(1.0 / N[(F * F), $MachinePrecision]), $MachinePrecision] * N[Tan[N[(Pi * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[F_, l_] := Block[{t$95$0 = N[Tan[N[(Pi * l), $MachinePrecision]], $MachinePrecision]}, If[Or[LessEqual[N[(Pi * l), $MachinePrecision], -2e+16], N[Not[LessEqual[N[(Pi * l), $MachinePrecision], 5e+28]], $MachinePrecision]], N[(N[(Pi * l), $MachinePrecision] - N[(N[(Exp[N[(N[(1.0 / N[(F * F), $MachinePrecision]), $MachinePrecision] - N[(0.5 / N[Power[F, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(Pi * l), $MachinePrecision] + N[(-1.0 / N[(F * N[(F / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)
↓
\begin{array}{l}
t_0 := \tan \left(\pi \cdot \ell\right)\\
\mathbf{if}\;\pi \cdot \ell \leq -2 \cdot 10^{+16} \lor \neg \left(\pi \cdot \ell \leq 5 \cdot 10^{+28}\right):\\
\;\;\;\;\pi \cdot \ell - \mathsf{expm1}\left(\frac{1}{F \cdot F} - \frac{0.5}{{F}^{4}}\right) \cdot t_0\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \ell + \frac{-1}{F \cdot \frac{F}{t_0}}\\
\end{array}