Math FPCore C Java Python Julia MATLAB Wolfram TeX \[x + \frac{y \cdot \left(z - x\right)}{t}
\]
↓
\[\begin{array}{l}
t_1 := x + \frac{y \cdot \left(z - x\right)}{t}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x + y \cdot \frac{z - x}{t}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+253}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - x\right) \cdot \frac{y}{t}\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (+ x (/ (* y (- z x)) t))) ↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (/ (* y (- z x)) t))))
(if (<= t_1 (- INFINITY))
(+ x (* y (/ (- z x) t)))
(if (<= t_1 2e+253) t_1 (+ x (* (- z x) (/ y t))))))) double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
↓
double code(double x, double y, double z, double t) {
double t_1 = x + ((y * (z - x)) / t);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + (y * ((z - x) / t));
} else if (t_1 <= 2e+253) {
tmp = t_1;
} else {
tmp = x + ((z - x) * (y / t));
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
↓
public static double code(double x, double y, double z, double t) {
double t_1 = x + ((y * (z - x)) / t);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + (y * ((z - x) / t));
} else if (t_1 <= 2e+253) {
tmp = t_1;
} else {
tmp = x + ((z - x) * (y / t));
}
return tmp;
}
def code(x, y, z, t):
return x + ((y * (z - x)) / t)
↓
def code(x, y, z, t):
t_1 = x + ((y * (z - x)) / t)
tmp = 0
if t_1 <= -math.inf:
tmp = x + (y * ((z - x) / t))
elif t_1 <= 2e+253:
tmp = t_1
else:
tmp = x + ((z - x) * (y / t))
return tmp
function code(x, y, z, t)
return Float64(x + Float64(Float64(y * Float64(z - x)) / t))
end
↓
function code(x, y, z, t)
t_1 = Float64(x + Float64(Float64(y * Float64(z - x)) / t))
tmp = 0.0
if (t_1 <= Float64(-Inf))
tmp = Float64(x + Float64(y * Float64(Float64(z - x) / t)));
elseif (t_1 <= 2e+253)
tmp = t_1;
else
tmp = Float64(x + Float64(Float64(z - x) * Float64(y / t)));
end
return tmp
end
function tmp = code(x, y, z, t)
tmp = x + ((y * (z - x)) / t);
end
↓
function tmp_2 = code(x, y, z, t)
t_1 = x + ((y * (z - x)) / t);
tmp = 0.0;
if (t_1 <= -Inf)
tmp = x + (y * ((z - x) / t));
elseif (t_1 <= 2e+253)
tmp = t_1;
else
tmp = x + ((z - x) * (y / t));
end
tmp_2 = tmp;
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(y * N[(N[(z - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+253], t$95$1, N[(x + N[(N[(z - x), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
x + \frac{y \cdot \left(z - x\right)}{t}
↓
\begin{array}{l}
t_1 := x + \frac{y \cdot \left(z - x\right)}{t}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x + y \cdot \frac{z - x}{t}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+253}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - x\right) \cdot \frac{y}{t}\\
\end{array}
Alternatives Alternative 1 Error 30.1 Cost 1112
\[\begin{array}{l}
t_1 := z \cdot \frac{y}{t}\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{+110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-244}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-262}:\\
\;\;\;\;x \cdot \frac{y}{-t}\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-41}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 10^{+79}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+127}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 6.9 Cost 972
\[\begin{array}{l}
t_1 := x + y \cdot \frac{z - x}{t}\\
\mathbf{if}\;x \leq -1 \cdot 10^{-189}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-269}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;x \leq 4.9 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{t}\right)\\
\end{array}
\]
Alternative 3 Error 18.3 Cost 844
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{t}\right)\\
\mathbf{if}\;x \leq -6 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-136}:\\
\;\;\;\;y \cdot \frac{z - x}{t}\\
\mathbf{elif}\;x \leq 2.65 \cdot 10^{-244}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 2.0 Cost 840
\[\begin{array}{l}
\mathbf{if}\;y \leq 10^{-41}:\\
\;\;\;\;x + \left(z - x\right) \cdot \frac{y}{t}\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+216}:\\
\;\;\;\;x + y \cdot \frac{z - x}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{t} \cdot \left(z - x\right)\\
\end{array}
\]
Alternative 5 Error 2.0 Cost 840
\[\begin{array}{l}
\mathbf{if}\;y \leq 6.8 \cdot 10^{-41}:\\
\;\;\;\;x + \left(z - x\right) \cdot \frac{y}{t}\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+216}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z - x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{t} \cdot \left(z - x\right)\\
\end{array}
\]
Alternative 6 Error 19.0 Cost 712
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{t}\right)\\
\mathbf{if}\;x \leq -6 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-244}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 16.8 Cost 712
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{t}\right)\\
\mathbf{if}\;x \leq -6 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.16 \cdot 10^{-212}:\\
\;\;\;\;\frac{y}{t} \cdot \left(z - x\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 8 Error 10.7 Cost 712
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{t}\right)\\
\mathbf{if}\;x \leq -2.1 \cdot 10^{-45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-35}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 9 Error 10.5 Cost 712
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{t}\right)\\
\mathbf{if}\;x \leq -2.2 \cdot 10^{-39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.58 \cdot 10^{-27}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 10 Error 27.8 Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{-51}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-243}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 11 Error 26.6 Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{-51}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-210}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 12 Error 31.9 Cost 64
\[x
\]