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\\
\mathbf{if}\;z \leq -3.6 \cdot 10^{+51} \lor \neg \left(z \leq 7 \cdot 10^{+78}\right):\\
\;\;\;\;\frac{x + \frac{y}{\frac{t_1}{z}}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{z \cdot y - x}{t_1}}{x + 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 (- (* z t) x)))
(if (or (<= z -3.6e+51) (not (<= z 7e+78)))
(/ (+ x (/ y (/ t_1 z))) (+ x 1.0))
(/ (+ x (/ (- (* z y) x) t_1)) (+ 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 tmp;
if ((z <= -3.6e+51) || !(z <= 7e+78)) {
tmp = (x + (y / (t_1 / z))) / (x + 1.0);
} else {
tmp = (x + (((z * y) - x) / t_1)) / (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) :: tmp
t_1 = (z * t) - x
if ((z <= (-3.6d+51)) .or. (.not. (z <= 7d+78))) then
tmp = (x + (y / (t_1 / z))) / (x + 1.0d0)
else
tmp = (x + (((z * y) - x) / t_1)) / (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 tmp;
if ((z <= -3.6e+51) || !(z <= 7e+78)) {
tmp = (x + (y / (t_1 / z))) / (x + 1.0);
} else {
tmp = (x + (((z * y) - x) / t_1)) / (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
tmp = 0
if (z <= -3.6e+51) or not (z <= 7e+78):
tmp = (x + (y / (t_1 / z))) / (x + 1.0)
else:
tmp = (x + (((z * y) - x) / t_1)) / (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)
tmp = 0.0
if ((z <= -3.6e+51) || !(z <= 7e+78))
tmp = Float64(Float64(x + Float64(y / Float64(t_1 / z))) / Float64(x + 1.0));
else
tmp = Float64(Float64(x + Float64(Float64(Float64(z * y) - x) / t_1)) / 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;
tmp = 0.0;
if ((z <= -3.6e+51) || ~((z <= 7e+78)))
tmp = (x + (y / (t_1 / z))) / (x + 1.0);
else
tmp = (x + (((z * y) - x) / t_1)) / (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]}, If[Or[LessEqual[z, -3.6e+51], N[Not[LessEqual[z, 7e+78]], $MachinePrecision]], N[(N[(x + N[(y / N[(t$95$1 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(N[(z * y), $MachinePrecision] - x), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]]
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
↓
\begin{array}{l}
t_1 := z \cdot t - x\\
\mathbf{if}\;z \leq -3.6 \cdot 10^{+51} \lor \neg \left(z \leq 7 \cdot 10^{+78}\right):\\
\;\;\;\;\frac{x + \frac{y}{\frac{t_1}{z}}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{z \cdot y - x}{t_1}}{x + 1}\\
\end{array}
Alternatives Alternative 1 Error 21.8 Cost 1236
\[\begin{array}{l}
t_1 := \frac{x}{x + 1}\\
\mathbf{if}\;x \leq -4.7 \cdot 10^{-132}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.6 \cdot 10^{-207}:\\
\;\;\;\;1 - y \cdot \frac{z}{x}\\
\mathbf{elif}\;x \leq 3.15 \cdot 10^{-230}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-129}:\\
\;\;\;\;x \cdot \left(1 + \frac{\frac{-1}{t}}{z}\right)\\
\mathbf{elif}\;x \leq 2.35 \cdot 10^{-77}:\\
\;\;\;\;1 + z \cdot \frac{t - y}{x}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 7.5 Cost 1225
\[\begin{array}{l}
t_1 := z \cdot t - x\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{-51} \lor \neg \left(y \leq 1.5 \cdot 10^{-71}\right):\\
\;\;\;\;\frac{x + \frac{y}{\frac{t_1}{z}}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \frac{x}{t_1}}{x + 1}\\
\end{array}
\]
Alternative 3 Error 21.6 Cost 1108
\[\begin{array}{l}
t_1 := \frac{x}{x + 1}\\
t_2 := 1 - y \cdot \frac{z}{x}\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{-130}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.15 \cdot 10^{-207}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.15 \cdot 10^{-230}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{-132}:\\
\;\;\;\;x \cdot \left(1 + \frac{\frac{-1}{t}}{z}\right)\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{-80}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 15.1 Cost 1104
\[\begin{array}{l}
t_1 := \frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+42}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{-154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-207}:\\
\;\;\;\;1 - y \cdot \frac{z}{x}\\
\mathbf{elif}\;x \leq 30.5:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 5 Error 15.2 Cost 1104
\[\begin{array}{l}
t_1 := \frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{if}\;x \leq -2.1 \cdot 10^{+41}:\\
\;\;\;\;1 - y \cdot \frac{\frac{z}{x}}{x}\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-207}:\\
\;\;\;\;1 - y \cdot \frac{z}{x}\\
\mathbf{elif}\;x \leq 1.8:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 6 Error 10.9 Cost 969
\[\begin{array}{l}
\mathbf{if}\;t \leq -3.9 \cdot 10^{-75} \lor \neg \left(t \leq 3.9 \cdot 10^{-78}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{y}{x + 1} \cdot \frac{z}{x}\\
\end{array}
\]
Alternative 7 Error 21.7 Cost 720
\[\begin{array}{l}
\mathbf{if}\;x \leq -21.5:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -7.8 \cdot 10^{-156}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-207}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-61}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 8 Error 21.7 Cost 720
\[\begin{array}{l}
\mathbf{if}\;x \leq -21.5:\\
\;\;\;\;1 + \frac{-1}{x}\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{-156}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-207}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 8 \cdot 10^{-64}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 9 Error 21.7 Cost 720
\[\begin{array}{l}
\mathbf{if}\;x \leq -21.5:\\
\;\;\;\;1 + \frac{-1}{x}\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{-155}:\\
\;\;\;\;x - x \cdot x\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-207}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-61}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 10 Error 22.4 Cost 716
\[\begin{array}{l}
t_1 := \frac{x}{x + 1}\\
\mathbf{if}\;x \leq -2.1 \cdot 10^{-155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-207}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-233}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 11 Error 22.1 Cost 716
\[\begin{array}{l}
t_1 := \frac{x}{x + 1}\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{-131}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-207}:\\
\;\;\;\;1 - y \cdot \frac{z}{x}\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-233}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 12 Error 26.8 Cost 592
\[\begin{array}{l}
\mathbf{if}\;x \leq -21.5:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -6.2 \cdot 10^{-155}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{-283}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.22 \cdot 10^{-15}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 13 Error 28.3 Cost 64
\[1
\]