Math FPCore C Fortran 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}\\
t_2 := x + z \cdot \frac{y - x}{t}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{+288}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_1 \leq 10^{+293}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\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))) (t_2 (+ x (* z (/ (- y x) t)))))
(if (<= t_1 -4e+288) t_2 (if (<= t_1 1e+293) t_1 t_2)))) 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 t_2 = x + (z * ((y - x) / t));
double tmp;
if (t_1 <= -4e+288) {
tmp = t_2;
} else if (t_1 <= 1e+293) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((y - x) * z) / t)
end function
↓
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (((y - x) * z) / t)
t_2 = x + (z * ((y - x) / t))
if (t_1 <= (-4d+288)) then
tmp = t_2
else if (t_1 <= 1d+293) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
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 t_2 = x + (z * ((y - x) / t));
double tmp;
if (t_1 <= -4e+288) {
tmp = t_2;
} else if (t_1 <= 1e+293) {
tmp = t_1;
} else {
tmp = t_2;
}
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)
t_2 = x + (z * ((y - x) / t))
tmp = 0
if t_1 <= -4e+288:
tmp = t_2
elif t_1 <= 1e+293:
tmp = t_1
else:
tmp = t_2
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))
t_2 = Float64(x + Float64(z * Float64(Float64(y - x) / t)))
tmp = 0.0
if (t_1 <= -4e+288)
tmp = t_2;
elseif (t_1 <= 1e+293)
tmp = t_1;
else
tmp = t_2;
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);
t_2 = x + (z * ((y - x) / t));
tmp = 0.0;
if (t_1 <= -4e+288)
tmp = t_2;
elseif (t_1 <= 1e+293)
tmp = t_1;
else
tmp = t_2;
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]}, Block[{t$95$2 = N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+288], t$95$2, If[LessEqual[t$95$1, 1e+293], t$95$1, t$95$2]]]]
x + \frac{\left(y - x\right) \cdot z}{t}
↓
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot z}{t}\\
t_2 := x + z \cdot \frac{y - x}{t}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{+288}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_1 \leq 10^{+293}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
Alternatives Alternative 1 Error 28.5 Cost 1376
\[\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \cdot 10^{+192}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{+133}:\\
\;\;\;\;x \cdot \frac{z}{-t}\\
\mathbf{elif}\;x \leq -3.3 \cdot 10^{-146}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-302}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;x \leq 5.3 \cdot 10^{-297}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-209}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{-174}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-54}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 2 Error 28.6 Cost 1376
\[\begin{array}{l}
\mathbf{if}\;x \leq -5 \cdot 10^{+194}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -6 \cdot 10^{+133}:\\
\;\;\;\;\frac{-x}{\frac{t}{z}}\\
\mathbf{elif}\;x \leq -3.3 \cdot 10^{-146}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-302}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;x \leq 5.3 \cdot 10^{-297}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-209}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-175}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-54}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 3 Error 19.9 Cost 976
\[\begin{array}{l}
t_1 := \left(y - x\right) \cdot \frac{z}{t}\\
t_2 := x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -5.1 \cdot 10^{-132}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 4 Error 29.9 Cost 848
\[\begin{array}{l}
t_1 := y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{+39}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -6.8 \cdot 10^{-39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.95 \cdot 10^{-132}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 5 Error 29.8 Cost 848
\[\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+39}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -6.3 \cdot 10^{-46}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{-132}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{+41}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 6 Error 5.2 Cost 840
\[\begin{array}{l}
t_1 := x + z \cdot \frac{y - x}{t}\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-164}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-194}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 20.1 Cost 712
\[\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{+51}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+199}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\end{array}
\]
Alternative 8 Error 10.0 Cost 712
\[\begin{array}{l}
t_1 := x + \frac{z}{\frac{t}{y}}\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{-122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-111}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 9 Error 10.0 Cost 712
\[\begin{array}{l}
t_1 := x + \frac{z}{\frac{t}{y}}\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{-122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-112}:\\
\;\;\;\;x - \frac{x}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 10 Error 1.9 Cost 576
\[x + \frac{y - x}{\frac{t}{z}}
\]
Alternative 11 Error 32.1 Cost 64
\[x
\]