\[ \begin{array}{c}[x, y] = \mathsf{sort}([x, y])\\ \end{array} \]
\[\frac{\frac{1}{x}}{y \cdot \left(1 + z \cdot z\right)}
\]
↓
\[\begin{array}{l}
t_0 := y \cdot \left(1 + z \cdot z\right)\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;\frac{1}{y \cdot z} \cdot \frac{1}{z \cdot x}\\
\mathbf{elif}\;t_0 \leq 10^{+287}:\\
\;\;\;\;\frac{\frac{1}{x}}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(z \cdot x\right)\right)}\\
\end{array}
\]
(FPCore (x y z) :precision binary64 (/ (/ 1.0 x) (* y (+ 1.0 (* z z)))))
↓
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* y (+ 1.0 (* z z)))))
(if (<= t_0 (- INFINITY))
(* (/ 1.0 (* y z)) (/ 1.0 (* z x)))
(if (<= t_0 1e+287) (/ (/ 1.0 x) t_0) (/ 1.0 (* z (* y (* z x))))))))double code(double x, double y, double z) {
return (1.0 / x) / (y * (1.0 + (z * z)));
}
↓
double code(double x, double y, double z) {
double t_0 = y * (1.0 + (z * z));
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = (1.0 / (y * z)) * (1.0 / (z * x));
} else if (t_0 <= 1e+287) {
tmp = (1.0 / x) / t_0;
} else {
tmp = 1.0 / (z * (y * (z * x)));
}
return tmp;
}
public static double code(double x, double y, double z) {
return (1.0 / x) / (y * (1.0 + (z * z)));
}
↓
public static double code(double x, double y, double z) {
double t_0 = y * (1.0 + (z * z));
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = (1.0 / (y * z)) * (1.0 / (z * x));
} else if (t_0 <= 1e+287) {
tmp = (1.0 / x) / t_0;
} else {
tmp = 1.0 / (z * (y * (z * x)));
}
return tmp;
}
def code(x, y, z):
return (1.0 / x) / (y * (1.0 + (z * z)))
↓
def code(x, y, z):
t_0 = y * (1.0 + (z * z))
tmp = 0
if t_0 <= -math.inf:
tmp = (1.0 / (y * z)) * (1.0 / (z * x))
elif t_0 <= 1e+287:
tmp = (1.0 / x) / t_0
else:
tmp = 1.0 / (z * (y * (z * x)))
return tmp
function code(x, y, z)
return Float64(Float64(1.0 / x) / Float64(y * Float64(1.0 + Float64(z * z))))
end
↓
function code(x, y, z)
t_0 = Float64(y * Float64(1.0 + Float64(z * z)))
tmp = 0.0
if (t_0 <= Float64(-Inf))
tmp = Float64(Float64(1.0 / Float64(y * z)) * Float64(1.0 / Float64(z * x)));
elseif (t_0 <= 1e+287)
tmp = Float64(Float64(1.0 / x) / t_0);
else
tmp = Float64(1.0 / Float64(z * Float64(y * Float64(z * x))));
end
return tmp
end
function tmp = code(x, y, z)
tmp = (1.0 / x) / (y * (1.0 + (z * z)));
end
↓
function tmp_2 = code(x, y, z)
t_0 = y * (1.0 + (z * z));
tmp = 0.0;
if (t_0 <= -Inf)
tmp = (1.0 / (y * z)) * (1.0 / (z * x));
elseif (t_0 <= 1e+287)
tmp = (1.0 / x) / t_0;
else
tmp = 1.0 / (z * (y * (z * x)));
end
tmp_2 = tmp;
end
code[x_, y_, z_] := N[(N[(1.0 / x), $MachinePrecision] / N[(y * N[(1.0 + N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_] := Block[{t$95$0 = N[(y * N[(1.0 + N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(1.0 / N[(y * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 1e+287], N[(N[(1.0 / x), $MachinePrecision] / t$95$0), $MachinePrecision], N[(1.0 / N[(z * N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\frac{\frac{1}{x}}{y \cdot \left(1 + z \cdot z\right)}
↓
\begin{array}{l}
t_0 := y \cdot \left(1 + z \cdot z\right)\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;\frac{1}{y \cdot z} \cdot \frac{1}{z \cdot x}\\
\mathbf{elif}\;t_0 \leq 10^{+287}:\\
\;\;\;\;\frac{\frac{1}{x}}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(z \cdot x\right)\right)}\\
\end{array}
Alternatives
| Alternative 1 |
|---|
| Accuracy | 98.3% |
|---|
| Cost | 13764 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq 10000000:\\
\;\;\;\;\frac{1}{\frac{y \cdot \mathsf{hypot}\left(1, z\right)}{\frac{\frac{1}{x}}{\mathsf{hypot}\left(1, z\right)}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{1}{\mathsf{hypot}\left(1, z\right) \cdot \left(y \cdot x\right)}}{\mathsf{hypot}\left(1, z\right)}\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 97.1% |
|---|
| Cost | 7492 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \cdot \left(1 + z \cdot z\right) \leq 10^{+287}:\\
\;\;\;\;\frac{1}{x \cdot \mathsf{fma}\left(y \cdot z, z, y\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(z \cdot x\right)\right)}\\
\end{array}
\]
| Alternative 3 |
|---|
| Accuracy | 97.4% |
|---|
| Cost | 7492 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \cdot \left(1 + z \cdot z\right) \leq 10^{+287}:\\
\;\;\;\;\frac{\frac{1}{x}}{\mathsf{fma}\left(y \cdot z, z, y\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(z \cdot x\right)\right)}\\
\end{array}
\]
| Alternative 4 |
|---|
| Accuracy | 97.1% |
|---|
| Cost | 969 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -10000000000 \lor \neg \left(z \leq 1.36 \cdot 10^{+46}\right):\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(z \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y \cdot \left(x + x \cdot \left(z \cdot z\right)\right)}\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 93.3% |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;\frac{1}{y \cdot \left(z \cdot \left(z \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\end{array}
\]
| Alternative 6 |
|---|
| Accuracy | 96.5% |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;\frac{1}{z \cdot \left(x \cdot \left(y \cdot z\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\end{array}
\]
| Alternative 7 |
|---|
| Accuracy | 96.5% |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(z \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\end{array}
\]
| Alternative 8 |
|---|
| Accuracy | 96.4% |
|---|
| Cost | 836 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \cdot z \leq 0.0001:\\
\;\;\;\;\frac{1 - z \cdot z}{y \cdot x}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(z \cdot x\right)\right)}\\
\end{array}
\]
| Alternative 9 |
|---|
| Accuracy | 54.7% |
|---|
| Cost | 320 |
|---|
\[\frac{1}{y \cdot x}
\]