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