Math FPCore C Java Python Julia MATLAB Wolfram TeX \[\frac{x}{y - z \cdot t}
\]
↓
\[\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -\infty:\\
\;\;\;\;\frac{-1}{t \cdot \frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y - z \cdot t}\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (/ x (- y (* z t)))) ↓
(FPCore (x y z t)
:precision binary64
(if (<= (* z t) (- INFINITY)) (/ -1.0 (* t (/ z x))) (/ x (- y (* z t))))) double code(double x, double y, double z, double t) {
return x / (y - (z * t));
}
↓
double code(double x, double y, double z, double t) {
double tmp;
if ((z * t) <= -((double) INFINITY)) {
tmp = -1.0 / (t * (z / x));
} else {
tmp = x / (y - (z * t));
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
return x / (y - (z * t));
}
↓
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z * t) <= -Double.POSITIVE_INFINITY) {
tmp = -1.0 / (t * (z / x));
} else {
tmp = x / (y - (z * t));
}
return tmp;
}
def code(x, y, z, t):
return x / (y - (z * t))
↓
def code(x, y, z, t):
tmp = 0
if (z * t) <= -math.inf:
tmp = -1.0 / (t * (z / x))
else:
tmp = x / (y - (z * t))
return tmp
function code(x, y, z, t)
return Float64(x / Float64(y - Float64(z * t)))
end
↓
function code(x, y, z, t)
tmp = 0.0
if (Float64(z * t) <= Float64(-Inf))
tmp = Float64(-1.0 / Float64(t * Float64(z / x)));
else
tmp = Float64(x / Float64(y - Float64(z * t)));
end
return tmp
end
function tmp = code(x, y, z, t)
tmp = x / (y - (z * t));
end
↓
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z * t) <= -Inf)
tmp = -1.0 / (t * (z / x));
else
tmp = x / (y - (z * t));
end
tmp_2 = tmp;
end
code[x_, y_, z_, t_] := N[(x / N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := If[LessEqual[N[(z * t), $MachinePrecision], (-Infinity)], N[(-1.0 / N[(t * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\frac{x}{y - z \cdot t}
↓
\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -\infty:\\
\;\;\;\;\frac{-1}{t \cdot \frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y - z \cdot t}\\
\end{array}