\[1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|}
\]
↓
\[\begin{array}{l}
t_0 := 1 + \left|x\right| \cdot 0.3275911\\
t_1 := \frac{1}{t_0}\\
t_2 := \frac{1}{1 + x \cdot 0.3275911}\\
\mathbf{if}\;\left|x\right| \leq 5 \cdot 10^{-7}:\\
\;\;\;\;10^{-9} + \sqrt{e^{\log \left(1.2732557730789702 \cdot \left(x \cdot x\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;1 - t_1 \cdot \left(\left(0.254829592 + t_2 \cdot \left(-0.284496736 + t_1 \cdot \left(1.421413741 + t_2 \cdot \left(-1.453152027 + \frac{1.061405429}{t_0}\right)\right)\right)\right) \cdot e^{x \cdot \left(-x\right)}\right)\\
\end{array}
\]
(FPCore (x)
:precision binary64
(-
1.0
(*
(*
(/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
(+
0.254829592
(*
(/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
(+
-0.284496736
(*
(/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
(+
1.421413741
(*
(/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
(+
-1.453152027
(* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429)))))))))
(exp (- (* (fabs x) (fabs x)))))))↓
(FPCore (x)
:precision binary64
(let* ((t_0 (+ 1.0 (* (fabs x) 0.3275911)))
(t_1 (/ 1.0 t_0))
(t_2 (/ 1.0 (+ 1.0 (* x 0.3275911)))))
(if (<= (fabs x) 5e-7)
(+ 1e-9 (sqrt (exp (log (* 1.2732557730789702 (* x x))))))
(-
1.0
(*
t_1
(*
(+
0.254829592
(*
t_2
(+
-0.284496736
(*
t_1
(+ 1.421413741 (* t_2 (+ -1.453152027 (/ 1.061405429 t_0))))))))
(exp (* x (- x)))))))))double code(double x) {
return 1.0 - (((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * 1.061405429))))))))) * exp(-(fabs(x) * fabs(x))));
}
↓
double code(double x) {
double t_0 = 1.0 + (fabs(x) * 0.3275911);
double t_1 = 1.0 / t_0;
double t_2 = 1.0 / (1.0 + (x * 0.3275911));
double tmp;
if (fabs(x) <= 5e-7) {
tmp = 1e-9 + sqrt(exp(log((1.2732557730789702 * (x * x)))));
} else {
tmp = 1.0 - (t_1 * ((0.254829592 + (t_2 * (-0.284496736 + (t_1 * (1.421413741 + (t_2 * (-1.453152027 + (1.061405429 / t_0)))))))) * exp((x * -x))));
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
code = 1.0d0 - (((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * (0.254829592d0 + ((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * ((-0.284496736d0) + ((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * (1.421413741d0 + ((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * ((-1.453152027d0) + ((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * 1.061405429d0))))))))) * exp(-(abs(x) * abs(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 = 1.0d0 + (abs(x) * 0.3275911d0)
t_1 = 1.0d0 / t_0
t_2 = 1.0d0 / (1.0d0 + (x * 0.3275911d0))
if (abs(x) <= 5d-7) then
tmp = 1d-9 + sqrt(exp(log((1.2732557730789702d0 * (x * x)))))
else
tmp = 1.0d0 - (t_1 * ((0.254829592d0 + (t_2 * ((-0.284496736d0) + (t_1 * (1.421413741d0 + (t_2 * ((-1.453152027d0) + (1.061405429d0 / t_0)))))))) * exp((x * -x))))
end if
code = tmp
end function
public static double code(double x) {
return 1.0 - (((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * 1.061405429))))))))) * Math.exp(-(Math.abs(x) * Math.abs(x))));
}
↓
public static double code(double x) {
double t_0 = 1.0 + (Math.abs(x) * 0.3275911);
double t_1 = 1.0 / t_0;
double t_2 = 1.0 / (1.0 + (x * 0.3275911));
double tmp;
if (Math.abs(x) <= 5e-7) {
tmp = 1e-9 + Math.sqrt(Math.exp(Math.log((1.2732557730789702 * (x * x)))));
} else {
tmp = 1.0 - (t_1 * ((0.254829592 + (t_2 * (-0.284496736 + (t_1 * (1.421413741 + (t_2 * (-1.453152027 + (1.061405429 / t_0)))))))) * Math.exp((x * -x))));
}
return tmp;
}
def code(x):
return 1.0 - (((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * 1.061405429))))))))) * math.exp(-(math.fabs(x) * math.fabs(x))))
↓
def code(x):
t_0 = 1.0 + (math.fabs(x) * 0.3275911)
t_1 = 1.0 / t_0
t_2 = 1.0 / (1.0 + (x * 0.3275911))
tmp = 0
if math.fabs(x) <= 5e-7:
tmp = 1e-9 + math.sqrt(math.exp(math.log((1.2732557730789702 * (x * x)))))
else:
tmp = 1.0 - (t_1 * ((0.254829592 + (t_2 * (-0.284496736 + (t_1 * (1.421413741 + (t_2 * (-1.453152027 + (1.061405429 / t_0)))))))) * math.exp((x * -x))))
return tmp
function code(x)
return Float64(1.0 - Float64(Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(0.254829592 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(-0.284496736 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(1.421413741 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(-1.453152027 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * 1.061405429))))))))) * exp(Float64(-Float64(abs(x) * abs(x))))))
end
↓
function code(x)
t_0 = Float64(1.0 + Float64(abs(x) * 0.3275911))
t_1 = Float64(1.0 / t_0)
t_2 = Float64(1.0 / Float64(1.0 + Float64(x * 0.3275911)))
tmp = 0.0
if (abs(x) <= 5e-7)
tmp = Float64(1e-9 + sqrt(exp(log(Float64(1.2732557730789702 * Float64(x * x))))));
else
tmp = Float64(1.0 - Float64(t_1 * Float64(Float64(0.254829592 + Float64(t_2 * Float64(-0.284496736 + Float64(t_1 * Float64(1.421413741 + Float64(t_2 * Float64(-1.453152027 + Float64(1.061405429 / t_0)))))))) * exp(Float64(x * Float64(-x))))));
end
return tmp
end
function tmp = code(x)
tmp = 1.0 - (((1.0 / (1.0 + (0.3275911 * abs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * abs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * abs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * abs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * abs(x)))) * 1.061405429))))))))) * exp(-(abs(x) * abs(x))));
end
↓
function tmp_2 = code(x)
t_0 = 1.0 + (abs(x) * 0.3275911);
t_1 = 1.0 / t_0;
t_2 = 1.0 / (1.0 + (x * 0.3275911));
tmp = 0.0;
if (abs(x) <= 5e-7)
tmp = 1e-9 + sqrt(exp(log((1.2732557730789702 * (x * x)))));
else
tmp = 1.0 - (t_1 * ((0.254829592 + (t_2 * (-0.284496736 + (t_1 * (1.421413741 + (t_2 * (-1.453152027 + (1.061405429 / t_0)))))))) * exp((x * -x))));
end
tmp_2 = tmp;
end
code[x_] := N[(1.0 - N[(N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(0.254829592 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(-0.284496736 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.421413741 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(-1.453152027 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 1.061405429), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Exp[(-N[(N[Abs[x], $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_] := Block[{t$95$0 = N[(1.0 + N[(N[Abs[x], $MachinePrecision] * 0.3275911), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(1.0 / t$95$0), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 / N[(1.0 + N[(x * 0.3275911), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[Abs[x], $MachinePrecision], 5e-7], N[(1e-9 + N[Sqrt[N[Exp[N[Log[N[(1.2732557730789702 * N[(x * x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(t$95$1 * N[(N[(0.254829592 + N[(t$95$2 * N[(-0.284496736 + N[(t$95$1 * N[(1.421413741 + N[(t$95$2 * N[(-1.453152027 + N[(1.061405429 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Exp[N[(x * (-x)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|}
↓
\begin{array}{l}
t_0 := 1 + \left|x\right| \cdot 0.3275911\\
t_1 := \frac{1}{t_0}\\
t_2 := \frac{1}{1 + x \cdot 0.3275911}\\
\mathbf{if}\;\left|x\right| \leq 5 \cdot 10^{-7}:\\
\;\;\;\;10^{-9} + \sqrt{e^{\log \left(1.2732557730789702 \cdot \left(x \cdot x\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;1 - t_1 \cdot \left(\left(0.254829592 + t_2 \cdot \left(-0.284496736 + t_1 \cdot \left(1.421413741 + t_2 \cdot \left(-1.453152027 + \frac{1.061405429}{t_0}\right)\right)\right)\right) \cdot e^{x \cdot \left(-x\right)}\right)\\
\end{array}