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 + \frac{y - x}{\frac{t}{z}}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{+296}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_1 \leq 10^{+299}:\\
\;\;\;\;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 (/ (- y x) (/ t z)))))
(if (<= t_1 -4e+296) t_2 (if (<= t_1 1e+299) 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 + ((y - x) / (t / z));
double tmp;
if (t_1 <= -4e+296) {
tmp = t_2;
} else if (t_1 <= 1e+299) {
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 + ((y - x) / (t / z))
if (t_1 <= (-4d+296)) then
tmp = t_2
else if (t_1 <= 1d+299) 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 + ((y - x) / (t / z));
double tmp;
if (t_1 <= -4e+296) {
tmp = t_2;
} else if (t_1 <= 1e+299) {
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 + ((y - x) / (t / z))
tmp = 0
if t_1 <= -4e+296:
tmp = t_2
elif t_1 <= 1e+299:
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(Float64(y - x) / Float64(t / z)))
tmp = 0.0
if (t_1 <= -4e+296)
tmp = t_2;
elseif (t_1 <= 1e+299)
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 + ((y - x) / (t / z));
tmp = 0.0;
if (t_1 <= -4e+296)
tmp = t_2;
elseif (t_1 <= 1e+299)
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[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+296], t$95$2, If[LessEqual[t$95$1, 1e+299], 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 + \frac{y - x}{\frac{t}{z}}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{+296}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_1 \leq 10^{+299}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
Alternatives Alternative 1 Error 21.1 Cost 1504
\[\begin{array}{l}
t_1 := \frac{y - x}{\frac{t}{z}}\\
t_2 := x - z \cdot \frac{x}{t}\\
\mathbf{if}\;x \leq -27107829549.611862:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -7.734714090229673 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.44024367565031 \cdot 10^{-105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -9.656900221017529 \cdot 10^{-254}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.509692961622689 \cdot 10^{-46}:\\
\;\;\;\;\frac{z}{\frac{t}{y - x}}\\
\mathbf{elif}\;x \leq 3.722869152509367 \cdot 10^{-22}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.8518132387020875 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.7484898187110868 \cdot 10^{+82}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 2 Error 15.8 Cost 1372
\[\begin{array}{l}
t_1 := \frac{y - x}{\frac{t}{z}}\\
t_2 := x + \frac{y \cdot z}{t}\\
t_3 := x - z \cdot \frac{x}{t}\\
\mathbf{if}\;x \leq -27107829549.611862:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.1088060373500884 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.44024367565031 \cdot 10^{-105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.2904194535720593 \cdot 10^{-116}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9.6976248470586 \cdot 10^{-256}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.2292834975240435 \cdot 10^{-112}:\\
\;\;\;\;\frac{z}{\frac{t}{y - x}}\\
\mathbf{elif}\;x \leq 3.509692961622689 \cdot 10^{-46}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
Alternative 3 Error 20.6 Cost 1108
\[\begin{array}{l}
t_1 := \frac{z}{\frac{t}{y - x}}\\
t_2 := x - z \cdot \frac{x}{t}\\
\mathbf{if}\;x \leq -27107829549.611862:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -7.734714090229673 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.3613749215794964 \cdot 10^{-115}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -3.70203633421233 \cdot 10^{-220}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{elif}\;x \leq 3.509692961622689 \cdot 10^{-46}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 4 Error 24.2 Cost 976
\[\begin{array}{l}
t_1 := \frac{z}{\frac{t}{y - x}}\\
\mathbf{if}\;x \leq -8.961997013120384 \cdot 10^{+90}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -1.5304652952704116 \cdot 10^{+26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -27107829549.611862:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.8518132387020875 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 5 Error 12.4 Cost 976
\[\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
t_2 := x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;x \leq -5.336571372234044 \cdot 10^{-18}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 9.6976248470586 \cdot 10^{-256}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.2292834975240435 \cdot 10^{-112}:\\
\;\;\;\;\frac{z}{\frac{t}{y - x}}\\
\mathbf{elif}\;x \leq 3.509692961622689 \cdot 10^{-46}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 6 Error 26.6 Cost 848
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.44024367565031 \cdot 10^{-105}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.8075777738548352 \cdot 10^{-135}:\\
\;\;\;\;\frac{z}{\frac{t}{y}}\\
\mathbf{elif}\;x \leq 1.045122135193916 \cdot 10^{-105}:\\
\;\;\;\;\frac{z \cdot \left(-x\right)}{t}\\
\mathbf{elif}\;x \leq 3.509692961622689 \cdot 10^{-46}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 7 Error 10.9 Cost 712
\[\begin{array}{l}
t_1 := x + z \cdot \frac{y}{t}\\
\mathbf{if}\;t \leq -0.185:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.6 \cdot 10^{-126}:\\
\;\;\;\;\frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 8 Error 25.9 Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.44024367565031 \cdot 10^{-105}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.509692961622689 \cdot 10^{-46}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 9 Error 25.9 Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.44024367565031 \cdot 10^{-105}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.509692961622689 \cdot 10^{-46}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 10 Error 2.0 Cost 576
\[x + \frac{y - x}{\frac{t}{z}}
\]
Alternative 11 Error 2.1 Cost 576
\[x + \left(y - x\right) \cdot \frac{z}{t}
\]
Alternative 12 Error 31.6 Cost 64
\[x
\]