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}\\
\mathbf{if}\;t_0 \leq -\infty \lor \neg \left(t_0 \leq -5 \cdot 10^{-229}\right) \land \left(t_0 \leq 2 \cdot 10^{-152} \lor \neg \left(t_0 \leq 10^{+288}\right)\right):\\
\;\;\;\;x - z \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\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)))
(if (or (<= t_0 (- INFINITY))
(and (not (<= t_0 -5e-229))
(or (<= t_0 2e-152) (not (<= t_0 1e+288)))))
(- x (* z (/ x y)))
t_0))) 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 tmp;
if ((t_0 <= -((double) INFINITY)) || (!(t_0 <= -5e-229) && ((t_0 <= 2e-152) || !(t_0 <= 1e+288)))) {
tmp = x - (z * (x / y));
} else {
tmp = t_0;
}
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 tmp;
if ((t_0 <= -Double.POSITIVE_INFINITY) || (!(t_0 <= -5e-229) && ((t_0 <= 2e-152) || !(t_0 <= 1e+288)))) {
tmp = x - (z * (x / y));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z):
return (x * (y - z)) / y
↓
def code(x, y, z):
t_0 = (x * (y - z)) / y
tmp = 0
if (t_0 <= -math.inf) or (not (t_0 <= -5e-229) and ((t_0 <= 2e-152) or not (t_0 <= 1e+288))):
tmp = x - (z * (x / y))
else:
tmp = t_0
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)
tmp = 0.0
if ((t_0 <= Float64(-Inf)) || (!(t_0 <= -5e-229) && ((t_0 <= 2e-152) || !(t_0 <= 1e+288))))
tmp = Float64(x - Float64(z * Float64(x / y)));
else
tmp = t_0;
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;
tmp = 0.0;
if ((t_0 <= -Inf) || (~((t_0 <= -5e-229)) && ((t_0 <= 2e-152) || ~((t_0 <= 1e+288)))))
tmp = x - (z * (x / y));
else
tmp = t_0;
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]}, If[Or[LessEqual[t$95$0, (-Infinity)], And[N[Not[LessEqual[t$95$0, -5e-229]], $MachinePrecision], Or[LessEqual[t$95$0, 2e-152], N[Not[LessEqual[t$95$0, 1e+288]], $MachinePrecision]]]], N[(x - N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]
\frac{x \cdot \left(y - z\right)}{y}
↓
\begin{array}{l}
t_0 := \frac{x \cdot \left(y - z\right)}{y}\\
\mathbf{if}\;t_0 \leq -\infty \lor \neg \left(t_0 \leq -5 \cdot 10^{-229}\right) \land \left(t_0 \leq 2 \cdot 10^{-152} \lor \neg \left(t_0 \leq 10^{+288}\right)\right):\\
\;\;\;\;x - z \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}