\[ \begin{array}{c}[x, y] = \mathsf{sort}([x, y])\\ \end{array} \]
\[\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}
\]
↓
\[\frac{\frac{x \cdot \frac{y}{y + x}}{y + x}}{x + \left(y + 1\right)}
\]
(FPCore (x y)
:precision binary64
(/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))
↓
(FPCore (x y)
:precision binary64
(/ (/ (* x (/ y (+ y x))) (+ y x)) (+ x (+ y 1.0))))
double code(double x, double y) {
return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0));
}
↓
double code(double x, double y) {
return ((x * (y / (y + x))) / (y + x)) / (x + (y + 1.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0d0))
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((x * (y / (y + x))) / (y + x)) / (x + (y + 1.0d0))
end function
public static double code(double x, double y) {
return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0));
}
↓
public static double code(double x, double y) {
return ((x * (y / (y + x))) / (y + x)) / (x + (y + 1.0));
}
def code(x, y):
return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0))
↓
def code(x, y):
return ((x * (y / (y + x))) / (y + x)) / (x + (y + 1.0))
function code(x, y)
return Float64(Float64(x * y) / Float64(Float64(Float64(x + y) * Float64(x + y)) * Float64(Float64(x + y) + 1.0)))
end
↓
function code(x, y)
return Float64(Float64(Float64(x * Float64(y / Float64(y + x))) / Float64(y + x)) / Float64(x + Float64(y + 1.0)))
end
function tmp = code(x, y)
tmp = (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0));
end
↓
function tmp = code(x, y)
tmp = ((x * (y / (y + x))) / (y + x)) / (x + (y + 1.0));
end
code[x_, y_] := N[(N[(x * y), $MachinePrecision] / N[(N[(N[(x + y), $MachinePrecision] * N[(x + y), $MachinePrecision]), $MachinePrecision] * N[(N[(x + y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := N[(N[(N[(x * N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + x), $MachinePrecision]), $MachinePrecision] / N[(x + N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}
↓
\frac{\frac{x \cdot \frac{y}{y + x}}{y + x}}{x + \left(y + 1\right)}
Alternatives
| Alternative 1 |
|---|
| Accuracy | 81.1% |
|---|
| Cost | 1100 |
|---|
\[\begin{array}{l}
t_0 := x + \left(y + 1\right)\\
\mathbf{if}\;x \leq -2.8 \cdot 10^{-42}:\\
\;\;\;\;\frac{\frac{y}{x}}{t_0}\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-96}:\\
\;\;\;\;\frac{\frac{x}{y + x}}{t_0}\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-111}:\\
\;\;\;\;\frac{\frac{y}{y + x}}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{t_0}\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 99.7% |
|---|
| Cost | 1088 |
|---|
\[\frac{x}{x + \left(y + 1\right)} \cdot \frac{\frac{y}{y + x}}{y + x}
\]
| Alternative 3 |
|---|
| Accuracy | 99.8% |
|---|
| Cost | 1088 |
|---|
\[\frac{\frac{y}{y + x} \cdot \frac{x}{y + x}}{x + \left(y + 1\right)}
\]
| Alternative 4 |
|---|
| Accuracy | 70.8% |
|---|
| Cost | 980 |
|---|
\[\begin{array}{l}
t_0 := \frac{x}{y \cdot y}\\
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -4.3 \cdot 10^{-48}:\\
\;\;\;\;\frac{y}{x} - y\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{-89}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -2.35 \cdot 10^{-132}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{-187}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 72.2% |
|---|
| Cost | 980 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -2.35 \cdot 10^{-48}:\\
\;\;\;\;\frac{y}{x} - y\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-92}:\\
\;\;\;\;\frac{x}{y \cdot y}\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-132}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{-187}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
\]
| Alternative 6 |
|---|
| Accuracy | 72.2% |
|---|
| Cost | 980 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{-48}:\\
\;\;\;\;\frac{y}{x} - y\\
\mathbf{elif}\;x \leq -4.9 \cdot 10^{-90}:\\
\;\;\;\;x \cdot \frac{\frac{1}{y}}{y}\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-132}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-189}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
\]
| Alternative 7 |
|---|
| Accuracy | 80.8% |
|---|
| Cost | 972 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-35}:\\
\;\;\;\;\frac{y}{x + 1} \cdot \frac{1}{x}\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{-96}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\mathbf{elif}\;x \leq -6.2 \cdot 10^{-111}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{x + \left(y + 1\right)}\\
\end{array}
\]
| Alternative 8 |
|---|
| Accuracy | 81.0% |
|---|
| Cost | 972 |
|---|
\[\begin{array}{l}
t_0 := x + \left(y + 1\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{-32}:\\
\;\;\;\;\frac{\frac{y}{x}}{t_0}\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-96}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-111}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{t_0}\\
\end{array}
\]
| Alternative 9 |
|---|
| Accuracy | 81.0% |
|---|
| Cost | 972 |
|---|
\[\begin{array}{l}
t_0 := x + \left(y + 1\right)\\
\mathbf{if}\;x \leq -7.6 \cdot 10^{-38}:\\
\;\;\;\;\frac{\frac{y}{x}}{t_0}\\
\mathbf{elif}\;x \leq -6.9 \cdot 10^{-96}:\\
\;\;\;\;\frac{\frac{x}{y + x}}{t_0}\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-111}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{t_0}\\
\end{array}
\]
| Alternative 10 |
|---|
| Accuracy | 78.1% |
|---|
| Cost | 844 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-111}:\\
\;\;\;\;\frac{y}{x} - y\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-106}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
\]
| Alternative 11 |
|---|
| Accuracy | 78.1% |
|---|
| Cost | 844 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-111}:\\
\;\;\;\;\frac{y}{x} - y\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-106}:\\
\;\;\;\;\frac{x}{y + y \cdot y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
\]
| Alternative 12 |
|---|
| Accuracy | 80.9% |
|---|
| Cost | 844 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{-41}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-96}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-111}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\]
| Alternative 13 |
|---|
| Accuracy | 80.8% |
|---|
| Cost | 844 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-33}:\\
\;\;\;\;\frac{y}{x + 1} \cdot \frac{1}{x}\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-96}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-111}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\]
| Alternative 14 |
|---|
| Accuracy | 79.0% |
|---|
| Cost | 712 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-111}:\\
\;\;\;\;\frac{y}{x} - y\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\]
| Alternative 15 |
|---|
| Accuracy | 64.5% |
|---|
| Cost | 584 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq 1.65 \cdot 10^{-174}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;y \leq 0.76:\\
\;\;\;\;\frac{x}{y} - x\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot y}\\
\end{array}
\]
| Alternative 16 |
|---|
| Accuracy | 43.7% |
|---|
| Cost | 324 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq 1.65 \cdot 10^{-174}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\]
| Alternative 17 |
|---|
| Accuracy | 4.3% |
|---|
| Cost | 192 |
|---|
\[\frac{1}{x}
\]
| Alternative 18 |
|---|
| Accuracy | 25.7% |
|---|
| Cost | 192 |
|---|
\[\frac{x}{y}
\]