\[\frac{x \cdot \left(\frac{x}{y} + 1\right)}{x + 1}
\]
↓
\[\begin{array}{l}
t_0 := \frac{x \cdot \left(\frac{x}{y} + 1\right)}{x + 1}\\
\mathbf{if}\;t_0 \leq -1 \cdot 10^{+119}:\\
\;\;\;\;\begin{array}{l}
\mathbf{if}\;x \ne 0:\\
\;\;\;\;\frac{\frac{x}{\frac{y}{-x} - y}}{-1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y + x}{y} \cdot x}{x - -1}\\
\end{array}\\
\mathbf{elif}\;t_0 \leq 10^{+182}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + x} \cdot x}{y}\\
\end{array}
\]
(FPCore (x y) :precision binary64 (/ (* x (+ (/ x y) 1.0)) (+ x 1.0)))
↓
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* x (+ (/ x y) 1.0)) (+ x 1.0))))
(if (<= t_0 -1e+119)
(if (!= x 0.0)
(/ (/ x (- (/ y (- x)) y)) -1.0)
(/ (* (/ (+ y x) y) x) (- x -1.0)))
(if (<= t_0 1e+182) t_0 (/ (* (/ x (+ 1.0 x)) x) y)))))double code(double x, double y) {
return (x * ((x / y) + 1.0)) / (x + 1.0);
}
↓
double code(double x, double y) {
double t_0 = (x * ((x / y) + 1.0)) / (x + 1.0);
double tmp_1;
if (t_0 <= -1e+119) {
double tmp_2;
if (x != 0.0) {
tmp_2 = (x / ((y / -x) - y)) / -1.0;
} else {
tmp_2 = (((y + x) / y) * x) / (x - -1.0);
}
tmp_1 = tmp_2;
} else if (t_0 <= 1e+182) {
tmp_1 = t_0;
} else {
tmp_1 = ((x / (1.0 + x)) * x) / y;
}
return tmp_1;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x * ((x / y) + 1.0d0)) / (x + 1.0d0)
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
real(8) :: tmp_1
real(8) :: tmp_2
t_0 = (x * ((x / y) + 1.0d0)) / (x + 1.0d0)
if (t_0 <= (-1d+119)) then
if (x /= 0.0d0) then
tmp_2 = (x / ((y / -x) - y)) / (-1.0d0)
else
tmp_2 = (((y + x) / y) * x) / (x - (-1.0d0))
end if
tmp_1 = tmp_2
else if (t_0 <= 1d+182) then
tmp_1 = t_0
else
tmp_1 = ((x / (1.0d0 + x)) * x) / y
end if
code = tmp_1
end function
public static double code(double x, double y) {
return (x * ((x / y) + 1.0)) / (x + 1.0);
}
↓
public static double code(double x, double y) {
double t_0 = (x * ((x / y) + 1.0)) / (x + 1.0);
double tmp_1;
if (t_0 <= -1e+119) {
double tmp_2;
if (x != 0.0) {
tmp_2 = (x / ((y / -x) - y)) / -1.0;
} else {
tmp_2 = (((y + x) / y) * x) / (x - -1.0);
}
tmp_1 = tmp_2;
} else if (t_0 <= 1e+182) {
tmp_1 = t_0;
} else {
tmp_1 = ((x / (1.0 + x)) * x) / y;
}
return tmp_1;
}
def code(x, y):
return (x * ((x / y) + 1.0)) / (x + 1.0)
↓
def code(x, y):
t_0 = (x * ((x / y) + 1.0)) / (x + 1.0)
tmp_1 = 0
if t_0 <= -1e+119:
tmp_2 = 0
if x != 0.0:
tmp_2 = (x / ((y / -x) - y)) / -1.0
else:
tmp_2 = (((y + x) / y) * x) / (x - -1.0)
tmp_1 = tmp_2
elif t_0 <= 1e+182:
tmp_1 = t_0
else:
tmp_1 = ((x / (1.0 + x)) * x) / y
return tmp_1
function code(x, y)
return Float64(Float64(x * Float64(Float64(x / y) + 1.0)) / Float64(x + 1.0))
end
↓
function code(x, y)
t_0 = Float64(Float64(x * Float64(Float64(x / y) + 1.0)) / Float64(x + 1.0))
tmp_1 = 0.0
if (t_0 <= -1e+119)
tmp_2 = 0.0
if (x != 0.0)
tmp_2 = Float64(Float64(x / Float64(Float64(y / Float64(-x)) - y)) / -1.0);
else
tmp_2 = Float64(Float64(Float64(Float64(y + x) / y) * x) / Float64(x - -1.0));
end
tmp_1 = tmp_2;
elseif (t_0 <= 1e+182)
tmp_1 = t_0;
else
tmp_1 = Float64(Float64(Float64(x / Float64(1.0 + x)) * x) / y);
end
return tmp_1
end
function tmp = code(x, y)
tmp = (x * ((x / y) + 1.0)) / (x + 1.0);
end
↓
function tmp_4 = code(x, y)
t_0 = (x * ((x / y) + 1.0)) / (x + 1.0);
tmp_2 = 0.0;
if (t_0 <= -1e+119)
tmp_3 = 0.0;
if (x ~= 0.0)
tmp_3 = (x / ((y / -x) - y)) / -1.0;
else
tmp_3 = (((y + x) / y) * x) / (x - -1.0);
end
tmp_2 = tmp_3;
elseif (t_0 <= 1e+182)
tmp_2 = t_0;
else
tmp_2 = ((x / (1.0 + x)) * x) / y;
end
tmp_4 = tmp_2;
end
code[x_, y_] := N[(N[(x * N[(N[(x / y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := Block[{t$95$0 = N[(N[(x * N[(N[(x / y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -1e+119], If[Unequal[x, 0.0], N[(N[(x / N[(N[(y / (-x)), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision] / -1.0), $MachinePrecision], N[(N[(N[(N[(y + x), $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision] / N[(x - -1.0), $MachinePrecision]), $MachinePrecision]], If[LessEqual[t$95$0, 1e+182], t$95$0, N[(N[(N[(x / N[(1.0 + x), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]]]]
\frac{x \cdot \left(\frac{x}{y} + 1\right)}{x + 1}
↓
\begin{array}{l}
t_0 := \frac{x \cdot \left(\frac{x}{y} + 1\right)}{x + 1}\\
\mathbf{if}\;t_0 \leq -1 \cdot 10^{+119}:\\
\;\;\;\;\begin{array}{l}
\mathbf{if}\;x \ne 0:\\
\;\;\;\;\frac{\frac{x}{\frac{y}{-x} - y}}{-1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y + x}{y} \cdot x}{x - -1}\\
\end{array}\\
\mathbf{elif}\;t_0 \leq 10^{+182}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + x} \cdot x}{y}\\
\end{array}