\[ \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}
\mathbf{if}\;\frac{1}{x} \leq -5 \cdot 10^{-95}:\\
\;\;\;\;\frac{\frac{1}{x}}{\mathsf{hypot}\left(1, z\right)} \cdot \frac{\frac{1}{y}}{\mathsf{hypot}\left(1, z\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{hypot}\left(1, z\right)} \cdot \frac{\frac{1}{x \cdot y}}{\mathsf{hypot}\left(1, z\right)}\\
\end{array}
\]
(FPCore (x y z) :precision binary64 (/ (/ 1.0 x) (* y (+ 1.0 (* z z)))))
↓
(FPCore (x y z)
:precision binary64
(if (<= (/ 1.0 x) -5e-95)
(* (/ (/ 1.0 x) (hypot 1.0 z)) (/ (/ 1.0 y) (hypot 1.0 z)))
(* (/ 1.0 (hypot 1.0 z)) (/ (/ 1.0 (* x y)) (hypot 1.0 z)))))
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 tmp;
if ((1.0 / x) <= -5e-95) {
tmp = ((1.0 / x) / hypot(1.0, z)) * ((1.0 / y) / hypot(1.0, z));
} else {
tmp = (1.0 / hypot(1.0, z)) * ((1.0 / (x * y)) / hypot(1.0, z));
}
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 tmp;
if ((1.0 / x) <= -5e-95) {
tmp = ((1.0 / x) / Math.hypot(1.0, z)) * ((1.0 / y) / Math.hypot(1.0, z));
} else {
tmp = (1.0 / Math.hypot(1.0, z)) * ((1.0 / (x * y)) / Math.hypot(1.0, z));
}
return tmp;
}
def code(x, y, z):
return (1.0 / x) / (y * (1.0 + (z * z)))
↓
def code(x, y, z):
tmp = 0
if (1.0 / x) <= -5e-95:
tmp = ((1.0 / x) / math.hypot(1.0, z)) * ((1.0 / y) / math.hypot(1.0, z))
else:
tmp = (1.0 / math.hypot(1.0, z)) * ((1.0 / (x * y)) / math.hypot(1.0, z))
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)
tmp = 0.0
if (Float64(1.0 / x) <= -5e-95)
tmp = Float64(Float64(Float64(1.0 / x) / hypot(1.0, z)) * Float64(Float64(1.0 / y) / hypot(1.0, z)));
else
tmp = Float64(Float64(1.0 / hypot(1.0, z)) * Float64(Float64(1.0 / Float64(x * y)) / hypot(1.0, z)));
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)
tmp = 0.0;
if ((1.0 / x) <= -5e-95)
tmp = ((1.0 / x) / hypot(1.0, z)) * ((1.0 / y) / hypot(1.0, z));
else
tmp = (1.0 / hypot(1.0, z)) * ((1.0 / (x * y)) / hypot(1.0, z));
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_] := If[LessEqual[N[(1.0 / x), $MachinePrecision], -5e-95], N[(N[(N[(1.0 / x), $MachinePrecision] / N[Sqrt[1.0 ^ 2 + z ^ 2], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 / y), $MachinePrecision] / N[Sqrt[1.0 ^ 2 + z ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sqrt[1.0 ^ 2 + z ^ 2], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 / N[(x * y), $MachinePrecision]), $MachinePrecision] / N[Sqrt[1.0 ^ 2 + z ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\frac{\frac{1}{x}}{y \cdot \left(1 + z \cdot z\right)}
↓
\begin{array}{l}
\mathbf{if}\;\frac{1}{x} \leq -5 \cdot 10^{-95}:\\
\;\;\;\;\frac{\frac{1}{x}}{\mathsf{hypot}\left(1, z\right)} \cdot \frac{\frac{1}{y}}{\mathsf{hypot}\left(1, z\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{hypot}\left(1, z\right)} \cdot \frac{\frac{1}{x \cdot y}}{\mathsf{hypot}\left(1, z\right)}\\
\end{array}
Alternatives
| Alternative 1 |
|---|
| Accuracy | 99.3% |
|---|
| Cost | 1736 |
|---|
\[\begin{array}{l}
t_0 := y \cdot \left(1 + z \cdot z\right)\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;\frac{1}{x \cdot z} \cdot \frac{\frac{1}{y}}{z}\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\frac{\frac{1}{x}}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{1}{y}}{x \cdot z}}{z}\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 97.4% |
|---|
| Cost | 968 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+44}:\\
\;\;\;\;\frac{\frac{\frac{1}{y}}{x \cdot z}}{z}\\
\mathbf{elif}\;z \leq 12500000000000:\\
\;\;\;\;\frac{1}{x \cdot \left(y + y \cdot \left(z \cdot z\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{1}{z \cdot y}}{x}}{z}\\
\end{array}
\]
| Alternative 3 |
|---|
| Accuracy | 97.7% |
|---|
| Cost | 968 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+38}:\\
\;\;\;\;\frac{\frac{\frac{1}{y}}{x \cdot z}}{z}\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+146}:\\
\;\;\;\;\frac{\frac{\frac{1}{x}}{y}}{1 + z \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z \cdot y} \cdot \frac{\frac{1}{x}}{z}\\
\end{array}
\]
| Alternative 4 |
|---|
| Accuracy | 95.4% |
|---|
| Cost | 840 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -85:\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(x \cdot z\right)\right)}\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z \cdot \left(z \cdot \left(x \cdot y\right)\right)}\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 96.6% |
|---|
| Cost | 840 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -85:\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(x \cdot z\right)\right)}\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\left(x \cdot z\right) \cdot \left(z \cdot y\right)}\\
\end{array}
\]
| Alternative 6 |
|---|
| Accuracy | 96.7% |
|---|
| Cost | 840 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -85:\\
\;\;\;\;\frac{\frac{\frac{1}{y}}{x \cdot z}}{z}\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\left(x \cdot z\right) \cdot \left(z \cdot y\right)}\\
\end{array}
\]
| Alternative 7 |
|---|
| Accuracy | 96.8% |
|---|
| Cost | 840 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -85:\\
\;\;\;\;\frac{\frac{\frac{1}{y}}{x \cdot z}}{z}\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{1}{z \cdot y}}{x}}{z}\\
\end{array}
\]
| Alternative 8 |
|---|
| Accuracy | 89.9% |
|---|
| Cost | 836 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \cdot z \leq 1:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y \cdot \left(x \cdot \left(z \cdot z\right)\right)}\\
\end{array}
\]
| Alternative 9 |
|---|
| Accuracy | 97.0% |
|---|
| Cost | 836 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \cdot z \leq 0.02:\\
\;\;\;\;\frac{\frac{1}{x}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z \cdot \left(y \cdot \left(x \cdot z\right)\right)}\\
\end{array}
\]
| Alternative 10 |
|---|
| Accuracy | 58.6% |
|---|
| Cost | 320 |
|---|
\[\frac{1}{x \cdot y}
\]
| Alternative 11 |
|---|
| Accuracy | 58.6% |
|---|
| Cost | 320 |
|---|
\[\frac{\frac{1}{x}}{y}
\]