Math FPCore C Java Python Julia MATLAB Wolfram TeX \[\frac{x \cdot \left(y - z\right)}{y}
\]
↓
\[\begin{array}{l}
t_0 := \frac{x \cdot \left(y - z\right)}{y}\\
t_1 := x - \frac{x}{\frac{y}{z}}\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 \leq -2 \cdot 10^{+85}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 \leq 2 \cdot 10^{+293}:\\
\;\;\;\;x - \frac{1}{\frac{y}{x \cdot z}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{y}\right)\\
\end{array}
\]
(FPCore (x y z) :precision binary64 (/ (* x (- y z)) y)) ↓
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (* x (- y z)) y)) (t_1 (- x (/ x (/ y z)))))
(if (<= t_0 (- INFINITY))
t_1
(if (<= t_0 -2e+85)
t_0
(if (<= t_0 5e+14)
t_1
(if (<= t_0 2e+293)
(- x (/ 1.0 (/ y (* x z))))
(* x (- 1.0 (/ z y))))))))) double code(double x, double y, double z) {
return (x * (y - z)) / y;
}
↓
double code(double x, double y, double z) {
double t_0 = (x * (y - z)) / y;
double t_1 = x - (x / (y / z));
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_0 <= -2e+85) {
tmp = t_0;
} else if (t_0 <= 5e+14) {
tmp = t_1;
} else if (t_0 <= 2e+293) {
tmp = x - (1.0 / (y / (x * z)));
} else {
tmp = x * (1.0 - (z / y));
}
return tmp;
}
public static double code(double x, double y, double z) {
return (x * (y - z)) / y;
}
↓
public static double code(double x, double y, double z) {
double t_0 = (x * (y - z)) / y;
double t_1 = x - (x / (y / z));
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_0 <= -2e+85) {
tmp = t_0;
} else if (t_0 <= 5e+14) {
tmp = t_1;
} else if (t_0 <= 2e+293) {
tmp = x - (1.0 / (y / (x * z)));
} else {
tmp = x * (1.0 - (z / y));
}
return tmp;
}
def code(x, y, z):
return (x * (y - z)) / y
↓
def code(x, y, z):
t_0 = (x * (y - z)) / y
t_1 = x - (x / (y / z))
tmp = 0
if t_0 <= -math.inf:
tmp = t_1
elif t_0 <= -2e+85:
tmp = t_0
elif t_0 <= 5e+14:
tmp = t_1
elif t_0 <= 2e+293:
tmp = x - (1.0 / (y / (x * z)))
else:
tmp = x * (1.0 - (z / y))
return tmp
function code(x, y, z)
return Float64(Float64(x * Float64(y - z)) / y)
end
↓
function code(x, y, z)
t_0 = Float64(Float64(x * Float64(y - z)) / y)
t_1 = Float64(x - Float64(x / Float64(y / z)))
tmp = 0.0
if (t_0 <= Float64(-Inf))
tmp = t_1;
elseif (t_0 <= -2e+85)
tmp = t_0;
elseif (t_0 <= 5e+14)
tmp = t_1;
elseif (t_0 <= 2e+293)
tmp = Float64(x - Float64(1.0 / Float64(y / Float64(x * z))));
else
tmp = Float64(x * Float64(1.0 - Float64(z / y)));
end
return tmp
end
function tmp = code(x, y, z)
tmp = (x * (y - z)) / y;
end
↓
function tmp_2 = code(x, y, z)
t_0 = (x * (y - z)) / y;
t_1 = x - (x / (y / z));
tmp = 0.0;
if (t_0 <= -Inf)
tmp = t_1;
elseif (t_0 <= -2e+85)
tmp = t_0;
elseif (t_0 <= 5e+14)
tmp = t_1;
elseif (t_0 <= 2e+293)
tmp = x - (1.0 / (y / (x * z)));
else
tmp = x * (1.0 - (z / y));
end
tmp_2 = tmp;
end
code[x_, y_, z_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
↓
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$1 = N[(x - N[(x / N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], t$95$1, If[LessEqual[t$95$0, -2e+85], t$95$0, If[LessEqual[t$95$0, 5e+14], t$95$1, If[LessEqual[t$95$0, 2e+293], N[(x - N[(1.0 / N[(y / N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\frac{x \cdot \left(y - z\right)}{y}
↓
\begin{array}{l}
t_0 := \frac{x \cdot \left(y - z\right)}{y}\\
t_1 := x - \frac{x}{\frac{y}{z}}\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 \leq -2 \cdot 10^{+85}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 \leq 2 \cdot 10^{+293}:\\
\;\;\;\;x - \frac{1}{\frac{y}{x \cdot z}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{y}\right)\\
\end{array}