\[\left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot e^{-x}
\]
↓
\[\begin{array}{l}
t_0 := e^{-x}\\
t_1 := \left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot t_0\\
\mathbf{if}\;t_1 \leq 0 \lor \neg \left(t_1 \leq 2\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\log \left(e^{\frac{\left(\left(e^{x}\right) \bmod \left(\mathsf{fma}\left(x, x \cdot -0.25, 1\right)\right)\right)}{e^{x}}}\right)\\
\end{array}
\]
(FPCore (x) :precision binary64 (* (fmod (exp x) (sqrt (cos x))) (exp (- x))))
↓
(FPCore (x)
:precision binary64
(let* ((t_0 (exp (- x))) (t_1 (* (fmod (exp x) (sqrt (cos x))) t_0)))
(if (or (<= t_1 0.0) (not (<= t_1 2.0)))
t_0
(log (exp (/ (fmod (exp x) (fma x (* x -0.25) 1.0)) (exp x)))))))double code(double x) {
return fmod(exp(x), sqrt(cos(x))) * exp(-x);
}
↓
double code(double x) {
double t_0 = exp(-x);
double t_1 = fmod(exp(x), sqrt(cos(x))) * t_0;
double tmp;
if ((t_1 <= 0.0) || !(t_1 <= 2.0)) {
tmp = t_0;
} else {
tmp = log(exp((fmod(exp(x), fma(x, (x * -0.25), 1.0)) / exp(x))));
}
return tmp;
}
function code(x)
return Float64(rem(exp(x), sqrt(cos(x))) * exp(Float64(-x)))
end
↓
function code(x)
t_0 = exp(Float64(-x))
t_1 = Float64(rem(exp(x), sqrt(cos(x))) * t_0)
tmp = 0.0
if ((t_1 <= 0.0) || !(t_1 <= 2.0))
tmp = t_0;
else
tmp = log(exp(Float64(rem(exp(x), fma(x, Float64(x * -0.25), 1.0)) / exp(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[Exp[(-x)], $MachinePrecision]}, Block[{t$95$1 = N[(N[With[{TMP1 = N[Exp[x], $MachinePrecision], TMP2 = N[Sqrt[N[Cos[x], $MachinePrecision]], $MachinePrecision]}, Mod[Abs[TMP1], Abs[TMP2]] * Sign[TMP1]], $MachinePrecision] * t$95$0), $MachinePrecision]}, If[Or[LessEqual[t$95$1, 0.0], N[Not[LessEqual[t$95$1, 2.0]], $MachinePrecision]], t$95$0, N[Log[N[Exp[N[(N[With[{TMP1 = N[Exp[x], $MachinePrecision], TMP2 = N[(x * N[(x * -0.25), $MachinePrecision] + 1.0), $MachinePrecision]}, Mod[Abs[TMP1], Abs[TMP2]] * Sign[TMP1]], $MachinePrecision] / N[Exp[x], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]]]]
\left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot e^{-x}
↓
\begin{array}{l}
t_0 := e^{-x}\\
t_1 := \left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot t_0\\
\mathbf{if}\;t_1 \leq 0 \lor \neg \left(t_1 \leq 2\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\log \left(e^{\frac{\left(\left(e^{x}\right) \bmod \left(\mathsf{fma}\left(x, x \cdot -0.25, 1\right)\right)\right)}{e^{x}}}\right)\\
\end{array}