\[\left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot e^{-x}
\]
↓
\[\begin{array}{l}
t_0 := \sqrt{\cos x}\\
t_1 := e^{-x}\\
t_2 := \left(\left(e^{x}\right) \bmod t_0\right) \cdot t_1\\
\mathbf{if}\;t_2 \leq 0:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 2:\\
\;\;\;\;\frac{\left(\left(e^{x}\right) \bmod \log \left(e^{t_0}\right)\right)}{e^{x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (x) :precision binary64 (* (fmod (exp x) (sqrt (cos x))) (exp (- x))))
↓
(FPCore (x)
:precision binary64
(let* ((t_0 (sqrt (cos x)))
(t_1 (exp (- x)))
(t_2 (* (fmod (exp x) t_0) t_1)))
(if (<= t_2 0.0)
t_1
(if (<= t_2 2.0) (/ (fmod (exp x) (log (exp t_0))) (exp x)) t_1))))double code(double x) {
return fmod(exp(x), sqrt(cos(x))) * exp(-x);
}
↓
double code(double x) {
double t_0 = sqrt(cos(x));
double t_1 = exp(-x);
double t_2 = fmod(exp(x), t_0) * t_1;
double tmp;
if (t_2 <= 0.0) {
tmp = t_1;
} else if (t_2 <= 2.0) {
tmp = fmod(exp(x), log(exp(t_0))) / exp(x);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
code = mod(exp(x), sqrt(cos(x))) * exp(-x)
end function
↓
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = sqrt(cos(x))
t_1 = exp(-x)
t_2 = mod(exp(x), t_0) * t_1
if (t_2 <= 0.0d0) then
tmp = t_1
else if (t_2 <= 2.0d0) then
tmp = mod(exp(x), log(exp(t_0))) / exp(x)
else
tmp = t_1
end if
code = tmp
end function
def code(x):
return math.fmod(math.exp(x), math.sqrt(math.cos(x))) * math.exp(-x)
↓
def code(x):
t_0 = math.sqrt(math.cos(x))
t_1 = math.exp(-x)
t_2 = math.fmod(math.exp(x), t_0) * t_1
tmp = 0
if t_2 <= 0.0:
tmp = t_1
elif t_2 <= 2.0:
tmp = math.fmod(math.exp(x), math.log(math.exp(t_0))) / math.exp(x)
else:
tmp = t_1
return tmp
function code(x)
return Float64(rem(exp(x), sqrt(cos(x))) * exp(Float64(-x)))
end
↓
function code(x)
t_0 = sqrt(cos(x))
t_1 = exp(Float64(-x))
t_2 = Float64(rem(exp(x), t_0) * t_1)
tmp = 0.0
if (t_2 <= 0.0)
tmp = t_1;
elseif (t_2 <= 2.0)
tmp = Float64(rem(exp(x), log(exp(t_0))) / exp(x));
else
tmp = t_1;
end
return tmp
end
code[x_] := N[(N[With[{TMP1 = N[Exp[x], $MachinePrecision], TMP2 = N[Sqrt[N[Cos[x], $MachinePrecision]], $MachinePrecision]}, Mod[Abs[TMP1], Abs[TMP2]] * Sign[TMP1]], $MachinePrecision] * N[Exp[(-x)], $MachinePrecision]), $MachinePrecision]
↓
code[x_] := Block[{t$95$0 = N[Sqrt[N[Cos[x], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Exp[(-x)], $MachinePrecision]}, Block[{t$95$2 = N[(N[With[{TMP1 = N[Exp[x], $MachinePrecision], TMP2 = t$95$0}, Mod[Abs[TMP1], Abs[TMP2]] * Sign[TMP1]], $MachinePrecision] * t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, 0.0], t$95$1, If[LessEqual[t$95$2, 2.0], N[(N[With[{TMP1 = N[Exp[x], $MachinePrecision], TMP2 = N[Log[N[Exp[t$95$0], $MachinePrecision]], $MachinePrecision]}, Mod[Abs[TMP1], Abs[TMP2]] * Sign[TMP1]], $MachinePrecision] / N[Exp[x], $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot e^{-x}
↓
\begin{array}{l}
t_0 := \sqrt{\cos x}\\
t_1 := e^{-x}\\
t_2 := \left(\left(e^{x}\right) \bmod t_0\right) \cdot t_1\\
\mathbf{if}\;t_2 \leq 0:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 2:\\
\;\;\;\;\frac{\left(\left(e^{x}\right) \bmod \log \left(e^{t_0}\right)\right)}{e^{x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}