\[\frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{x \cdot x + \left(y \cdot 4\right) \cdot y}
\]
↓
\[\begin{array}{l}
t_0 := \frac{x \cdot x + y \cdot \left(y \cdot -4\right)}{x \cdot x + y \cdot \left(y \cdot 4\right)}\\
t_1 := x \cdot \left(\frac{x}{y} \cdot \frac{0.5}{y}\right) + -1\\
\mathbf{if}\;y \leq -2.4436323698919533 \cdot 10^{+147}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.6867040915893832 \cdot 10^{+100}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -6.7933713157284745 \cdot 10^{-109}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2.5810994404034106 \cdot 10^{-80}:\\
\;\;\;\;1 + -8 \cdot {\left(\frac{x}{y}\right)}^{-2}\\
\mathbf{elif}\;y \leq 5.433502616953344 \cdot 10^{+91}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (x y)
:precision binary64
(/ (- (* x x) (* (* y 4.0) y)) (+ (* x x) (* (* y 4.0) y))))
↓
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (+ (* x x) (* y (* y -4.0))) (+ (* x x) (* y (* y 4.0)))))
(t_1 (+ (* x (* (/ x y) (/ 0.5 y))) -1.0)))
(if (<= y -2.4436323698919533e+147)
t_1
(if (<= y -1.6867040915893832e+100)
1.0
(if (<= y -6.7933713157284745e-109)
t_0
(if (<= y 2.5810994404034106e-80)
(+ 1.0 (* -8.0 (pow (/ x y) -2.0)))
(if (<= y 5.433502616953344e+91) t_0 t_1)))))))double code(double x, double y) {
return ((x * x) - ((y * 4.0) * y)) / ((x * x) + ((y * 4.0) * y));
}
↓
double code(double x, double y) {
double t_0 = ((x * x) + (y * (y * -4.0))) / ((x * x) + (y * (y * 4.0)));
double t_1 = (x * ((x / y) * (0.5 / y))) + -1.0;
double tmp;
if (y <= -2.4436323698919533e+147) {
tmp = t_1;
} else if (y <= -1.6867040915893832e+100) {
tmp = 1.0;
} else if (y <= -6.7933713157284745e-109) {
tmp = t_0;
} else if (y <= 2.5810994404034106e-80) {
tmp = 1.0 + (-8.0 * pow((x / y), -2.0));
} else if (y <= 5.433502616953344e+91) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((x * x) - ((y * 4.0d0) * y)) / ((x * x) + ((y * 4.0d0) * y))
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = ((x * x) + (y * (y * (-4.0d0)))) / ((x * x) + (y * (y * 4.0d0)))
t_1 = (x * ((x / y) * (0.5d0 / y))) + (-1.0d0)
if (y <= (-2.4436323698919533d+147)) then
tmp = t_1
else if (y <= (-1.6867040915893832d+100)) then
tmp = 1.0d0
else if (y <= (-6.7933713157284745d-109)) then
tmp = t_0
else if (y <= 2.5810994404034106d-80) then
tmp = 1.0d0 + ((-8.0d0) * ((x / y) ** (-2.0d0)))
else if (y <= 5.433502616953344d+91) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y) {
return ((x * x) - ((y * 4.0) * y)) / ((x * x) + ((y * 4.0) * y));
}
↓
public static double code(double x, double y) {
double t_0 = ((x * x) + (y * (y * -4.0))) / ((x * x) + (y * (y * 4.0)));
double t_1 = (x * ((x / y) * (0.5 / y))) + -1.0;
double tmp;
if (y <= -2.4436323698919533e+147) {
tmp = t_1;
} else if (y <= -1.6867040915893832e+100) {
tmp = 1.0;
} else if (y <= -6.7933713157284745e-109) {
tmp = t_0;
} else if (y <= 2.5810994404034106e-80) {
tmp = 1.0 + (-8.0 * Math.pow((x / y), -2.0));
} else if (y <= 5.433502616953344e+91) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y):
return ((x * x) - ((y * 4.0) * y)) / ((x * x) + ((y * 4.0) * y))
↓
def code(x, y):
t_0 = ((x * x) + (y * (y * -4.0))) / ((x * x) + (y * (y * 4.0)))
t_1 = (x * ((x / y) * (0.5 / y))) + -1.0
tmp = 0
if y <= -2.4436323698919533e+147:
tmp = t_1
elif y <= -1.6867040915893832e+100:
tmp = 1.0
elif y <= -6.7933713157284745e-109:
tmp = t_0
elif y <= 2.5810994404034106e-80:
tmp = 1.0 + (-8.0 * math.pow((x / y), -2.0))
elif y <= 5.433502616953344e+91:
tmp = t_0
else:
tmp = t_1
return tmp
function code(x, y)
return Float64(Float64(Float64(x * x) - Float64(Float64(y * 4.0) * y)) / Float64(Float64(x * x) + Float64(Float64(y * 4.0) * y)))
end
↓
function code(x, y)
t_0 = Float64(Float64(Float64(x * x) + Float64(y * Float64(y * -4.0))) / Float64(Float64(x * x) + Float64(y * Float64(y * 4.0))))
t_1 = Float64(Float64(x * Float64(Float64(x / y) * Float64(0.5 / y))) + -1.0)
tmp = 0.0
if (y <= -2.4436323698919533e+147)
tmp = t_1;
elseif (y <= -1.6867040915893832e+100)
tmp = 1.0;
elseif (y <= -6.7933713157284745e-109)
tmp = t_0;
elseif (y <= 2.5810994404034106e-80)
tmp = Float64(1.0 + Float64(-8.0 * (Float64(x / y) ^ -2.0)));
elseif (y <= 5.433502616953344e+91)
tmp = t_0;
else
tmp = t_1;
end
return tmp
end
function tmp = code(x, y)
tmp = ((x * x) - ((y * 4.0) * y)) / ((x * x) + ((y * 4.0) * y));
end
↓
function tmp_2 = code(x, y)
t_0 = ((x * x) + (y * (y * -4.0))) / ((x * x) + (y * (y * 4.0)));
t_1 = (x * ((x / y) * (0.5 / y))) + -1.0;
tmp = 0.0;
if (y <= -2.4436323698919533e+147)
tmp = t_1;
elseif (y <= -1.6867040915893832e+100)
tmp = 1.0;
elseif (y <= -6.7933713157284745e-109)
tmp = t_0;
elseif (y <= 2.5810994404034106e-80)
tmp = 1.0 + (-8.0 * ((x / y) ^ -2.0));
elseif (y <= 5.433502616953344e+91)
tmp = t_0;
else
tmp = t_1;
end
tmp_2 = tmp;
end
code[x_, y_] := N[(N[(N[(x * x), $MachinePrecision] - N[(N[(y * 4.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(N[(x * x), $MachinePrecision] + N[(N[(y * 4.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := Block[{t$95$0 = N[(N[(N[(x * x), $MachinePrecision] + N[(y * N[(y * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * x), $MachinePrecision] + N[(y * N[(y * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x / y), $MachinePrecision] * N[(0.5 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]}, If[LessEqual[y, -2.4436323698919533e+147], t$95$1, If[LessEqual[y, -1.6867040915893832e+100], 1.0, If[LessEqual[y, -6.7933713157284745e-109], t$95$0, If[LessEqual[y, 2.5810994404034106e-80], N[(1.0 + N[(-8.0 * N[Power[N[(x / y), $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.433502616953344e+91], t$95$0, t$95$1]]]]]]]
\frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{x \cdot x + \left(y \cdot 4\right) \cdot y}
↓
\begin{array}{l}
t_0 := \frac{x \cdot x + y \cdot \left(y \cdot -4\right)}{x \cdot x + y \cdot \left(y \cdot 4\right)}\\
t_1 := x \cdot \left(\frac{x}{y} \cdot \frac{0.5}{y}\right) + -1\\
\mathbf{if}\;y \leq -2.4436323698919533 \cdot 10^{+147}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.6867040915893832 \cdot 10^{+100}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -6.7933713157284745 \cdot 10^{-109}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2.5810994404034106 \cdot 10^{-80}:\\
\;\;\;\;1 + -8 \cdot {\left(\frac{x}{y}\right)}^{-2}\\
\mathbf{elif}\;y \leq 5.433502616953344 \cdot 10^{+91}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}