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 := \left(\frac{y}{t \cdot \left(x + 1\right)} + \frac{x}{x + 1}\right) - \frac{x}{\left(z \cdot t\right) \cdot \left(x + 1\right)}\\
t_2 := \frac{x + \frac{y \cdot z - x}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{+278}:\\
\;\;\;\;t_2\\
\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
(-
(+ (/ y (* t (+ x 1.0))) (/ x (+ x 1.0)))
(/ x (* (* z t) (+ x 1.0)))))
(t_2 (/ (+ x (/ (- (* y z) x) (- (* z t) x))) (+ x 1.0))))
(if (<= t_2 (- INFINITY)) t_1 (if (<= t_2 1e+278) t_2 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 = ((y / (t * (x + 1.0))) + (x / (x + 1.0))) - (x / ((z * t) * (x + 1.0)));
double t_2 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0);
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= 1e+278) {
tmp = t_2;
} 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 = ((y / (t * (x + 1.0))) + (x / (x + 1.0))) - (x / ((z * t) * (x + 1.0)));
double t_2 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0);
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= 1e+278) {
tmp = t_2;
} 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 = ((y / (t * (x + 1.0))) + (x / (x + 1.0))) - (x / ((z * t) * (x + 1.0)))
t_2 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0)
tmp = 0
if t_2 <= -math.inf:
tmp = t_1
elif t_2 <= 1e+278:
tmp = t_2
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(Float64(y / Float64(t * Float64(x + 1.0))) + Float64(x / Float64(x + 1.0))) - Float64(x / Float64(Float64(z * t) * Float64(x + 1.0))))
t_2 = Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(z * t) - x))) / Float64(x + 1.0))
tmp = 0.0
if (t_2 <= Float64(-Inf))
tmp = t_1;
elseif (t_2 <= 1e+278)
tmp = t_2;
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 = ((y / (t * (x + 1.0))) + (x / (x + 1.0))) - (x / ((z * t) * (x + 1.0)));
t_2 = (x + (((y * z) - x) / ((z * t) - x))) / (x + 1.0);
tmp = 0.0;
if (t_2 <= -Inf)
tmp = t_1;
elseif (t_2 <= 1e+278)
tmp = t_2;
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[(N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(N[(z * t), $MachinePrecision] * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, 1e+278], t$95$2, t$95$1]]]]
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
↓
\begin{array}{l}
t_1 := \left(\frac{y}{t \cdot \left(x + 1\right)} + \frac{x}{x + 1}\right) - \frac{x}{\left(z \cdot t\right) \cdot \left(x + 1\right)}\\
t_2 := \frac{x + \frac{y \cdot z - x}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{+278}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
Alternatives Alternative 1 Error 2.3 Cost 3400
\[\begin{array}{l}
t_1 := \frac{x + \frac{y}{t}}{x + 1}\\
t_2 := \frac{x + \frac{y \cdot z - x}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{+278}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 13.9 Cost 1360
\[\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := \frac{x - \frac{x}{t_1}}{x + 1}\\
\mathbf{if}\;x \leq -8.995750141755671 \cdot 10^{-63}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.9282946274464312 \cdot 10^{-91}:\\
\;\;\;\;y \cdot \frac{z}{t_1}\\
\mathbf{elif}\;x \leq -3.072771583033836 \cdot 10^{-123}:\\
\;\;\;\;x \cdot \left(1 + \frac{\frac{-1}{z}}{t}\right)\\
\mathbf{elif}\;x \leq 2.0948010372728394 \cdot 10^{-100}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 3 Error 20.3 Cost 1236
\[\begin{array}{l}
t_1 := \frac{x}{x + 1}\\
t_2 := 1 + y \cdot \left(z - \frac{z}{x}\right)\\
\mathbf{if}\;x \leq -5.28010707707518 \cdot 10^{-32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.9282946274464312 \cdot 10^{-91}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -7.575027596272219 \cdot 10^{-196}:\\
\;\;\;\;x \cdot \left(1 + \frac{\frac{-1}{z}}{t}\right)\\
\mathbf{elif}\;x \leq 1.7396242402067136 \cdot 10^{-139}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{elif}\;x \leq 5.494935524419325 \cdot 10^{-12}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 19.9 Cost 1104
\[\begin{array}{l}
t_1 := y \cdot \frac{z}{z \cdot t - x}\\
\mathbf{if}\;x \leq -8.995750141755671 \cdot 10^{-63}:\\
\;\;\;\;\frac{x}{x + 1}\\
\mathbf{elif}\;x \leq -1.9282946274464312 \cdot 10^{-91}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -7.575027596272219 \cdot 10^{-196}:\\
\;\;\;\;x \cdot \left(1 + \frac{\frac{-1}{z}}{t}\right)\\
\mathbf{elif}\;x \leq 2.178655461091866 \cdot 10^{-34}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 5 Error 11.7 Cost 1096
\[\begin{array}{l}
t_1 := \frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{if}\;t \leq -3.0352929313663287 \cdot 10^{-71}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.2178718728324227 \cdot 10^{-70}:\\
\;\;\;\;\frac{x + \left(1 - z \cdot \frac{y}{x}\right)}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 6 Error 14.7 Cost 972
\[\begin{array}{l}
\mathbf{if}\;x \leq -8018167.077057074:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.793082503786783 \cdot 10^{-59}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{elif}\;x \leq 5.494935524419325 \cdot 10^{-12}:\\
\;\;\;\;1 + y \cdot \left(z - \frac{z}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1}\\
\end{array}
\]
Alternative 7 Error 14.9 Cost 972
\[\begin{array}{l}
\mathbf{if}\;x \leq -8018167.077057074:\\
\;\;\;\;\frac{x - y \cdot \frac{z}{x}}{x + 1}\\
\mathbf{elif}\;x \leq 3.793082503786783 \cdot 10^{-59}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{elif}\;x \leq 5.494935524419325 \cdot 10^{-12}:\\
\;\;\;\;1 + y \cdot \left(z - \frac{z}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1}\\
\end{array}
\]
Alternative 8 Error 20.7 Cost 720
\[\begin{array}{l}
\mathbf{if}\;x \leq -8018167.077057074:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -4.870188304647993 \cdot 10^{-56}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -9.352685892369103 \cdot 10^{-62}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.8035368829637316 \cdot 10^{-69}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 9 Error 20.6 Cost 720
\[\begin{array}{l}
\mathbf{if}\;x \leq -8018167.077057074:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -4.870188304647993 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(1 - x\right)\\
\mathbf{elif}\;x \leq -9.352685892369103 \cdot 10^{-62}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.8035368829637316 \cdot 10^{-69}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 10 Error 20.4 Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -4.870188304647993 \cdot 10^{-56}:\\
\;\;\;\;\frac{x}{x + 1}\\
\mathbf{elif}\;x \leq 3.8035368829637316 \cdot 10^{-69}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 11 Error 27.1 Cost 328
\[\begin{array}{l}
\mathbf{if}\;x \leq -8018167.077057074:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.793082503786783 \cdot 10^{-59}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 12 Error 55.5 Cost 64
\[x
\]