
(FPCore (x y z t) :precision binary64 (/ x (* (- y z) (- t z))))
double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - z));
}
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) * (t - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - z));
}
def code(x, y, z, t): return x / ((y - z) * (t - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(y - z) * Float64(t - z))) end
function tmp = code(x, y, z, t) tmp = x / ((y - z) * (t - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ x (* (- y z) (- t z))))
double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - z));
}
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) * (t - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - z));
}
def code(x, y, z, t): return x / ((y - z) * (t - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(y - z) * Float64(t - z))) end
function tmp = code(x, y, z, t) tmp = x / ((y - z) * (t - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (* (/ 1.0 (- y z)) (/ x (- t z))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return (1.0 / (y - z)) * (x / (t - z));
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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
code = (1.0d0 / (y - z)) * (x / (t - z))
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return (1.0 / (y - z)) * (x / (t - z));
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return (1.0 / (y - z)) * (x / (t - z))
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(Float64(1.0 / Float64(y - z)) * Float64(x / Float64(t - z))) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = (1.0 / (y - z)) * (x / (t - z));
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(N[(1.0 / N[(y - z), $MachinePrecision]), $MachinePrecision] * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\frac{1}{y - z} \cdot \frac{x}{t - z}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- y z) (- t z))))
(if (<= t_1 (- INFINITY))
(/ (/ x (- y z)) t)
(if (<= t_1 INFINITY) (/ x t_1) (/ 1.0 (/ (- y z) (/ (- x) z)))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x / (y - z)) / t;
} else if (t_1 <= ((double) INFINITY)) {
tmp = x / t_1;
} else {
tmp = 1.0 / ((y - z) / (-x / z));
}
return tmp;
}
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x / (y - z)) / t;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / t_1;
} else {
tmp = 1.0 / ((y - z) / (-x / z));
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = (y - z) * (t - z) tmp = 0 if t_1 <= -math.inf: tmp = (x / (y - z)) / t elif t_1 <= math.inf: tmp = x / t_1 else: tmp = 1.0 / ((y - z) / (-x / z)) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(Float64(y - z) * Float64(t - z)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x / Float64(y - z)) / t); elseif (t_1 <= Inf) tmp = Float64(x / t_1); else tmp = Float64(1.0 / Float64(Float64(y - z) / Float64(Float64(-x) / z))); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (y - z) * (t - z);
tmp = 0.0;
if (t_1 <= -Inf)
tmp = (x / (y - z)) / t;
elseif (t_1 <= Inf)
tmp = x / t_1;
else
tmp = 1.0 / ((y - z) / (-x / z));
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(x / t$95$1), $MachinePrecision], N[(1.0 / N[(N[(y - z), $MachinePrecision] / N[((-x) / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t}\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{y - z}{\frac{-x}{z}}}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- y z) (- t z))))
(if (<= t_1 (- INFINITY))
(/ (/ x (- y z)) t)
(if (<= t_1 INFINITY) (/ x t_1) (/ (/ (- x) z) (- y z))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x / (y - z)) / t;
} else if (t_1 <= ((double) INFINITY)) {
tmp = x / t_1;
} else {
tmp = (-x / z) / (y - z);
}
return tmp;
}
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x / (y - z)) / t;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / t_1;
} else {
tmp = (-x / z) / (y - z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = (y - z) * (t - z) tmp = 0 if t_1 <= -math.inf: tmp = (x / (y - z)) / t elif t_1 <= math.inf: tmp = x / t_1 else: tmp = (-x / z) / (y - z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(Float64(y - z) * Float64(t - z)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x / Float64(y - z)) / t); elseif (t_1 <= Inf) tmp = Float64(x / t_1); else tmp = Float64(Float64(Float64(-x) / z) / Float64(y - z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (y - z) * (t - z);
tmp = 0.0;
if (t_1 <= -Inf)
tmp = (x / (y - z)) / t;
elseif (t_1 <= Inf)
tmp = x / t_1;
else
tmp = (-x / z) / (y - z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(x / t$95$1), $MachinePrecision], N[(N[((-x) / z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t}\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-x}{z}}{y - z}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (* z (- z t)))) (t_2 (/ (/ x (- t z)) y)))
(if (<= y -8.8e+37)
t_2
(if (<= y -1.8e+22)
t_1
(if (<= y -9.8e-60)
t_2
(if (or (<= y -4.3e-101) (and (not (<= y -3.5e-181)) (<= y 1.9e-172)))
t_1
(/ (/ x (- y z)) t)))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = x / (z * (z - t));
double t_2 = (x / (t - z)) / y;
double tmp;
if (y <= -8.8e+37) {
tmp = t_2;
} else if (y <= -1.8e+22) {
tmp = t_1;
} else if (y <= -9.8e-60) {
tmp = t_2;
} else if ((y <= -4.3e-101) || (!(y <= -3.5e-181) && (y <= 1.9e-172))) {
tmp = t_1;
} else {
tmp = (x / (y - z)) / t;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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) :: tmp
t_1 = x / (z * (z - t))
t_2 = (x / (t - z)) / y
if (y <= (-8.8d+37)) then
tmp = t_2
else if (y <= (-1.8d+22)) then
tmp = t_1
else if (y <= (-9.8d-60)) then
tmp = t_2
else if ((y <= (-4.3d-101)) .or. (.not. (y <= (-3.5d-181))) .and. (y <= 1.9d-172)) then
tmp = t_1
else
tmp = (x / (y - z)) / t
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = x / (z * (z - t));
double t_2 = (x / (t - z)) / y;
double tmp;
if (y <= -8.8e+37) {
tmp = t_2;
} else if (y <= -1.8e+22) {
tmp = t_1;
} else if (y <= -9.8e-60) {
tmp = t_2;
} else if ((y <= -4.3e-101) || (!(y <= -3.5e-181) && (y <= 1.9e-172))) {
tmp = t_1;
} else {
tmp = (x / (y - z)) / t;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = x / (z * (z - t)) t_2 = (x / (t - z)) / y tmp = 0 if y <= -8.8e+37: tmp = t_2 elif y <= -1.8e+22: tmp = t_1 elif y <= -9.8e-60: tmp = t_2 elif (y <= -4.3e-101) or (not (y <= -3.5e-181) and (y <= 1.9e-172)): tmp = t_1 else: tmp = (x / (y - z)) / t return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(x / Float64(z * Float64(z - t))) t_2 = Float64(Float64(x / Float64(t - z)) / y) tmp = 0.0 if (y <= -8.8e+37) tmp = t_2; elseif (y <= -1.8e+22) tmp = t_1; elseif (y <= -9.8e-60) tmp = t_2; elseif ((y <= -4.3e-101) || (!(y <= -3.5e-181) && (y <= 1.9e-172))) tmp = t_1; else tmp = Float64(Float64(x / Float64(y - z)) / t); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = x / (z * (z - t));
t_2 = (x / (t - z)) / y;
tmp = 0.0;
if (y <= -8.8e+37)
tmp = t_2;
elseif (y <= -1.8e+22)
tmp = t_1;
elseif (y <= -9.8e-60)
tmp = t_2;
elseif ((y <= -4.3e-101) || (~((y <= -3.5e-181)) && (y <= 1.9e-172)))
tmp = t_1;
else
tmp = (x / (y - z)) / t;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -8.8e+37], t$95$2, If[LessEqual[y, -1.8e+22], t$95$1, If[LessEqual[y, -9.8e-60], t$95$2, If[Or[LessEqual[y, -4.3e-101], And[N[Not[LessEqual[y, -3.5e-181]], $MachinePrecision], LessEqual[y, 1.9e-172]]], t$95$1, N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]]]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \frac{x}{z \cdot \left(z - t\right)}\\
t_2 := \frac{\frac{x}{t - z}}{y}\\
\mathbf{if}\;y \leq -8.8 \cdot 10^{+37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{-60}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -4.3 \cdot 10^{-101} \lor \neg \left(y \leq -3.5 \cdot 10^{-181}\right) \land y \leq 1.9 \cdot 10^{-172}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= y -2.55e+43)
(/ (/ x (- t z)) y)
(if (<= y -7.2e-100)
(/ (- x) (* z (- y z)))
(if (or (<= y -2.2e-181) (not (<= y 1.9e-172)))
(/ (/ x (- y z)) t)
(/ x (* z (- z t)))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.55e+43) {
tmp = (x / (t - z)) / y;
} else if (y <= -7.2e-100) {
tmp = -x / (z * (y - z));
} else if ((y <= -2.2e-181) || !(y <= 1.9e-172)) {
tmp = (x / (y - z)) / t;
} else {
tmp = x / (z * (z - t));
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 (y <= (-2.55d+43)) then
tmp = (x / (t - z)) / y
else if (y <= (-7.2d-100)) then
tmp = -x / (z * (y - z))
else if ((y <= (-2.2d-181)) .or. (.not. (y <= 1.9d-172))) then
tmp = (x / (y - z)) / t
else
tmp = x / (z * (z - t))
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.55e+43) {
tmp = (x / (t - z)) / y;
} else if (y <= -7.2e-100) {
tmp = -x / (z * (y - z));
} else if ((y <= -2.2e-181) || !(y <= 1.9e-172)) {
tmp = (x / (y - z)) / t;
} else {
tmp = x / (z * (z - t));
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if y <= -2.55e+43: tmp = (x / (t - z)) / y elif y <= -7.2e-100: tmp = -x / (z * (y - z)) elif (y <= -2.2e-181) or not (y <= 1.9e-172): tmp = (x / (y - z)) / t else: tmp = x / (z * (z - t)) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -2.55e+43) tmp = Float64(Float64(x / Float64(t - z)) / y); elseif (y <= -7.2e-100) tmp = Float64(Float64(-x) / Float64(z * Float64(y - z))); elseif ((y <= -2.2e-181) || !(y <= 1.9e-172)) tmp = Float64(Float64(x / Float64(y - z)) / t); else tmp = Float64(x / Float64(z * Float64(z - t))); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -2.55e+43)
tmp = (x / (t - z)) / y;
elseif (y <= -7.2e-100)
tmp = -x / (z * (y - z));
elseif ((y <= -2.2e-181) || ~((y <= 1.9e-172)))
tmp = (x / (y - z)) / t;
else
tmp = x / (z * (z - t));
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -2.55e+43], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, -7.2e-100], N[((-x) / N[(z * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -2.2e-181], N[Not[LessEqual[y, 1.9e-172]], $MachinePrecision]], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.55 \cdot 10^{+43}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y}\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-100}:\\
\;\;\;\;\frac{-x}{z \cdot \left(y - z\right)}\\
\mathbf{elif}\;y \leq -2.2 \cdot 10^{-181} \lor \neg \left(y \leq 1.9 \cdot 10^{-172}\right):\\
\;\;\;\;\frac{\frac{x}{y - z}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z \cdot \left(z - t\right)}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (* z (- z t)))))
(if (<= y -4.4e+38)
(/ (/ x y) (- t z))
(if (<= y -1.8e+21)
t_1
(if (<= y -7e-60)
(/ x (* y (- t z)))
(if (<= y 1.9e-172) t_1 (/ x (* (- y z) t))))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = x / (z * (z - t));
double tmp;
if (y <= -4.4e+38) {
tmp = (x / y) / (t - z);
} else if (y <= -1.8e+21) {
tmp = t_1;
} else if (y <= -7e-60) {
tmp = x / (y * (t - z));
} else if (y <= 1.9e-172) {
tmp = t_1;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 = x / (z * (z - t))
if (y <= (-4.4d+38)) then
tmp = (x / y) / (t - z)
else if (y <= (-1.8d+21)) then
tmp = t_1
else if (y <= (-7d-60)) then
tmp = x / (y * (t - z))
else if (y <= 1.9d-172) then
tmp = t_1
else
tmp = x / ((y - z) * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = x / (z * (z - t));
double tmp;
if (y <= -4.4e+38) {
tmp = (x / y) / (t - z);
} else if (y <= -1.8e+21) {
tmp = t_1;
} else if (y <= -7e-60) {
tmp = x / (y * (t - z));
} else if (y <= 1.9e-172) {
tmp = t_1;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = x / (z * (z - t)) tmp = 0 if y <= -4.4e+38: tmp = (x / y) / (t - z) elif y <= -1.8e+21: tmp = t_1 elif y <= -7e-60: tmp = x / (y * (t - z)) elif y <= 1.9e-172: tmp = t_1 else: tmp = x / ((y - z) * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(x / Float64(z * Float64(z - t))) tmp = 0.0 if (y <= -4.4e+38) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (y <= -1.8e+21) tmp = t_1; elseif (y <= -7e-60) tmp = Float64(x / Float64(y * Float64(t - z))); elseif (y <= 1.9e-172) tmp = t_1; else tmp = Float64(x / Float64(Float64(y - z) * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = x / (z * (z - t));
tmp = 0.0;
if (y <= -4.4e+38)
tmp = (x / y) / (t - z);
elseif (y <= -1.8e+21)
tmp = t_1;
elseif (y <= -7e-60)
tmp = x / (y * (t - z));
elseif (y <= 1.9e-172)
tmp = t_1;
else
tmp = x / ((y - z) * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.4e+38], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.8e+21], t$95$1, If[LessEqual[y, -7e-60], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e-172], t$95$1, N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \frac{x}{z \cdot \left(z - t\right)}\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{+38}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-60}:\\
\;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-172}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (* z (- z t)))))
(if (<= z -2.65e-79)
t_1
(if (<= z 9.2e-247)
(/ (/ x (- t z)) y)
(if (<= z 1.12e-145)
(/ x (* (- y z) t))
(if (<= z 3.9e-103) (/ (/ x y) (- t z)) t_1))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = x / (z * (z - t));
double tmp;
if (z <= -2.65e-79) {
tmp = t_1;
} else if (z <= 9.2e-247) {
tmp = (x / (t - z)) / y;
} else if (z <= 1.12e-145) {
tmp = x / ((y - z) * t);
} else if (z <= 3.9e-103) {
tmp = (x / y) / (t - z);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 = x / (z * (z - t))
if (z <= (-2.65d-79)) then
tmp = t_1
else if (z <= 9.2d-247) then
tmp = (x / (t - z)) / y
else if (z <= 1.12d-145) then
tmp = x / ((y - z) * t)
else if (z <= 3.9d-103) then
tmp = (x / y) / (t - z)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = x / (z * (z - t));
double tmp;
if (z <= -2.65e-79) {
tmp = t_1;
} else if (z <= 9.2e-247) {
tmp = (x / (t - z)) / y;
} else if (z <= 1.12e-145) {
tmp = x / ((y - z) * t);
} else if (z <= 3.9e-103) {
tmp = (x / y) / (t - z);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = x / (z * (z - t)) tmp = 0 if z <= -2.65e-79: tmp = t_1 elif z <= 9.2e-247: tmp = (x / (t - z)) / y elif z <= 1.12e-145: tmp = x / ((y - z) * t) elif z <= 3.9e-103: tmp = (x / y) / (t - z) else: tmp = t_1 return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(x / Float64(z * Float64(z - t))) tmp = 0.0 if (z <= -2.65e-79) tmp = t_1; elseif (z <= 9.2e-247) tmp = Float64(Float64(x / Float64(t - z)) / y); elseif (z <= 1.12e-145) tmp = Float64(x / Float64(Float64(y - z) * t)); elseif (z <= 3.9e-103) tmp = Float64(Float64(x / y) / Float64(t - z)); else tmp = t_1; end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = x / (z * (z - t));
tmp = 0.0;
if (z <= -2.65e-79)
tmp = t_1;
elseif (z <= 9.2e-247)
tmp = (x / (t - z)) / y;
elseif (z <= 1.12e-145)
tmp = x / ((y - z) * t);
elseif (z <= 3.9e-103)
tmp = (x / y) / (t - z);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.65e-79], t$95$1, If[LessEqual[z, 9.2e-247], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 1.12e-145], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e-103], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \frac{x}{z \cdot \left(z - t\right)}\\
\mathbf{if}\;z \leq -2.65 \cdot 10^{-79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-247}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y}\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{-145}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-103}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= y -3.2e+43)
(/ (/ x (- t z)) y)
(if (<= y -3.25e-142)
(/ (- x) (* z (- y z)))
(if (<= y 1.15e-172) (/ (/ (- x) z) (- t z)) (/ (/ x (- y z)) t)))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.2e+43) {
tmp = (x / (t - z)) / y;
} else if (y <= -3.25e-142) {
tmp = -x / (z * (y - z));
} else if (y <= 1.15e-172) {
tmp = (-x / z) / (t - z);
} else {
tmp = (x / (y - z)) / t;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 (y <= (-3.2d+43)) then
tmp = (x / (t - z)) / y
else if (y <= (-3.25d-142)) then
tmp = -x / (z * (y - z))
else if (y <= 1.15d-172) then
tmp = (-x / z) / (t - z)
else
tmp = (x / (y - z)) / t
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.2e+43) {
tmp = (x / (t - z)) / y;
} else if (y <= -3.25e-142) {
tmp = -x / (z * (y - z));
} else if (y <= 1.15e-172) {
tmp = (-x / z) / (t - z);
} else {
tmp = (x / (y - z)) / t;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if y <= -3.2e+43: tmp = (x / (t - z)) / y elif y <= -3.25e-142: tmp = -x / (z * (y - z)) elif y <= 1.15e-172: tmp = (-x / z) / (t - z) else: tmp = (x / (y - z)) / t return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -3.2e+43) tmp = Float64(Float64(x / Float64(t - z)) / y); elseif (y <= -3.25e-142) tmp = Float64(Float64(-x) / Float64(z * Float64(y - z))); elseif (y <= 1.15e-172) tmp = Float64(Float64(Float64(-x) / z) / Float64(t - z)); else tmp = Float64(Float64(x / Float64(y - z)) / t); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -3.2e+43)
tmp = (x / (t - z)) / y;
elseif (y <= -3.25e-142)
tmp = -x / (z * (y - z));
elseif (y <= 1.15e-172)
tmp = (-x / z) / (t - z);
else
tmp = (x / (y - z)) / t;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -3.2e+43], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, -3.25e-142], N[((-x) / N[(z * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e-172], N[(N[((-x) / z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+43}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y}\\
\mathbf{elif}\;y \leq -3.25 \cdot 10^{-142}:\\
\;\;\;\;\frac{-x}{z \cdot \left(y - z\right)}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-172}:\\
\;\;\;\;\frac{\frac{-x}{z}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= t 5.2e-137)
(/ (- x) (* y z))
(if (or (<= t 8.2e+105) (not (<= t 3.2e+263)))
(/ (/ x t) y)
(/ x (* z (- t))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 5.2e-137) {
tmp = -x / (y * z);
} else if ((t <= 8.2e+105) || !(t <= 3.2e+263)) {
tmp = (x / t) / y;
} else {
tmp = x / (z * -t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 (t <= 5.2d-137) then
tmp = -x / (y * z)
else if ((t <= 8.2d+105) .or. (.not. (t <= 3.2d+263))) then
tmp = (x / t) / y
else
tmp = x / (z * -t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 5.2e-137) {
tmp = -x / (y * z);
} else if ((t <= 8.2e+105) || !(t <= 3.2e+263)) {
tmp = (x / t) / y;
} else {
tmp = x / (z * -t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 5.2e-137: tmp = -x / (y * z) elif (t <= 8.2e+105) or not (t <= 3.2e+263): tmp = (x / t) / y else: tmp = x / (z * -t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 5.2e-137) tmp = Float64(Float64(-x) / Float64(y * z)); elseif ((t <= 8.2e+105) || !(t <= 3.2e+263)) tmp = Float64(Float64(x / t) / y); else tmp = Float64(x / Float64(z * Float64(-t))); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 5.2e-137)
tmp = -x / (y * z);
elseif ((t <= 8.2e+105) || ~((t <= 3.2e+263)))
tmp = (x / t) / y;
else
tmp = x / (z * -t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 5.2e-137], N[((-x) / N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 8.2e+105], N[Not[LessEqual[t, 3.2e+263]], $MachinePrecision]], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(z * (-t)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5.2 \cdot 10^{-137}:\\
\;\;\;\;\frac{-x}{y \cdot z}\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+105} \lor \neg \left(t \leq 3.2 \cdot 10^{+263}\right):\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z \cdot \left(-t\right)}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= t 8.5e-132)
(/ (- x) (* y z))
(if (or (<= t 8.4e+105) (not (<= t 1.02e+263)))
(/ (/ x t) y)
(/ (/ (- x) t) z))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 8.5e-132) {
tmp = -x / (y * z);
} else if ((t <= 8.4e+105) || !(t <= 1.02e+263)) {
tmp = (x / t) / y;
} else {
tmp = (-x / t) / z;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 (t <= 8.5d-132) then
tmp = -x / (y * z)
else if ((t <= 8.4d+105) .or. (.not. (t <= 1.02d+263))) then
tmp = (x / t) / y
else
tmp = (-x / t) / z
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 8.5e-132) {
tmp = -x / (y * z);
} else if ((t <= 8.4e+105) || !(t <= 1.02e+263)) {
tmp = (x / t) / y;
} else {
tmp = (-x / t) / z;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 8.5e-132: tmp = -x / (y * z) elif (t <= 8.4e+105) or not (t <= 1.02e+263): tmp = (x / t) / y else: tmp = (-x / t) / z return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 8.5e-132) tmp = Float64(Float64(-x) / Float64(y * z)); elseif ((t <= 8.4e+105) || !(t <= 1.02e+263)) tmp = Float64(Float64(x / t) / y); else tmp = Float64(Float64(Float64(-x) / t) / z); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 8.5e-132)
tmp = -x / (y * z);
elseif ((t <= 8.4e+105) || ~((t <= 1.02e+263)))
tmp = (x / t) / y;
else
tmp = (-x / t) / z;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 8.5e-132], N[((-x) / N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 8.4e+105], N[Not[LessEqual[t, 1.02e+263]], $MachinePrecision]], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision], N[(N[((-x) / t), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 8.5 \cdot 10^{-132}:\\
\;\;\;\;\frac{-x}{y \cdot z}\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{+105} \lor \neg \left(t \leq 1.02 \cdot 10^{+263}\right):\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-x}{t}}{z}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= t 2.75e-71)
(/ (/ (- x) z) y)
(if (or (<= t 8e+105) (not (<= t 1.02e+263)))
(/ (/ x t) y)
(/ (/ (- x) t) z))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 2.75e-71) {
tmp = (-x / z) / y;
} else if ((t <= 8e+105) || !(t <= 1.02e+263)) {
tmp = (x / t) / y;
} else {
tmp = (-x / t) / z;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 (t <= 2.75d-71) then
tmp = (-x / z) / y
else if ((t <= 8d+105) .or. (.not. (t <= 1.02d+263))) then
tmp = (x / t) / y
else
tmp = (-x / t) / z
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 2.75e-71) {
tmp = (-x / z) / y;
} else if ((t <= 8e+105) || !(t <= 1.02e+263)) {
tmp = (x / t) / y;
} else {
tmp = (-x / t) / z;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 2.75e-71: tmp = (-x / z) / y elif (t <= 8e+105) or not (t <= 1.02e+263): tmp = (x / t) / y else: tmp = (-x / t) / z return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 2.75e-71) tmp = Float64(Float64(Float64(-x) / z) / y); elseif ((t <= 8e+105) || !(t <= 1.02e+263)) tmp = Float64(Float64(x / t) / y); else tmp = Float64(Float64(Float64(-x) / t) / z); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 2.75e-71)
tmp = (-x / z) / y;
elseif ((t <= 8e+105) || ~((t <= 1.02e+263)))
tmp = (x / t) / y;
else
tmp = (-x / t) / z;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 2.75e-71], N[(N[((-x) / z), $MachinePrecision] / y), $MachinePrecision], If[Or[LessEqual[t, 8e+105], N[Not[LessEqual[t, 1.02e+263]], $MachinePrecision]], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision], N[(N[((-x) / t), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.75 \cdot 10^{-71}:\\
\;\;\;\;\frac{\frac{-x}{z}}{y}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+105} \lor \neg \left(t \leq 1.02 \cdot 10^{+263}\right):\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-x}{t}}{z}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= z -7.5e+16)
(/ (/ x z) y)
(if (<= z 2.7e-103)
(/ (/ x t) y)
(if (<= z 4.6e+232) (/ x (* z (- t))) (/ x (* y z))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.5e+16) {
tmp = (x / z) / y;
} else if (z <= 2.7e-103) {
tmp = (x / t) / y;
} else if (z <= 4.6e+232) {
tmp = x / (z * -t);
} else {
tmp = x / (y * z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 <= (-7.5d+16)) then
tmp = (x / z) / y
else if (z <= 2.7d-103) then
tmp = (x / t) / y
else if (z <= 4.6d+232) then
tmp = x / (z * -t)
else
tmp = x / (y * z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.5e+16) {
tmp = (x / z) / y;
} else if (z <= 2.7e-103) {
tmp = (x / t) / y;
} else if (z <= 4.6e+232) {
tmp = x / (z * -t);
} else {
tmp = x / (y * z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if z <= -7.5e+16: tmp = (x / z) / y elif z <= 2.7e-103: tmp = (x / t) / y elif z <= 4.6e+232: tmp = x / (z * -t) else: tmp = x / (y * z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (z <= -7.5e+16) tmp = Float64(Float64(x / z) / y); elseif (z <= 2.7e-103) tmp = Float64(Float64(x / t) / y); elseif (z <= 4.6e+232) tmp = Float64(x / Float64(z * Float64(-t))); else tmp = Float64(x / Float64(y * z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (z <= -7.5e+16)
tmp = (x / z) / y;
elseif (z <= 2.7e-103)
tmp = (x / t) / y;
elseif (z <= 4.6e+232)
tmp = x / (z * -t);
else
tmp = x / (y * z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[z, -7.5e+16], N[(N[(x / z), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 2.7e-103], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 4.6e+232], N[(x / N[(z * (-t)), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+16}:\\
\;\;\;\;\frac{\frac{x}{z}}{y}\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-103}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+232}:\\
\;\;\;\;\frac{x}{z \cdot \left(-t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot z}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t -3.7e-29) (/ (/ x (- t z)) y) (if (<= t 4.8e-53) (/ (/ (- x) z) (- y z)) (/ (/ x (- y z)) t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.7e-29) {
tmp = (x / (t - z)) / y;
} else if (t <= 4.8e-53) {
tmp = (-x / z) / (y - z);
} else {
tmp = (x / (y - z)) / t;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 (t <= (-3.7d-29)) then
tmp = (x / (t - z)) / y
else if (t <= 4.8d-53) then
tmp = (-x / z) / (y - z)
else
tmp = (x / (y - z)) / t
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.7e-29) {
tmp = (x / (t - z)) / y;
} else if (t <= 4.8e-53) {
tmp = (-x / z) / (y - z);
} else {
tmp = (x / (y - z)) / t;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= -3.7e-29: tmp = (x / (t - z)) / y elif t <= 4.8e-53: tmp = (-x / z) / (y - z) else: tmp = (x / (y - z)) / t return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= -3.7e-29) tmp = Float64(Float64(x / Float64(t - z)) / y); elseif (t <= 4.8e-53) tmp = Float64(Float64(Float64(-x) / z) / Float64(y - z)); else tmp = Float64(Float64(x / Float64(y - z)) / t); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= -3.7e-29)
tmp = (x / (t - z)) / y;
elseif (t <= 4.8e-53)
tmp = (-x / z) / (y - z);
else
tmp = (x / (y - z)) / t;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, -3.7e-29], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 4.8e-53], N[(N[((-x) / z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.7 \cdot 10^{-29}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y}\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-53}:\\
\;\;\;\;\frac{\frac{-x}{z}}{y - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= z -4.2e-75) (not (<= z 3.5e-85))) (/ x (* z (- z t))) (/ x (* (- y z) t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.2e-75) || !(z <= 3.5e-85)) {
tmp = x / (z * (z - t));
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 <= (-4.2d-75)) .or. (.not. (z <= 3.5d-85))) then
tmp = x / (z * (z - t))
else
tmp = x / ((y - z) * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.2e-75) || !(z <= 3.5e-85)) {
tmp = x / (z * (z - t));
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if (z <= -4.2e-75) or not (z <= 3.5e-85): tmp = x / (z * (z - t)) else: tmp = x / ((y - z) * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if ((z <= -4.2e-75) || !(z <= 3.5e-85)) tmp = Float64(x / Float64(z * Float64(z - t))); else tmp = Float64(x / Float64(Float64(y - z) * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z <= -4.2e-75) || ~((z <= 3.5e-85)))
tmp = x / (z * (z - t));
else
tmp = x / ((y - z) * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.2e-75], N[Not[LessEqual[z, 3.5e-85]], $MachinePrecision]], N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{-75} \lor \neg \left(z \leq 3.5 \cdot 10^{-85}\right):\\
\;\;\;\;\frac{x}{z \cdot \left(z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= y -8.5e-68) (/ x (* y (- t z))) (if (<= y 1.7e-172) (/ x (* z (- z t))) (/ x (* (- y z) t)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.5e-68) {
tmp = x / (y * (t - z));
} else if (y <= 1.7e-172) {
tmp = x / (z * (z - t));
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 (y <= (-8.5d-68)) then
tmp = x / (y * (t - z))
else if (y <= 1.7d-172) then
tmp = x / (z * (z - t))
else
tmp = x / ((y - z) * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.5e-68) {
tmp = x / (y * (t - z));
} else if (y <= 1.7e-172) {
tmp = x / (z * (z - t));
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if y <= -8.5e-68: tmp = x / (y * (t - z)) elif y <= 1.7e-172: tmp = x / (z * (z - t)) else: tmp = x / ((y - z) * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -8.5e-68) tmp = Float64(x / Float64(y * Float64(t - z))); elseif (y <= 1.7e-172) tmp = Float64(x / Float64(z * Float64(z - t))); else tmp = Float64(x / Float64(Float64(y - z) * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -8.5e-68)
tmp = x / (y * (t - z));
elseif (y <= 1.7e-172)
tmp = x / (z * (z - t));
else
tmp = x / ((y - z) * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -8.5e-68], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e-172], N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{-68}:\\
\;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-172}:\\
\;\;\;\;\frac{x}{z \cdot \left(z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= z -6.2e+144) (not (<= z 11500000000000.0))) (/ x (* z t)) (/ x (* y t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -6.2e+144) || !(z <= 11500000000000.0)) {
tmp = x / (z * t);
} else {
tmp = x / (y * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 <= (-6.2d+144)) .or. (.not. (z <= 11500000000000.0d0))) then
tmp = x / (z * t)
else
tmp = x / (y * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -6.2e+144) || !(z <= 11500000000000.0)) {
tmp = x / (z * t);
} else {
tmp = x / (y * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if (z <= -6.2e+144) or not (z <= 11500000000000.0): tmp = x / (z * t) else: tmp = x / (y * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if ((z <= -6.2e+144) || !(z <= 11500000000000.0)) tmp = Float64(x / Float64(z * t)); else tmp = Float64(x / Float64(y * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z <= -6.2e+144) || ~((z <= 11500000000000.0)))
tmp = x / (z * t);
else
tmp = x / (y * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[z, -6.2e+144], N[Not[LessEqual[z, 11500000000000.0]], $MachinePrecision]], N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+144} \lor \neg \left(z \leq 11500000000000\right):\\
\;\;\;\;\frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot t}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= z -6.5e+144) (/ x (* z t)) (if (<= z 1.8e+156) (/ x (* y t)) (/ x (* y z)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -6.5e+144) {
tmp = x / (z * t);
} else if (z <= 1.8e+156) {
tmp = x / (y * t);
} else {
tmp = x / (y * z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 <= (-6.5d+144)) then
tmp = x / (z * t)
else if (z <= 1.8d+156) then
tmp = x / (y * t)
else
tmp = x / (y * z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -6.5e+144) {
tmp = x / (z * t);
} else if (z <= 1.8e+156) {
tmp = x / (y * t);
} else {
tmp = x / (y * z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if z <= -6.5e+144: tmp = x / (z * t) elif z <= 1.8e+156: tmp = x / (y * t) else: tmp = x / (y * z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (z <= -6.5e+144) tmp = Float64(x / Float64(z * t)); elseif (z <= 1.8e+156) tmp = Float64(x / Float64(y * t)); else tmp = Float64(x / Float64(y * z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (z <= -6.5e+144)
tmp = x / (z * t);
elseif (z <= 1.8e+156)
tmp = x / (y * t);
else
tmp = x / (y * z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[z, -6.5e+144], N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+156], N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{+144}:\\
\;\;\;\;\frac{x}{z \cdot t}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+156}:\\
\;\;\;\;\frac{x}{y \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot z}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= z -2.2e+145) (/ x (* z t)) (if (<= z 1.65e+156) (/ (/ x t) y) (/ x (* y z)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.2e+145) {
tmp = x / (z * t);
} else if (z <= 1.65e+156) {
tmp = (x / t) / y;
} else {
tmp = x / (y * z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 <= (-2.2d+145)) then
tmp = x / (z * t)
else if (z <= 1.65d+156) then
tmp = (x / t) / y
else
tmp = x / (y * z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.2e+145) {
tmp = x / (z * t);
} else if (z <= 1.65e+156) {
tmp = (x / t) / y;
} else {
tmp = x / (y * z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if z <= -2.2e+145: tmp = x / (z * t) elif z <= 1.65e+156: tmp = (x / t) / y else: tmp = x / (y * z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (z <= -2.2e+145) tmp = Float64(x / Float64(z * t)); elseif (z <= 1.65e+156) tmp = Float64(Float64(x / t) / y); else tmp = Float64(x / Float64(y * z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (z <= -2.2e+145)
tmp = x / (z * t);
elseif (z <= 1.65e+156)
tmp = (x / t) / y;
else
tmp = x / (y * z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[z, -2.2e+145], N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e+156], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{+145}:\\
\;\;\;\;\frac{x}{z \cdot t}\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{+156}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot z}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= z -7.5e+16) (/ (/ x z) y) (if (<= z 1.8e+156) (/ (/ x t) y) (/ x (* y z)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.5e+16) {
tmp = (x / z) / y;
} else if (z <= 1.8e+156) {
tmp = (x / t) / y;
} else {
tmp = x / (y * z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 <= (-7.5d+16)) then
tmp = (x / z) / y
else if (z <= 1.8d+156) then
tmp = (x / t) / y
else
tmp = x / (y * z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.5e+16) {
tmp = (x / z) / y;
} else if (z <= 1.8e+156) {
tmp = (x / t) / y;
} else {
tmp = x / (y * z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if z <= -7.5e+16: tmp = (x / z) / y elif z <= 1.8e+156: tmp = (x / t) / y else: tmp = x / (y * z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (z <= -7.5e+16) tmp = Float64(Float64(x / z) / y); elseif (z <= 1.8e+156) tmp = Float64(Float64(x / t) / y); else tmp = Float64(x / Float64(y * z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (z <= -7.5e+16)
tmp = (x / z) / y;
elseif (z <= 1.8e+156)
tmp = (x / t) / y;
else
tmp = x / (y * z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[z, -7.5e+16], N[(N[(x / z), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 1.8e+156], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+16}:\\
\;\;\;\;\frac{\frac{x}{z}}{y}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+156}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot z}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t 1.35e-148) (/ (/ (- x) z) y) (/ x (* (- y z) t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 1.35e-148) {
tmp = (-x / z) / y;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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 (t <= 1.35d-148) then
tmp = (-x / z) / y
else
tmp = x / ((y - z) * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 1.35e-148) {
tmp = (-x / z) / y;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 1.35e-148: tmp = (-x / z) / y else: tmp = x / ((y - z) * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 1.35e-148) tmp = Float64(Float64(Float64(-x) / z) / y); else tmp = Float64(x / Float64(Float64(y - z) * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 1.35e-148)
tmp = (-x / z) / y;
else
tmp = x / ((y - z) * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 1.35e-148], N[(N[((-x) / z), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.35 \cdot 10^{-148}:\\
\;\;\;\;\frac{\frac{-x}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (/ x (* y t)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return x / (y * t);
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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
code = x / (y * t)
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return x / (y * t);
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return x / (y * t)
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(x / Float64(y * t)) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = x / (y * t);
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\frac{x}{y \cdot t}
\end{array}
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (- y z) (- t z)))) (if (< (/ x t_1) 0.0) (/ (/ x (- y z)) (- t z)) (* x (/ 1.0 t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if ((x / t_1) < 0.0) {
tmp = (x / (y - z)) / (t - z);
} else {
tmp = x * (1.0 / t_1);
}
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
real(8) :: t_1
real(8) :: tmp
t_1 = (y - z) * (t - z)
if ((x / t_1) < 0.0d0) then
tmp = (x / (y - z)) / (t - z)
else
tmp = x * (1.0d0 / t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if ((x / t_1) < 0.0) {
tmp = (x / (y - z)) / (t - z);
} else {
tmp = x * (1.0 / t_1);
}
return tmp;
}
def code(x, y, z, t): t_1 = (y - z) * (t - z) tmp = 0 if (x / t_1) < 0.0: tmp = (x / (y - z)) / (t - z) else: tmp = x * (1.0 / t_1) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y - z) * Float64(t - z)) tmp = 0.0 if (Float64(x / t_1) < 0.0) tmp = Float64(Float64(x / Float64(y - z)) / Float64(t - z)); else tmp = Float64(x * Float64(1.0 / t_1)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y - z) * (t - z); tmp = 0.0; if ((x / t_1) < 0.0) tmp = (x / (y - z)) / (t - z); else tmp = x * (1.0 / t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[Less[N[(x / t$95$1), $MachinePrecision], 0.0], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
\mathbf{if}\;\frac{x}{t_1} < 0:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{t_1}\\
\end{array}
\end{array}
herbie shell --seed 2024008
(FPCore (x y z t)
:name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B"
:precision binary64
:herbie-target
(if (< (/ x (* (- y z) (- t z))) 0.0) (/ (/ x (- y z)) (- t z)) (* x (/ 1.0 (* (- y z) (- t z)))))
(/ x (* (- y z) (- t z))))