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 + \left(\frac{y}{t} - \frac{x}{t}\right) \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 t) (/ 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 / t) - (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 / t) - (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 / t) - (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 / t) - (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 / t) - Float64(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 / t) - (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 / t), $MachinePrecision] - N[(x / t), $MachinePrecision]), $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 + \left(\frac{y}{t} - \frac{x}{t}\right) \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 3.9 Cost 1348
\[\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}:\\
\;\;\;\;\left(\frac{y}{t} - \frac{x}{t}\right) \cdot z + x\\
\end{array}
\]
Alternative 2 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 3 Error 28.3 Cost 1112
\[\begin{array}{l}
\mathbf{if}\;x \leq -96000000:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-106}:\\
\;\;\;\;-\frac{z \cdot x}{t}\\
\mathbf{elif}\;x \leq -8.6 \cdot 10^{-130}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-191}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-217}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 6.3 \cdot 10^{-62}:\\
\;\;\;\;\frac{z \cdot y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 4 Error 29.1 Cost 1112
\[\begin{array}{l}
\mathbf{if}\;x \leq -9.6 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-106}:\\
\;\;\;\;\left(-\frac{x}{t}\right) \cdot z\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-129}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -1.04 \cdot 10^{-190}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{elif}\;x \leq -1.55 \cdot 10^{-217}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-62}:\\
\;\;\;\;\frac{z \cdot y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 5 Error 18.7 Cost 976
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;x \leq -8 \cdot 10^{-130}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-189}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{elif}\;x \leq -1.3 \cdot 10^{-217}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.3 \cdot 10^{-62}:\\
\;\;\;\;\frac{z \cdot y}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 6 Error 18.3 Cost 976
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;x \leq -1.85 \cdot 10^{-129}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.55 \cdot 10^{-191}:\\
\;\;\;\;\frac{y - x}{t} \cdot z\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{-217}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.3 \cdot 10^{-62}:\\
\;\;\;\;\frac{z \cdot y}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 27.2 Cost 848
\[\begin{array}{l}
t_1 := \frac{y}{t} \cdot z\\
\mathbf{if}\;x \leq -8.6 \cdot 10^{-130}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -4.9 \cdot 10^{-191}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-236}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-55}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 8 Error 26.8 Cost 848
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.6 \cdot 10^{-129}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-190}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-217}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 6.3 \cdot 10^{-62}:\\
\;\;\;\;\frac{z \cdot y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 9 Error 11.2 Cost 712
\[\begin{array}{l}
t_1 := \frac{y - x}{t} \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 10 Error 31.9 Cost 64
\[x
\]