\[\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 := y \cdot \left(y \cdot -4\right)\\
t_1 := \mathsf{fma}\left(2 \cdot \left(\mathsf{hypot}\left(1, \frac{y}{x}\right) + -1\right), -8, 1\right)\\
t_2 := x \cdot x + y \cdot \left(y \cdot 4\right)\\
\mathbf{if}\;x \leq -6.722913512595512 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.0490240838541806 \cdot 10^{-142}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, x, t_0\right)}{t_2}\\
\mathbf{elif}\;x \leq 1.4438477659231532 \cdot 10^{-164}:\\
\;\;\;\;{\left(\sqrt[3]{-1 + \frac{\frac{x}{y}}{\frac{y}{x}} \cdot 0.25}\right)}^{3}\\
\mathbf{elif}\;x \leq 1.274894519557101 \cdot 10^{+113}:\\
\;\;\;\;\frac{x \cdot x + t_0}{t_2}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
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 = y * (y * -4.0);
double t_1 = fma((2.0 * (hypot(1.0, (y / x)) + -1.0)), -8.0, 1.0);
double t_2 = (x * x) + (y * (y * 4.0));
double tmp;
if (x <= -6.722913512595512e+84) {
tmp = t_1;
} else if (x <= -3.0490240838541806e-142) {
tmp = fma(x, x, t_0) / t_2;
} else if (x <= 1.4438477659231532e-164) {
tmp = pow(cbrt((-1.0 + (((x / y) / (y / x)) * 0.25))), 3.0);
} else if (x <= 1.274894519557101e+113) {
tmp = ((x * x) + t_0) / t_2;
} 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(y * Float64(y * -4.0))
t_1 = fma(Float64(2.0 * Float64(hypot(1.0, Float64(y / x)) + -1.0)), -8.0, 1.0)
t_2 = Float64(Float64(x * x) + Float64(y * Float64(y * 4.0)))
tmp = 0.0
if (x <= -6.722913512595512e+84)
tmp = t_1;
elseif (x <= -3.0490240838541806e-142)
tmp = Float64(fma(x, x, t_0) / t_2);
elseif (x <= 1.4438477659231532e-164)
tmp = cbrt(Float64(-1.0 + Float64(Float64(Float64(x / y) / Float64(y / x)) * 0.25))) ^ 3.0;
elseif (x <= 1.274894519557101e+113)
tmp = Float64(Float64(Float64(x * x) + t_0) / t_2);
else
tmp = t_1;
end
return 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[(y * N[(y * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(2.0 * N[(N[Sqrt[1.0 ^ 2 + N[(y / x), $MachinePrecision] ^ 2], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] * -8.0 + 1.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * x), $MachinePrecision] + N[(y * N[(y * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.722913512595512e+84], t$95$1, If[LessEqual[x, -3.0490240838541806e-142], N[(N[(x * x + t$95$0), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[x, 1.4438477659231532e-164], N[Power[N[Power[N[(-1.0 + N[(N[(N[(x / y), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision] * 0.25), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision], If[LessEqual[x, 1.274894519557101e+113], N[(N[(N[(x * x), $MachinePrecision] + t$95$0), $MachinePrecision] / t$95$2), $MachinePrecision], 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 := y \cdot \left(y \cdot -4\right)\\
t_1 := \mathsf{fma}\left(2 \cdot \left(\mathsf{hypot}\left(1, \frac{y}{x}\right) + -1\right), -8, 1\right)\\
t_2 := x \cdot x + y \cdot \left(y \cdot 4\right)\\
\mathbf{if}\;x \leq -6.722913512595512 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.0490240838541806 \cdot 10^{-142}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, x, t_0\right)}{t_2}\\
\mathbf{elif}\;x \leq 1.4438477659231532 \cdot 10^{-164}:\\
\;\;\;\;{\left(\sqrt[3]{-1 + \frac{\frac{x}{y}}{\frac{y}{x}} \cdot 0.25}\right)}^{3}\\
\mathbf{elif}\;x \leq 1.274894519557101 \cdot 10^{+113}:\\
\;\;\;\;\frac{x \cdot x + t_0}{t_2}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}