Math FPCore C Java Python Julia MATLAB Wolfram TeX \[x + \frac{\left(y - x\right) \cdot z}{t}
\]
↓
\[\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 5 \cdot 10^{+303}\right):\\
\;\;\;\;x + z \cdot \frac{y - x}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t))) ↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) z) t))))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 5e+303)))
(+ x (* z (/ (- y x) t)))
t_1))) double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
↓
double code(double x, double y, double z, double t) {
double t_1 = x + (((y - x) * z) / t);
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 5e+303)) {
tmp = x + (z * ((y - x) / t));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
↓
public static double code(double x, double y, double z, double t) {
double t_1 = x + (((y - x) * z) / t);
double tmp;
if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 5e+303)) {
tmp = x + (z * ((y - x) / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t):
return x + (((y - x) * z) / t)
↓
def code(x, y, z, t):
t_1 = x + (((y - x) * z) / t)
tmp = 0
if (t_1 <= -math.inf) or not (t_1 <= 5e+303):
tmp = x + (z * ((y - x) / t))
else:
tmp = t_1
return tmp
function code(x, y, z, t)
return Float64(x + Float64(Float64(Float64(y - x) * z) / t))
end
↓
function code(x, y, z, t)
t_1 = Float64(x + Float64(Float64(Float64(y - x) * z) / t))
tmp = 0.0
if ((t_1 <= Float64(-Inf)) || !(t_1 <= 5e+303))
tmp = Float64(x + Float64(z * Float64(Float64(y - x) / t)));
else
tmp = t_1;
end
return tmp
end
function tmp = code(x, y, z, t)
tmp = x + (((y - x) * z) / t);
end
↓
function tmp_2 = code(x, y, z, t)
t_1 = x + (((y - x) * z) / t);
tmp = 0.0;
if ((t_1 <= -Inf) || ~((t_1 <= 5e+303)))
tmp = x + (z * ((y - x) / t));
else
tmp = t_1;
end
tmp_2 = tmp;
end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 5e+303]], $MachinePrecision]], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]
x + \frac{\left(y - x\right) \cdot z}{t}
↓
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 5 \cdot 10^{+303}\right):\\
\;\;\;\;x + z \cdot \frac{y - x}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
Alternatives Alternative 1 Error 24.8 Cost 1901
\[\begin{array}{l}
t_1 := z \cdot \frac{y - x}{t}\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+43}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{+16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-29}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -2.15 \cdot 10^{-78}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{-91}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -2.35 \cdot 10^{-167}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-167}:\\
\;\;\;\;z \cdot \frac{x}{-t}\\
\mathbf{elif}\;x \leq -5.4 \cdot 10^{-186}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.35 \cdot 10^{-262} \lor \neg \left(x \leq 1.1 \cdot 10^{-248}\right) \land x \leq 3.5 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 2 Error 9.2 Cost 976
\[\begin{array}{l}
t_1 := x - x \cdot \frac{z}{t}\\
t_2 := x + y \cdot \frac{z}{t}\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{-69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-213}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-79}:\\
\;\;\;\;x + \frac{z}{\frac{t}{y}}\\
\mathbf{elif}\;y \leq 5800:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 3 Error 9.4 Cost 976
\[\begin{array}{l}
t_1 := x + y \cdot \frac{z}{t}\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-213}:\\
\;\;\;\;x - x \cdot \frac{z}{t}\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-80}:\\
\;\;\;\;x + \frac{z}{\frac{t}{y}}\\
\mathbf{elif}\;y \leq 165:\\
\;\;\;\;x - \frac{x \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 25.9 Cost 849
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.7 \cdot 10^{-45}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.9 \cdot 10^{-261} \lor \neg \left(x \leq 2.6 \cdot 10^{-238}\right) \land x \leq 1.14 \cdot 10^{-147}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 5 Error 26.1 Cost 848
\[\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{-42}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-261}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-237}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 10^{-147}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 6 Error 4.6 Cost 841
\[\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{-193} \lor \neg \left(z \leq 8 \cdot 10^{-130}\right):\\
\;\;\;\;x + z \cdot \frac{y - x}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\end{array}
\]
Alternative 7 Error 9.2 Cost 713
\[\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{-203} \lor \neg \left(y \leq 1.52 \cdot 10^{-196}\right):\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{x}{t}\\
\end{array}
\]
Alternative 8 Error 11.2 Cost 580
\[\begin{array}{l}
\mathbf{if}\;z \leq 2 \cdot 10^{+117}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y - x}{t}\\
\end{array}
\]
Alternative 9 Error 1.8 Cost 576
\[x + \frac{y - x}{\frac{t}{z}}
\]
Alternative 10 Error 30.8 Cost 64
\[x
\]