\[\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{\frac{x}{\frac{x + y}{y}}}{y + \left(x + 1\right)}}{x + y}
\]
(FPCore (x y)
:precision binary64
(/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))
↓
(FPCore (x y)
:precision binary64
(/ (/ (/ x (/ (+ x y) y)) (+ y (+ x 1.0))) (+ x y)))
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 / ((x + y) / y)) / (y + (x + 1.0))) / (x + y);
}
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 / ((x + y) / y)) / (y + (x + 1.0d0))) / (x + y)
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 / ((x + y) / y)) / (y + (x + 1.0))) / (x + y);
}
def code(x, y):
return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0))
↓
def code(x, y):
return ((x / ((x + y) / y)) / (y + (x + 1.0))) / (x + y)
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(Float64(x + y) / y)) / Float64(y + Float64(x + 1.0))) / Float64(x + y))
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 / ((x + y) / y)) / (y + (x + 1.0))) / (x + y);
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[(N[(x + y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + y), $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{\frac{x}{\frac{x + y}{y}}}{y + \left(x + 1\right)}}{x + y}
Alternatives
| Alternative 1 |
|---|
| Error | 28.8 |
|---|
| Cost | 1108 |
|---|
\[\begin{array}{l}
t_0 := \frac{\frac{x}{y}}{x + y}\\
t_1 := \frac{\frac{y}{x}}{x}\\
\mathbf{if}\;x \leq -2.09200666399979 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.2816854703194275 \cdot 10^{+68}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\mathbf{elif}\;x \leq -7.703914928277443 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.959138654335228 \cdot 10^{-162}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 3.9592503643939034 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 28.7 |
|---|
| Cost | 1108 |
|---|
\[\begin{array}{l}
t_0 := \frac{\frac{x}{y}}{x + y}\\
t_1 := \frac{\frac{y}{x}}{x + y}\\
\mathbf{if}\;x \leq -2.09200666399979 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.2816854703194275 \cdot 10^{+68}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\mathbf{elif}\;x \leq -10539221448929307000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.959138654335228 \cdot 10^{-162}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 3.9592503643939034 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 28.9 |
|---|
| Cost | 1108 |
|---|
\[\begin{array}{l}
t_0 := \frac{\frac{y}{x}}{x + y}\\
t_1 := \frac{x}{y} \cdot \frac{1}{y}\\
\mathbf{if}\;x \leq -2.09200666399979 \cdot 10^{+79}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -2.2816854703194275 \cdot 10^{+68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -10539221448929307000:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -2.959138654335228 \cdot 10^{-162}:\\
\;\;\;\;\frac{\frac{x}{y}}{x + y}\\
\mathbf{elif}\;x \leq 3.9592503643939034 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 0.4 |
|---|
| Cost | 1088 |
|---|
\[\frac{\frac{y}{x + y}}{\frac{x + y}{\frac{x}{y + \left(x + 1\right)}}}
\]
| Alternative 5 |
|---|
| Error | 0.1 |
|---|
| Cost | 1088 |
|---|
\[\frac{\frac{\frac{x}{x + y}}{y + \left(x + 1\right)}}{\frac{x + y}{y}}
\]
| Alternative 6 |
|---|
| Error | 29.0 |
|---|
| Cost | 980 |
|---|
\[\begin{array}{l}
t_0 := \frac{\frac{y}{x}}{x}\\
t_1 := \frac{\frac{x}{y}}{y}\\
\mathbf{if}\;x \leq -2.09200666399979 \cdot 10^{+79}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -2.2816854703194275 \cdot 10^{+68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -10539221448929307000:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -2.959138654335228 \cdot 10^{-162}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.9592503643939034 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 24.9 |
|---|
| Cost | 976 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.09200666399979 \cdot 10^{+79}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + y}\\
\mathbf{elif}\;x \leq -2.2816854703194275 \cdot 10^{+68}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{y}\\
\mathbf{elif}\;x \leq -9.92367623869806 \cdot 10^{-89}:\\
\;\;\;\;\frac{y}{x + x \cdot x}\\
\mathbf{elif}\;x \leq 2.1779216795629714 \cdot 10^{-43}:\\
\;\;\;\;\frac{x}{y + y \cdot y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{x + y}\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 23.2 |
|---|
| Cost | 968 |
|---|
\[\begin{array}{l}
t_0 := y + \left(x + 1\right)\\
\mathbf{if}\;y \leq 2.83277814280875 \cdot 10^{-222}:\\
\;\;\;\;\frac{\frac{y}{t_0}}{x + y}\\
\mathbf{elif}\;y \leq 3.50627110191958 \cdot 10^{+134}:\\
\;\;\;\;\frac{x}{\left(x + y\right) \cdot \left(x + \left(y + 1\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t_0}}{x + y}\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 24.1 |
|---|
| Cost | 836 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq 3.5306660110744097 \cdot 10^{-74}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y + \left(x + 1\right)}}{x + y}\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 24.3 |
|---|
| Cost | 708 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq 3.5306660110744097 \cdot 10^{-74}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{1}{y + 1}}{\frac{y}{x}}\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 24.2 |
|---|
| Cost | 708 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq 3.5306660110744097 \cdot 10^{-74}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y + 1}}{x + y}\\
\end{array}
\]
| Alternative 12 |
|---|
| Error | 24.2 |
|---|
| Cost | 580 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq 3.203820540508273 \cdot 10^{-16}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{x + y}\\
\end{array}
\]
| Alternative 13 |
|---|
| Error | 36.5 |
|---|
| Cost | 452 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1966112.1439030466:\\
\;\;\;\;\frac{\frac{y}{x}}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\]
| Alternative 14 |
|---|
| Error | 61.3 |
|---|
| Cost | 192 |
|---|
\[\frac{1}{y}
\]
| Alternative 15 |
|---|
| Error | 47.7 |
|---|
| Cost | 192 |
|---|
\[\frac{x}{y}
\]