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{y - x}{t} \cdot z\\
t_2 := x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{if}\;t_2 \leq 10^{+302}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1 \cdot \left(t_1 \cdot \frac{1}{t_1}\right)\\
\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) t) z))) (t_2 (+ x (/ (* (- y x) z) t))))
(if (<= t_2 1e+302) t_2 (* t_1 (* t_1 (/ 1.0 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) / t) * z);
double t_2 = x + (((y - x) * z) / t);
double tmp;
if (t_2 <= 1e+302) {
tmp = t_2;
} else {
tmp = t_1 * (t_1 * (1.0 / t_1));
}
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) / t) * z)
t_2 = x + (((y - x) * z) / t)
if (t_2 <= 1d+302) then
tmp = t_2
else
tmp = t_1 * (t_1 * (1.0d0 / t_1))
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) / t) * z);
double t_2 = x + (((y - x) * z) / t);
double tmp;
if (t_2 <= 1e+302) {
tmp = t_2;
} else {
tmp = t_1 * (t_1 * (1.0 / 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) / t) * z)
t_2 = x + (((y - x) * z) / t)
tmp = 0
if t_2 <= 1e+302:
tmp = t_2
else:
tmp = t_1 * (t_1 * (1.0 / 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) / t) * z))
t_2 = Float64(x + Float64(Float64(Float64(y - x) * z) / t))
tmp = 0.0
if (t_2 <= 1e+302)
tmp = t_2;
else
tmp = Float64(t_1 * Float64(t_1 * Float64(1.0 / 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) / t) * z);
t_2 = x + (((y - x) * z) / t);
tmp = 0.0;
if (t_2 <= 1e+302)
tmp = t_2;
else
tmp = t_1 * (t_1 * (1.0 / 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] / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 1e+302], t$95$2, N[(t$95$1 * N[(t$95$1 * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
x + \frac{\left(y - x\right) \cdot z}{t}
↓
\begin{array}{l}
t_1 := x + \frac{y - x}{t} \cdot z\\
t_2 := x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{if}\;t_2 \leq 10^{+302}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1 \cdot \left(t_1 \cdot \frac{1}{t_1}\right)\\
\end{array}
Alternatives Alternative 1 Error 4.5 Cost 1220
\[\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{if}\;t_1 \leq 10^{+302}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{t} \cdot z + x\\
\end{array}
\]
Alternative 2 Error 3.9 Cost 1220
\[\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{if}\;t_1 \leq 10^{+302}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y - x}{t} \cdot z + x\\
\end{array}
\]
Alternative 3 Error 28.3 Cost 1112
\[\begin{array}{l}
t_1 := \frac{z \cdot y}{t}\\
\mathbf{if}\;x \leq -96000000:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-106}:\\
\;\;\;\;\frac{z \cdot \left(-x\right)}{t}\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-130}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -8.6 \cdot 10^{-190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.3 \cdot 10^{-217}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{-62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 4 Error 18.7 Cost 976
\[\begin{array}{l}
t_1 := \frac{z \cdot y}{t}\\
t_2 := x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;x \leq -7.5 \cdot 10^{-130}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.62 \cdot 10^{-189}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{-218}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 6.3 \cdot 10^{-62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 5 Error 26.8 Cost 848
\[\begin{array}{l}
t_1 := \frac{z \cdot y}{t}\\
\mathbf{if}\;x \leq -7.5 \cdot 10^{-130}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-191}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-217}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 6 Error 11.2 Cost 840
\[\begin{array}{l}
t_1 := \left(\frac{y}{t} - \frac{x}{t}\right) \cdot z\\
\mathbf{if}\;z \leq -7 \cdot 10^{+113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5 \cdot 10^{+24}:\\
\;\;\;\;x + \frac{z \cdot y}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 11.3 Cost 712
\[\begin{array}{l}
t_1 := x + \frac{z \cdot y}{t}\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{-148}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-229}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 8 Error 11.6 Cost 712
\[\begin{array}{l}
t_1 := x + \frac{z \cdot y}{t}\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{-149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-229}:\\
\;\;\;\;x - \frac{x}{t} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 9 Error 31.9 Cost 64
\[x
\]