Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\]
↓
\[\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := t_1 \cdot \left(x + 1\right)\\
t_3 := \frac{x + \frac{y \cdot z - x}{t_1}}{x + 1}\\
t_4 := \frac{x}{x + 1}\\
\mathbf{if}\;t_3 \leq -0.5:\\
\;\;\;\;\frac{z}{t_1} \cdot \frac{y}{x + 1}\\
\mathbf{elif}\;t_3 \leq 10^{-16}:\\
\;\;\;\;\frac{x + \frac{y - \frac{x}{z}}{t}}{x + 1}\\
\mathbf{elif}\;t_3 \leq 4 \cdot 10^{+219}:\\
\;\;\;\;\left(\frac{y \cdot z}{t_2} + t_4\right) - \frac{x}{t_2}\\
\mathbf{else}:\\
\;\;\;\;\left(t_4 + \frac{y}{t \cdot \left(x + 1\right)}\right) - \frac{x}{\left(z \cdot t\right) \cdot \left(x + 1\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 (- (* z t) x))
(t_2 (* t_1 (+ x 1.0)))
(t_3 (/ (+ x (/ (- (* y z) x) t_1)) (+ x 1.0)))
(t_4 (/ x (+ x 1.0))))
(if (<= t_3 -0.5)
(* (/ z t_1) (/ y (+ x 1.0)))
(if (<= t_3 1e-16)
(/ (+ x (/ (- y (/ x z)) t)) (+ x 1.0))
(if (<= t_3 4e+219)
(- (+ (/ (* y z) t_2) t_4) (/ x t_2))
(- (+ t_4 (/ y (* t (+ x 1.0)))) (/ x (* (* z t) (+ x 1.0))))))))) 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 = (z * t) - x;
double t_2 = t_1 * (x + 1.0);
double t_3 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
double t_4 = x / (x + 1.0);
double tmp;
if (t_3 <= -0.5) {
tmp = (z / t_1) * (y / (x + 1.0));
} else if (t_3 <= 1e-16) {
tmp = (x + ((y - (x / z)) / t)) / (x + 1.0);
} else if (t_3 <= 4e+219) {
tmp = (((y * z) / t_2) + t_4) - (x / t_2);
} else {
tmp = (t_4 + (y / (t * (x + 1.0)))) - (x / ((z * t) * (x + 1.0)));
}
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 * z) - x) / ((t * z) - x))) / (x + 1.0d0)
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) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (z * t) - x
t_2 = t_1 * (x + 1.0d0)
t_3 = (x + (((y * z) - x) / t_1)) / (x + 1.0d0)
t_4 = x / (x + 1.0d0)
if (t_3 <= (-0.5d0)) then
tmp = (z / t_1) * (y / (x + 1.0d0))
else if (t_3 <= 1d-16) then
tmp = (x + ((y - (x / z)) / t)) / (x + 1.0d0)
else if (t_3 <= 4d+219) then
tmp = (((y * z) / t_2) + t_4) - (x / t_2)
else
tmp = (t_4 + (y / (t * (x + 1.0d0)))) - (x / ((z * t) * (x + 1.0d0)))
end if
code = tmp
end function
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 = (z * t) - x;
double t_2 = t_1 * (x + 1.0);
double t_3 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
double t_4 = x / (x + 1.0);
double tmp;
if (t_3 <= -0.5) {
tmp = (z / t_1) * (y / (x + 1.0));
} else if (t_3 <= 1e-16) {
tmp = (x + ((y - (x / z)) / t)) / (x + 1.0);
} else if (t_3 <= 4e+219) {
tmp = (((y * z) / t_2) + t_4) - (x / t_2);
} else {
tmp = (t_4 + (y / (t * (x + 1.0)))) - (x / ((z * t) * (x + 1.0)));
}
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 = (z * t) - x
t_2 = t_1 * (x + 1.0)
t_3 = (x + (((y * z) - x) / t_1)) / (x + 1.0)
t_4 = x / (x + 1.0)
tmp = 0
if t_3 <= -0.5:
tmp = (z / t_1) * (y / (x + 1.0))
elif t_3 <= 1e-16:
tmp = (x + ((y - (x / z)) / t)) / (x + 1.0)
elif t_3 <= 4e+219:
tmp = (((y * z) / t_2) + t_4) - (x / t_2)
else:
tmp = (t_4 + (y / (t * (x + 1.0)))) - (x / ((z * t) * (x + 1.0)))
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(z * t) - x)
t_2 = Float64(t_1 * Float64(x + 1.0))
t_3 = Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / t_1)) / Float64(x + 1.0))
t_4 = Float64(x / Float64(x + 1.0))
tmp = 0.0
if (t_3 <= -0.5)
tmp = Float64(Float64(z / t_1) * Float64(y / Float64(x + 1.0)));
elseif (t_3 <= 1e-16)
tmp = Float64(Float64(x + Float64(Float64(y - Float64(x / z)) / t)) / Float64(x + 1.0));
elseif (t_3 <= 4e+219)
tmp = Float64(Float64(Float64(Float64(y * z) / t_2) + t_4) - Float64(x / t_2));
else
tmp = Float64(Float64(t_4 + Float64(y / Float64(t * Float64(x + 1.0)))) - Float64(x / Float64(Float64(z * t) * Float64(x + 1.0))));
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 = (z * t) - x;
t_2 = t_1 * (x + 1.0);
t_3 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
t_4 = x / (x + 1.0);
tmp = 0.0;
if (t_3 <= -0.5)
tmp = (z / t_1) * (y / (x + 1.0));
elseif (t_3 <= 1e-16)
tmp = (x + ((y - (x / z)) / t)) / (x + 1.0);
elseif (t_3 <= 4e+219)
tmp = (((y * z) / t_2) + t_4) - (x / t_2);
else
tmp = (t_4 + (y / (t * (x + 1.0)))) - (x / ((z * t) * (x + 1.0)));
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[(z * t), $MachinePrecision] - x), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -0.5], N[(N[(z / t$95$1), $MachinePrecision] * N[(y / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 1e-16], N[(N[(x + N[(N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 4e+219], N[(N[(N[(N[(y * z), $MachinePrecision] / t$95$2), $MachinePrecision] + t$95$4), $MachinePrecision] - N[(x / t$95$2), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$4 + 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]]]]]]]]
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
↓
\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := t_1 \cdot \left(x + 1\right)\\
t_3 := \frac{x + \frac{y \cdot z - x}{t_1}}{x + 1}\\
t_4 := \frac{x}{x + 1}\\
\mathbf{if}\;t_3 \leq -0.5:\\
\;\;\;\;\frac{z}{t_1} \cdot \frac{y}{x + 1}\\
\mathbf{elif}\;t_3 \leq 10^{-16}:\\
\;\;\;\;\frac{x + \frac{y - \frac{x}{z}}{t}}{x + 1}\\
\mathbf{elif}\;t_3 \leq 4 \cdot 10^{+219}:\\
\;\;\;\;\left(\frac{y \cdot z}{t_2} + t_4\right) - \frac{x}{t_2}\\
\mathbf{else}:\\
\;\;\;\;\left(t_4 + \frac{y}{t \cdot \left(x + 1\right)}\right) - \frac{x}{\left(z \cdot t\right) \cdot \left(x + 1\right)}\\
\end{array}
Alternatives Alternative 1 Error 1.9 Cost 4940
\[\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := \frac{x + \frac{y \cdot z - x}{t_1}}{x + 1}\\
\mathbf{if}\;t_2 \leq -0.5:\\
\;\;\;\;\frac{z}{t_1} \cdot \frac{y}{x + 1}\\
\mathbf{elif}\;t_2 \leq 10^{-16}:\\
\;\;\;\;\frac{x + \frac{y - \frac{x}{z}}{t}}{x + 1}\\
\mathbf{elif}\;t_2 \leq 4 \cdot 10^{+219}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\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)}\\
\end{array}
\]
Alternative 2 Error 1.7 Cost 4556
\[\begin{array}{l}
t_1 := x + \frac{y}{t}\\
t_2 := z \cdot t - x\\
t_3 := \frac{x + \frac{y \cdot z - x}{t_2}}{x + 1}\\
\mathbf{if}\;t_3 \leq -0.5:\\
\;\;\;\;\frac{z}{t_2} \cdot \frac{y}{x + 1}\\
\mathbf{elif}\;t_3 \leq 10^{-16}:\\
\;\;\;\;\frac{t_1 - \frac{x}{z \cdot t}}{x + 1}\\
\mathbf{elif}\;t_3 \leq 2 \cdot 10^{+275}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{x + 1}{t_1}}\\
\end{array}
\]
Alternative 3 Error 1.7 Cost 4556
\[\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := \frac{x + \frac{y \cdot z - x}{t_1}}{x + 1}\\
\mathbf{if}\;t_2 \leq -0.5:\\
\;\;\;\;\frac{z}{t_1} \cdot \frac{y}{x + 1}\\
\mathbf{elif}\;t_2 \leq 10^{-16}:\\
\;\;\;\;\frac{x + \frac{y - \frac{x}{z}}{t}}{x + 1}\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+275}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{x + 1}{x + \frac{y}{t}}}\\
\end{array}
\]
Alternative 4 Error 13.3 Cost 1625
\[\begin{array}{l}
t_1 := \frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
t_2 := \frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{if}\;t \leq -4000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-112}:\\
\;\;\;\;\frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-118}:\\
\;\;\;\;\frac{x + \frac{x - y \cdot z}{x}}{x + 1}\\
\mathbf{elif}\;t \leq 2.45 \cdot 10^{+104} \lor \neg \left(t \leq 5.2 \cdot 10^{+171}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 13.3 Cost 1625
\[\begin{array}{l}
t_1 := \frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
t_2 := \frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{if}\;t \leq -3300000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.56 \cdot 10^{-96}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6.8 \cdot 10^{-112}:\\
\;\;\;\;\frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-117}:\\
\;\;\;\;\frac{\left(x + 1\right) - \frac{y \cdot z}{x}}{x + 1}\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+104} \lor \neg \left(t \leq 8 \cdot 10^{+171}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 6 Error 11.5 Cost 1352
\[\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := \frac{x}{x + 1}\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{-74}:\\
\;\;\;\;\frac{x - \frac{x}{t_1}}{x + 1}\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-75}:\\
\;\;\;\;\frac{\left(x + \frac{y}{t}\right) - \frac{x}{z \cdot t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;t_2 - \frac{t_2}{t_1}\\
\end{array}
\]
Alternative 7 Error 11.5 Cost 1225
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.38 \cdot 10^{-74} \lor \neg \left(x \leq 9.6 \cdot 10^{-76}\right):\\
\;\;\;\;\frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x + \frac{y}{t}\right) - \frac{x}{z \cdot t}}{x + 1}\\
\end{array}
\]
Alternative 8 Error 13.1 Cost 1097
\[\begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{-32} \lor \neg \left(z \leq 5.1 \cdot 10^{+91}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\end{array}
\]
Alternative 9 Error 20.7 Cost 844
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.06 \cdot 10^{-75}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -2.93 \cdot 10^{-172}:\\
\;\;\;\;x \cdot \left(1 + \frac{-1}{z \cdot t}\right)\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-75}:\\
\;\;\;\;\frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 10 Error 14.7 Cost 840
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{+48}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{-14}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - z \cdot \frac{y}{x \cdot x}\\
\end{array}
\]
Alternative 11 Error 20.4 Cost 712
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.65 \cdot 10^{-76}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-75}:\\
\;\;\;\;\frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 12 Error 20.4 Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.36 \cdot 10^{-78}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-76}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 13 Error 28.3 Cost 64
\[1
\]