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}
\mathbf{if}\;z \leq -1.4 \cdot 10^{-8} \lor \neg \left(z \leq 7 \cdot 10^{+25}\right):\\
\;\;\;\;\frac{x + \frac{y}{t - \frac{x}{z}}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{z \cdot y - x}{z \cdot t - x}}{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
(if (or (<= z -1.4e-8) (not (<= z 7e+25)))
(/ (+ x (/ y (- t (/ x z)))) (+ x 1.0))
(/ (+ x (/ (- (* z y) x) (- (* z t) x))) (+ 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 tmp;
if ((z <= -1.4e-8) || !(z <= 7e+25)) {
tmp = (x + (y / (t - (x / z)))) / (x + 1.0);
} else {
tmp = (x + (((z * y) - x) / ((z * t) - x))) / (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) :: tmp
if ((z <= (-1.4d-8)) .or. (.not. (z <= 7d+25))) then
tmp = (x + (y / (t - (x / z)))) / (x + 1.0d0)
else
tmp = (x + (((z * y) - x) / ((z * t) - x))) / (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 tmp;
if ((z <= -1.4e-8) || !(z <= 7e+25)) {
tmp = (x + (y / (t - (x / z)))) / (x + 1.0);
} else {
tmp = (x + (((z * y) - x) / ((z * t) - x))) / (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):
tmp = 0
if (z <= -1.4e-8) or not (z <= 7e+25):
tmp = (x + (y / (t - (x / z)))) / (x + 1.0)
else:
tmp = (x + (((z * y) - x) / ((z * t) - x))) / (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)
tmp = 0.0
if ((z <= -1.4e-8) || !(z <= 7e+25))
tmp = Float64(Float64(x + Float64(y / Float64(t - Float64(x / z)))) / Float64(x + 1.0));
else
tmp = Float64(Float64(x + Float64(Float64(Float64(z * y) - x) / Float64(Float64(z * t) - x))) / 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)
tmp = 0.0;
if ((z <= -1.4e-8) || ~((z <= 7e+25)))
tmp = (x + (y / (t - (x / z)))) / (x + 1.0);
else
tmp = (x + (((z * y) - x) / ((z * t) - x))) / (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_] := If[Or[LessEqual[z, -1.4e-8], N[Not[LessEqual[z, 7e+25]], $MachinePrecision]], N[(N[(x + N[(y / N[(t - N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(N[(z * y), $MachinePrecision] - x), $MachinePrecision] / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
↓
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{-8} \lor \neg \left(z \leq 7 \cdot 10^{+25}\right):\\
\;\;\;\;\frac{x + \frac{y}{t - \frac{x}{z}}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{z \cdot y - x}{z \cdot t - x}}{x + 1}\\
\end{array}
Alternatives Alternative 1 Error 14.3 Cost 1296
\[\begin{array}{l}
t_1 := \frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\mathbf{if}\;x \leq -7.5 \cdot 10^{-158}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-140}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{+175}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{-x}{z}}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 2 Error 5.8 Cost 1097
\[\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{-36} \lor \neg \left(y \leq 2.75 \cdot 10^{-100}\right):\\
\;\;\;\;\frac{x + \frac{y}{t - \frac{x}{z}}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\end{array}
\]
Alternative 3 Error 14.5 Cost 1033
\[\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{-71} \lor \neg \left(t \leq 2 \cdot 10^{-143}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{-x}{z}}}{x + 1}\\
\end{array}
\]
Alternative 4 Error 14.7 Cost 841
\[\begin{array}{l}
\mathbf{if}\;x \leq -3.6 \cdot 10^{+31} \lor \neg \left(x \leq 5 \cdot 10^{-19}\right):\\
\;\;\;\;1 - y \cdot \frac{z}{x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\end{array}
\]
Alternative 5 Error 14.9 Cost 841
\[\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{-75} \lor \neg \left(t \leq 1.75 \cdot 10^{-63}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{y}{x \cdot \frac{x}{z}}\\
\end{array}
\]
Alternative 6 Error 14.7 Cost 840
\[\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{+47}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-19}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 7 Error 21.5 Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.06 \cdot 10^{-157}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-58}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 8 Error 21.0 Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.62 \cdot 10^{-161}:\\
\;\;\;\;\frac{x}{x + 1}\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{-61}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 9 Error 26.8 Cost 328
\[\begin{array}{l}
\mathbf{if}\;x \leq -3 \cdot 10^{-106}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-19}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 10 Error 28.4 Cost 64
\[1
\]