Math FPCore C Java Python Julia MATLAB Wolfram TeX \[x \cdot \left(1 - y \cdot z\right)
\]
↓
\[\begin{array}{l}
t_0 := x \cdot \left(1 - y \cdot z\right)\\
\mathbf{if}\;t_0 \leq -\infty \lor \neg \left(t_0 \leq 2 \cdot 10^{+304}\right):\\
\;\;\;\;z \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x - x \cdot \left(y \cdot z\right)\\
\end{array}
\]
(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z)))) ↓
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 1.0 (* y z)))))
(if (or (<= t_0 (- INFINITY)) (not (<= t_0 2e+304)))
(* z (* y (- x)))
(- x (* x (* y z)))))) double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
↓
double code(double x, double y, double z) {
double t_0 = x * (1.0 - (y * z));
double tmp;
if ((t_0 <= -((double) INFINITY)) || !(t_0 <= 2e+304)) {
tmp = z * (y * -x);
} else {
tmp = x - (x * (y * z));
}
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 t_0 = x * (1.0 - (y * z));
double tmp;
if ((t_0 <= -Double.POSITIVE_INFINITY) || !(t_0 <= 2e+304)) {
tmp = z * (y * -x);
} else {
tmp = x - (x * (y * z));
}
return tmp;
}
def code(x, y, z):
return x * (1.0 - (y * z))
↓
def code(x, y, z):
t_0 = x * (1.0 - (y * z))
tmp = 0
if (t_0 <= -math.inf) or not (t_0 <= 2e+304):
tmp = z * (y * -x)
else:
tmp = x - (x * (y * z))
return tmp
function code(x, y, z)
return Float64(x * Float64(1.0 - Float64(y * z)))
end
↓
function code(x, y, z)
t_0 = Float64(x * Float64(1.0 - Float64(y * z)))
tmp = 0.0
if ((t_0 <= Float64(-Inf)) || !(t_0 <= 2e+304))
tmp = Float64(z * Float64(y * Float64(-x)));
else
tmp = Float64(x - Float64(x * Float64(y * z)));
end
return tmp
end
function tmp = code(x, y, z)
tmp = x * (1.0 - (y * z));
end
↓
function tmp_2 = code(x, y, z)
t_0 = x * (1.0 - (y * z));
tmp = 0.0;
if ((t_0 <= -Inf) || ~((t_0 <= 2e+304)))
tmp = z * (y * -x);
else
tmp = x - (x * (y * z));
end
tmp_2 = tmp;
end
code[x_, y_, z_] := N[(x * N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$0, (-Infinity)], N[Not[LessEqual[t$95$0, 2e+304]], $MachinePrecision]], N[(z * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], N[(x - N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
x \cdot \left(1 - y \cdot z\right)
↓
\begin{array}{l}
t_0 := x \cdot \left(1 - y \cdot z\right)\\
\mathbf{if}\;t_0 \leq -\infty \lor \neg \left(t_0 \leq 2 \cdot 10^{+304}\right):\\
\;\;\;\;z \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x - x \cdot \left(y \cdot z\right)\\
\end{array}