Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[x + \left(y - x\right) \cdot \frac{z}{t}
\]
↓
\[\begin{array}{l}
\mathbf{if}\;\frac{z}{t} \leq -4 \cdot 10^{+202}:\\
\;\;\;\;x + \frac{0.5}{\frac{\frac{0.5}{z}}{\frac{y - x}{t}}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{t}\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t)))) ↓
(FPCore (x y z t)
:precision binary64
(if (<= (/ z t) -4e+202)
(+ x (/ 0.5 (/ (/ 0.5 z) (/ (- y x) t))))
(+ x (* (- y x) (/ z t))))) 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 tmp;
if ((z / t) <= -4e+202) {
tmp = x + (0.5 / ((0.5 / z) / ((y - x) / t)));
} else {
tmp = x + ((y - x) * (z / t));
}
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) :: tmp
if ((z / t) <= (-4d+202)) then
tmp = x + (0.5d0 / ((0.5d0 / z) / ((y - x) / t)))
else
tmp = x + ((y - x) * (z / t))
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 tmp;
if ((z / t) <= -4e+202) {
tmp = x + (0.5 / ((0.5 / z) / ((y - x) / t)));
} else {
tmp = x + ((y - x) * (z / t));
}
return tmp;
}
def code(x, y, z, t):
return x + ((y - x) * (z / t))
↓
def code(x, y, z, t):
tmp = 0
if (z / t) <= -4e+202:
tmp = x + (0.5 / ((0.5 / z) / ((y - x) / t)))
else:
tmp = x + ((y - x) * (z / t))
return tmp
function code(x, y, z, t)
return Float64(x + Float64(Float64(y - x) * Float64(z / t)))
end
↓
function code(x, y, z, t)
tmp = 0.0
if (Float64(z / t) <= -4e+202)
tmp = Float64(x + Float64(0.5 / Float64(Float64(0.5 / z) / Float64(Float64(y - x) / t))));
else
tmp = Float64(x + Float64(Float64(y - x) * Float64(z / t)));
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)
tmp = 0.0;
if ((z / t) <= -4e+202)
tmp = x + (0.5 / ((0.5 / z) / ((y - x) / t)));
else
tmp = x + ((y - x) * (z / t));
end
tmp_2 = tmp;
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := If[LessEqual[N[(z / t), $MachinePrecision], -4e+202], N[(x + N[(0.5 / N[(N[(0.5 / z), $MachinePrecision] / N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
x + \left(y - x\right) \cdot \frac{z}{t}
↓
\begin{array}{l}
\mathbf{if}\;\frac{z}{t} \leq -4 \cdot 10^{+202}:\\
\;\;\;\;x + \frac{0.5}{\frac{\frac{0.5}{z}}{\frac{y - x}{t}}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{t}\\
\end{array}
Alternatives Alternative 1 Error 23.5 Cost 2204
\[\begin{array}{l}
t_1 := z \cdot \left(-\frac{x}{t}\right)\\
t_2 := y \cdot \frac{z}{t}\\
\mathbf{if}\;\frac{z}{t} \leq -4 \cdot 10^{+230}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\mathbf{elif}\;\frac{z}{t} \leq -5 \cdot 10^{+36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{z}{t} \leq -2 \cdot 10^{-10}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-91}:\\
\;\;\;\;x\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-53}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;\frac{z}{t} \leq 4 \cdot 10^{-30}:\\
\;\;\;\;x\\
\mathbf{elif}\;\frac{z}{t} \leq 4 \cdot 10^{+17}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 22.7 Cost 2204
\[\begin{array}{l}
t_1 := \frac{z}{t} \cdot \left(-x\right)\\
t_2 := y \cdot \frac{z}{t}\\
\mathbf{if}\;\frac{z}{t} \leq -5 \cdot 10^{+163}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\mathbf{elif}\;\frac{z}{t} \leq -2 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{z}{t} \leq -2 \cdot 10^{-10}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-91}:\\
\;\;\;\;x\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-53}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;\frac{z}{t} \leq 4 \cdot 10^{-30}:\\
\;\;\;\;x\\
\mathbf{elif}\;\frac{z}{t} \leq 4 \cdot 10^{+17}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3 Error 22.6 Cost 2204
\[\begin{array}{l}
t_1 := \frac{z}{t} \cdot \left(-x\right)\\
t_2 := y \cdot \frac{z}{t}\\
t_3 := x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;\frac{z}{t} \leq -5 \cdot 10^{+163}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\mathbf{elif}\;\frac{z}{t} \leq -2 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{z}{t} \leq -1000000:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-91}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-53}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;\frac{z}{t} \leq 4 \cdot 10^{-30}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;\frac{z}{t} \leq 4 \cdot 10^{+17}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 22.6 Cost 1360
\[\begin{array}{l}
t_1 := y \cdot \frac{z}{t}\\
\mathbf{if}\;\frac{z}{t} \leq -1.36 \cdot 10^{-11}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{z}{t} \leq 5.1 \cdot 10^{-89}:\\
\;\;\;\;x\\
\mathbf{elif}\;\frac{z}{t} \leq 6.5 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{z}{t} \leq 5.1 \cdot 10^{-29}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 23.2 Cost 1360
\[\begin{array}{l}
t_1 := y \cdot \frac{z}{t}\\
\mathbf{if}\;\frac{z}{t} \leq -2 \cdot 10^{-10}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-91}:\\
\;\;\;\;x\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{z}{t} \leq 4 \cdot 10^{-30}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 6 Error 23.1 Cost 1360
\[\begin{array}{l}
t_1 := y \cdot \frac{z}{t}\\
\mathbf{if}\;\frac{z}{t} \leq -2 \cdot 10^{-10}:\\
\;\;\;\;\frac{z}{\frac{t}{y}}\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-91}:\\
\;\;\;\;x\\
\mathbf{elif}\;\frac{z}{t} \leq 10^{-53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{z}{t} \leq 4 \cdot 10^{-30}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 5.4 Cost 1104
\[\begin{array}{l}
t_1 := x + z \cdot \frac{y - x}{t}\\
t_2 := x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;x \leq -4.8 \cdot 10^{+77}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -8.8 \cdot 10^{-131}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-234}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 8 Error 1.6 Cost 836
\[\begin{array}{l}
\mathbf{if}\;\frac{z}{t} \leq -5 \cdot 10^{+182}:\\
\;\;\;\;x + z \cdot \frac{y - x}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{t}\\
\end{array}
\]
Alternative 9 Error 1.6 Cost 836
\[\begin{array}{l}
\mathbf{if}\;\frac{z}{t} \leq -4 \cdot 10^{+202}:\\
\;\;\;\;x + \frac{z}{\frac{t}{y - x}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{t}\\
\end{array}
\]
Alternative 10 Error 10.6 Cost 776
\[\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{-87}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-131}:\\
\;\;\;\;x + x \cdot \frac{z}{-t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\]
Alternative 11 Error 10.8 Cost 712
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;x \leq -1.35 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-97}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 12 Error 10.5 Cost 712
\[\begin{array}{l}
\mathbf{if}\;y \leq -3.05 \cdot 10^{-89}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-130}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\]
Alternative 13 Error 32.0 Cost 64
\[x
\]