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}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 4 \cdot 10^{+263}\right):\\
\;\;\;\;\left(\frac{x}{x + 1} + \frac{y}{t \cdot \left(x + 1\right)}\right) - \frac{x}{\left(z \cdot t\right) \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\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) (- (* z t) x))) (+ x 1.0))))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 4e+263)))
(- (+ (/ x (+ x 1.0)) (/ y (* t (+ x 1.0)))) (/ x (* (* z t) (+ x 1.0))))
t_1))) 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) / ((z * t) - x))) / (x + 1.0);
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 4e+263)) {
tmp = ((x / (x + 1.0)) + (y / (t * (x + 1.0)))) - (x / ((z * t) * (x + 1.0)));
} else {
tmp = t_1;
}
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) / ((z * t) - x))) / (x + 1.0);
double tmp;
if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 4e+263)) {
tmp = ((x / (x + 1.0)) + (y / (t * (x + 1.0)))) - (x / ((z * t) * (x + 1.0)));
} else {
tmp = t_1;
}
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) / ((z * t) - x))) / (x + 1.0)
tmp = 0
if (t_1 <= -math.inf) or not (t_1 <= 4e+263):
tmp = ((x / (x + 1.0)) + (y / (t * (x + 1.0)))) - (x / ((z * t) * (x + 1.0)))
else:
tmp = t_1
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(z * t) - x))) / Float64(x + 1.0))
tmp = 0.0
if ((t_1 <= Float64(-Inf)) || !(t_1 <= 4e+263))
tmp = Float64(Float64(Float64(x / Float64(x + 1.0)) + Float64(y / Float64(t * Float64(x + 1.0)))) - Float64(x / Float64(Float64(z * t) * Float64(x + 1.0))));
else
tmp = t_1;
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) / ((z * t) - x))) / (x + 1.0);
tmp = 0.0;
if ((t_1 <= -Inf) || ~((t_1 <= 4e+263)))
tmp = ((x / (x + 1.0)) + (y / (t * (x + 1.0)))) - (x / ((z * t) * (x + 1.0)));
else
tmp = t_1;
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[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 4e+263]], $MachinePrecision]], N[(N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(N[(z * t), $MachinePrecision] * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]
\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}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 4 \cdot 10^{+263}\right):\\
\;\;\;\;\left(\frac{x}{x + 1} + \frac{y}{t \cdot \left(x + 1\right)}\right) - \frac{x}{\left(z \cdot t\right) \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
Alternatives Alternative 1 Accuracy 96.5% Cost 3401
\[\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z - x}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 4 \cdot 10^{+263}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Accuracy 80.6% Cost 1620
\[\begin{array}{l}
t_1 := \frac{\left(x + \frac{y}{t}\right) - \frac{x}{z \cdot t}}{x + 1}\\
t_2 := z \cdot t - x\\
\mathbf{if}\;x \leq -4 \cdot 10^{-107}:\\
\;\;\;\;\frac{x - \frac{x}{t_2}}{x + 1}\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-102}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-69}:\\
\;\;\;\;\frac{x + \frac{x - y \cdot z}{x}}{x + 1}\\
\mathbf{elif}\;x \leq 1.22 \cdot 10^{-41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-26}:\\
\;\;\;\;\frac{\left(x + 1\right) - z \cdot \frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + x \cdot \frac{-1}{t_2}}{x + 1}\\
\end{array}
\]
Alternative 3 Accuracy 79.1% Cost 1097
\[\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-109} \lor \neg \left(x \leq 3.6 \cdot 10^{-108}\right):\\
\;\;\;\;\frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\end{array}
\]
Alternative 4 Accuracy 81.0% Cost 1097
\[\begin{array}{l}
\mathbf{if}\;t \leq -0.0034 \lor \neg \left(t \leq 1.95 \cdot 10^{-137}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x + 1\right) - z \cdot \frac{y}{x}}{x + 1}\\
\end{array}
\]
Alternative 5 Accuracy 79.8% Cost 1097
\[\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{+37} \lor \neg \left(t \leq 2.15 \cdot 10^{-137}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{x - y \cdot z}{x}}{x + 1}\\
\end{array}
\]
Alternative 6 Accuracy 76.6% Cost 840
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{-45}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.16 \cdot 10^{-41}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 7 Accuracy 67.8% Cost 712
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.55 \cdot 10^{-107}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-107}:\\
\;\;\;\;\frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 8 Accuracy 67.8% Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -4.2 \cdot 10^{-107}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-107}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 9 Accuracy 57.1% Cost 328
\[\begin{array}{l}
\mathbf{if}\;x \leq -3.5 \cdot 10^{-192}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-195}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 10 Accuracy 55.6% Cost 64
\[1
\]