\[\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 := \frac{x \cdot x - t_0}{x \cdot x + t_0}\\
\mathbf{if}\;x \cdot x \leq 5 \cdot 10^{-324}:\\
\;\;\;\;-1\\
\mathbf{elif}\;x \cdot x \leq 2 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot x \leq 5 \cdot 10^{-93}:\\
\;\;\;\;-1\\
\mathbf{elif}\;x \cdot x \leq 5 \cdot 10^{+251}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{x} \cdot \frac{y}{x}, -8, 1\right)\\
\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 (* y (* y 4.0))) (t_1 (/ (- (* x x) t_0) (+ (* x x) t_0))))
(if (<= (* x x) 5e-324)
-1.0
(if (<= (* x x) 2e-192)
t_1
(if (<= (* x x) 5e-93)
-1.0
(if (<= (* x x) 5e+251) t_1 (fma (* (/ y x) (/ y x)) -8.0 1.0)))))))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 = ((x * x) - t_0) / ((x * x) + t_0);
double tmp;
if ((x * x) <= 5e-324) {
tmp = -1.0;
} else if ((x * x) <= 2e-192) {
tmp = t_1;
} else if ((x * x) <= 5e-93) {
tmp = -1.0;
} else if ((x * x) <= 5e+251) {
tmp = t_1;
} else {
tmp = fma(((y / x) * (y / x)), -8.0, 1.0);
}
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 = Float64(Float64(Float64(x * x) - t_0) / Float64(Float64(x * x) + t_0))
tmp = 0.0
if (Float64(x * x) <= 5e-324)
tmp = -1.0;
elseif (Float64(x * x) <= 2e-192)
tmp = t_1;
elseif (Float64(x * x) <= 5e-93)
tmp = -1.0;
elseif (Float64(x * x) <= 5e+251)
tmp = t_1;
else
tmp = fma(Float64(Float64(y / x) * Float64(y / x)), -8.0, 1.0);
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[(N[(x * x), $MachinePrecision] - t$95$0), $MachinePrecision] / N[(N[(x * x), $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * x), $MachinePrecision], 5e-324], -1.0, If[LessEqual[N[(x * x), $MachinePrecision], 2e-192], t$95$1, If[LessEqual[N[(x * x), $MachinePrecision], 5e-93], -1.0, If[LessEqual[N[(x * x), $MachinePrecision], 5e+251], t$95$1, N[(N[(N[(y / x), $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision] * -8.0 + 1.0), $MachinePrecision]]]]]]]
\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 := \frac{x \cdot x - t_0}{x \cdot x + t_0}\\
\mathbf{if}\;x \cdot x \leq 5 \cdot 10^{-324}:\\
\;\;\;\;-1\\
\mathbf{elif}\;x \cdot x \leq 2 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot x \leq 5 \cdot 10^{-93}:\\
\;\;\;\;-1\\
\mathbf{elif}\;x \cdot x \leq 5 \cdot 10^{+251}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{x} \cdot \frac{y}{x}, -8, 1\right)\\
\end{array}