Math FPCore C Java Python Julia MATLAB Wolfram TeX \[\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\]
↓
\[\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(\frac{x}{1 + x} + \frac{y}{\left(1 + x\right) \cdot t}\right) - \frac{x}{\left(1 + x\right) \cdot \left(t \cdot z\right)}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+281}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1} + \left(-\frac{-1 \cdot \left(\frac{y}{x + 1} - \frac{x}{z \cdot \left(x + 1\right)}\right)}{t}\right)\\
\end{array}
\]
(FPCore (x y z t)
:precision binary64
(/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0))) ↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0))))
(if (<= t_1 (- INFINITY))
(- (+ (/ x (+ 1.0 x)) (/ y (* (+ 1.0 x) t))) (/ x (* (+ 1.0 x) (* t z))))
(if (<= t_1 2e+281)
t_1
(+
(/ x (+ x 1.0))
(- (/ (* -1.0 (- (/ y (+ x 1.0)) (/ x (* z (+ x 1.0))))) t))))))) double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
↓
double code(double x, double y, double z, double t) {
double t_1 = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = ((x / (1.0 + x)) + (y / ((1.0 + x) * t))) - (x / ((1.0 + x) * (t * z)));
} else if (t_1 <= 2e+281) {
tmp = t_1;
} else {
tmp = (x / (x + 1.0)) + -((-1.0 * ((y / (x + 1.0)) - (x / (z * (x + 1.0))))) / t);
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
↓
public static double code(double x, double y, double z, double t) {
double t_1 = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = ((x / (1.0 + x)) + (y / ((1.0 + x) * t))) - (x / ((1.0 + x) * (t * z)));
} else if (t_1 <= 2e+281) {
tmp = t_1;
} else {
tmp = (x / (x + 1.0)) + -((-1.0 * ((y / (x + 1.0)) - (x / (z * (x + 1.0))))) / t);
}
return tmp;
}
def code(x, y, z, t):
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0)
↓
def code(x, y, z, t):
t_1 = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0)
tmp = 0
if t_1 <= -math.inf:
tmp = ((x / (1.0 + x)) + (y / ((1.0 + x) * t))) - (x / ((1.0 + x) * (t * z)))
elif t_1 <= 2e+281:
tmp = t_1
else:
tmp = (x / (x + 1.0)) + -((-1.0 * ((y / (x + 1.0)) - (x / (z * (x + 1.0))))) / t)
return tmp
function code(x, y, z, t)
return Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(t * z) - x))) / Float64(x + 1.0))
end
↓
function code(x, y, z, t)
t_1 = Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(t * z) - x))) / Float64(x + 1.0))
tmp = 0.0
if (t_1 <= Float64(-Inf))
tmp = Float64(Float64(Float64(x / Float64(1.0 + x)) + Float64(y / Float64(Float64(1.0 + x) * t))) - Float64(x / Float64(Float64(1.0 + x) * Float64(t * z))));
elseif (t_1 <= 2e+281)
tmp = t_1;
else
tmp = Float64(Float64(x / Float64(x + 1.0)) + Float64(-Float64(Float64(-1.0 * Float64(Float64(y / Float64(x + 1.0)) - Float64(x / Float64(z * Float64(x + 1.0))))) / t)));
end
return tmp
end
function tmp = code(x, y, z, t)
tmp = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
end
↓
function tmp_2 = code(x, y, z, t)
t_1 = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
tmp = 0.0;
if (t_1 <= -Inf)
tmp = ((x / (1.0 + x)) + (y / ((1.0 + x) * t))) - (x / ((1.0 + x) * (t * z)));
elseif (t_1 <= 2e+281)
tmp = t_1;
else
tmp = (x / (x + 1.0)) + -((-1.0 * ((y / (x + 1.0)) - (x / (z * (x + 1.0))))) / t);
end
tmp_2 = tmp;
end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(x / N[(1.0 + x), $MachinePrecision]), $MachinePrecision] + N[(y / N[(N[(1.0 + x), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(N[(1.0 + x), $MachinePrecision] * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+281], t$95$1, N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] + (-N[(N[(-1.0 * N[(N[(y / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] - N[(x / N[(z * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision])), $MachinePrecision]]]]
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
↓
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(\frac{x}{1 + x} + \frac{y}{\left(1 + x\right) \cdot t}\right) - \frac{x}{\left(1 + x\right) \cdot \left(t \cdot z\right)}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+281}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1} + \left(-\frac{-1 \cdot \left(\frac{y}{x + 1} - \frac{x}{z \cdot \left(x + 1\right)}\right)}{t}\right)\\
\end{array}
Alternatives Alternative 1 Error 2.1 Cost 3784
\[\begin{array}{l}
t_1 := \left(\frac{x}{1 + x} + \frac{y}{\left(1 + x\right) \cdot t}\right) - \frac{x}{\left(1 + x\right) \cdot \left(t \cdot z\right)}\\
t_2 := \frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+281}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 2.2 Cost 3400
\[\begin{array}{l}
t_1 := \frac{\frac{y}{t} + x}{x + 1}\\
t_2 := \frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+281}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3 Error 16.6 Cost 1300
\[\begin{array}{l}
t_1 := 1 + \left(-y\right) \cdot \left(\frac{z}{x} - z\right)\\
t_2 := \frac{\frac{y}{t} + x}{x + 1}\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{-30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-138}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-260}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-301}:\\
\;\;\;\;1 - \frac{1}{x}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-73}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 4 Error 15.8 Cost 1104
\[\begin{array}{l}
t_1 := \frac{\frac{y}{t} + x}{x + 1}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -3.1 \cdot 10^{-206}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq -5.5 \cdot 10^{-255}:\\
\;\;\;\;\frac{z}{x} \cdot \frac{y}{-1 - x}\\
\mathbf{elif}\;t \leq 4.05 \cdot 10^{-156}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 11.8 Cost 1032
\[\begin{array}{l}
t_1 := \frac{\frac{y}{t} + x}{x + 1}\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-73}:\\
\;\;\;\;1 + \left(-z \cdot \frac{\frac{y}{x}}{x + 1}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 6 Error 12.0 Cost 968
\[\begin{array}{l}
t_1 := \frac{\frac{y}{t} + x}{x + 1}\\
\mathbf{if}\;t \leq -2.02 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-73}:\\
\;\;\;\;1 - \frac{y \cdot z}{x \cdot \left(x - -1\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 20.6 Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.45 \cdot 10^{-46}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 9.8 \cdot 10^{-71}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1}\\
\end{array}
\]
Alternative 8 Error 20.8 Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.02 \cdot 10^{-44}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{-32}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 9 Error 27.2 Cost 328
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{-128}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-34}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 10 Error 28.9 Cost 64
\[1
\]