\[\left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot e^{-x}
\]
↓
\[\begin{array}{l}
t_0 := \log \left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right)\\
\mathbf{if}\;x \leq 0.002:\\
\;\;\;\;{\left(e^{{t_0}^{2} - x \cdot x}\right)}^{\left(\frac{1}{x + 0.3333333333333333 \cdot \left(t_0 \cdot 3\right)}\right)}\\
\mathbf{else}:\\
\;\;\;\;e^{-x}\\
\end{array}
\]
(FPCore (x) :precision binary64 (* (fmod (exp x) (sqrt (cos x))) (exp (- x))))
↓
(FPCore (x)
:precision binary64
(let* ((t_0 (log (fmod (exp x) (sqrt (cos x))))))
(if (<= x 0.002)
(pow
(exp (- (pow t_0 2.0) (* x x)))
(/ 1.0 (+ x (* 0.3333333333333333 (* t_0 3.0)))))
(exp (- x)))))double code(double x) {
return fmod(exp(x), sqrt(cos(x))) * exp(-x);
}
↓
double code(double x) {
double t_0 = log(fmod(exp(x), sqrt(cos(x))));
double tmp;
if (x <= 0.002) {
tmp = pow(exp((pow(t_0, 2.0) - (x * x))), (1.0 / (x + (0.3333333333333333 * (t_0 * 3.0)))));
} else {
tmp = exp(-x);
}
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) :: tmp
t_0 = log(mod(exp(x), sqrt(cos(x))))
if (x <= 0.002d0) then
tmp = exp(((t_0 ** 2.0d0) - (x * x))) ** (1.0d0 / (x + (0.3333333333333333d0 * (t_0 * 3.0d0))))
else
tmp = exp(-x)
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.log(math.fmod(math.exp(x), math.sqrt(math.cos(x))))
tmp = 0
if x <= 0.002:
tmp = math.pow(math.exp((math.pow(t_0, 2.0) - (x * x))), (1.0 / (x + (0.3333333333333333 * (t_0 * 3.0)))))
else:
tmp = math.exp(-x)
return tmp
function code(x)
return Float64(rem(exp(x), sqrt(cos(x))) * exp(Float64(-x)))
end
↓
function code(x)
t_0 = log(rem(exp(x), sqrt(cos(x))))
tmp = 0.0
if (x <= 0.002)
tmp = exp(Float64((t_0 ^ 2.0) - Float64(x * x))) ^ Float64(1.0 / Float64(x + Float64(0.3333333333333333 * Float64(t_0 * 3.0))));
else
tmp = exp(Float64(-x));
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[Log[N[With[{TMP1 = N[Exp[x], $MachinePrecision], TMP2 = N[Sqrt[N[Cos[x], $MachinePrecision]], $MachinePrecision]}, Mod[Abs[TMP1], Abs[TMP2]] * Sign[TMP1]], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x, 0.002], N[Power[N[Exp[N[(N[Power[t$95$0, 2.0], $MachinePrecision] - N[(x * x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(1.0 / N[(x + N[(0.3333333333333333 * N[(t$95$0 * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Exp[(-x)], $MachinePrecision]]]
\left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot e^{-x}
↓
\begin{array}{l}
t_0 := \log \left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right)\\
\mathbf{if}\;x \leq 0.002:\\
\;\;\;\;{\left(e^{{t_0}^{2} - x \cdot x}\right)}^{\left(\frac{1}{x + 0.3333333333333333 \cdot \left(t_0 \cdot 3\right)}\right)}\\
\mathbf{else}:\\
\;\;\;\;e^{-x}\\
\end{array}