\[\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}
\]
↓
\[\frac{x \cdot \frac{\frac{y}{x + 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 (/ (/ y (+ x 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 * ((y / (x + 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 * ((y / (x + 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 * ((y / (x + 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 * ((y / (x + 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(x * Float64(Float64(y / Float64(x + 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 * ((y / (x + 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[(x * N[(N[(y / N[(x + y), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + 1.0), $MachinePrecision]), $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{x \cdot \frac{\frac{y}{x + y}}{y + \left(x + 1\right)}}{x + y}
Alternatives
| Alternative 1 |
|---|
| Error | 5.3 |
|---|
| Cost | 1220 |
|---|
\[\begin{array}{l}
t_0 := \frac{y}{x + y}\\
\mathbf{if}\;x \leq -3.953410181335054 \cdot 10^{+68}:\\
\;\;\;\;\frac{t_0}{1 + \left(x + y \cdot 2\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{t_0}{\left(x + y\right) \cdot \left(\left(x + y\right) + 1\right)}\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 21.7 |
|---|
| Cost | 1096 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -8.937224149169489 \cdot 10^{+157}:\\
\;\;\;\;\frac{\frac{y}{x + y}}{1 + \left(x + y \cdot 2\right)}\\
\mathbf{elif}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{y}{\left(x + y\right) \cdot \left(x + \left(y + 1\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{1}{y + \left(x + 1\right)}}{x + y}\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 0.1 |
|---|
| Cost | 1088 |
|---|
\[\frac{y}{x + y} \cdot \frac{\frac{x}{x + y}}{\left(x + y\right) + 1}
\]
| Alternative 4 |
|---|
| Error | 24.7 |
|---|
| Cost | 964 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{y}{x + y}}{1 + \left(x + y \cdot 2\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y} \cdot \frac{1}{y + 1}\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 24.5 |
|---|
| Cost | 964 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{y}{x + y}}{1 + \left(x + y \cdot 2\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{1}{y + \left(x + 1\right)}}{x + y}\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 23.9 |
|---|
| Cost | 844 |
|---|
\[\begin{array}{l}
t_0 := \frac{\frac{y}{x}}{x + 1}\\
\mathbf{if}\;y \leq 4.3999721589381234 \cdot 10^{-74}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 7.775629882489578 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{y} - x\\
\mathbf{elif}\;y \leq 3.230507962694233 \cdot 10^{+31}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 23.9 |
|---|
| Cost | 844 |
|---|
\[\begin{array}{l}
t_0 := \frac{\frac{y}{x}}{x + 1}\\
\mathbf{if}\;y \leq 4.3999721589381234 \cdot 10^{-74}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 7.775629882489578 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{y} - x\\
\mathbf{elif}\;y \leq 1.8617215179976599 \cdot 10^{+24}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{x + y}\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 23.9 |
|---|
| Cost | 844 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq 4.3999721589381234 \cdot 10^{-74}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{elif}\;y \leq 7.775629882489578 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{y} - x\\
\mathbf{elif}\;y \leq 7.339461142889711 \cdot 10^{+28}:\\
\;\;\;\;\frac{\frac{y}{x + y}}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{x + y}\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 25.0 |
|---|
| Cost | 836 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{y}{x + y}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y} \cdot \frac{1}{y + 1}\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 29.7 |
|---|
| Cost | 716 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -145.98319200575563:\\
\;\;\;\;\frac{\frac{y}{x}}{x}\\
\mathbf{elif}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{y}{x} - y\\
\mathbf{elif}\;x \leq 1.228859111833597 \cdot 10^{-221}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 25.5 |
|---|
| Cost | 708 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{y}{x + y}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\end{array}
\]
| Alternative 12 |
|---|
| Error | 25.0 |
|---|
| Cost | 708 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{y}{x + y}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y + 1}}{x + y}\\
\end{array}
\]
| Alternative 13 |
|---|
| Error | 34.8 |
|---|
| Cost | 584 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -145.98319200575563:\\
\;\;\;\;\frac{\frac{y}{x}}{x}\\
\mathbf{elif}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{y}{x} - y\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\]
| Alternative 14 |
|---|
| Error | 25.6 |
|---|
| Cost | 580 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\end{array}
\]
| Alternative 15 |
|---|
| Error | 34.8 |
|---|
| Cost | 456 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -145.98319200575563:\\
\;\;\;\;\frac{\frac{y}{x}}{x}\\
\mathbf{elif}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\]
| Alternative 16 |
|---|
| Error | 41.9 |
|---|
| Cost | 324 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -7.897542295876651 \cdot 10^{-121}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\]
| Alternative 17 |
|---|
| Error | 47.1 |
|---|
| Cost | 192 |
|---|
\[\frac{x}{y}
\]
| Alternative 18 |
|---|
| Error | 61.8 |
|---|
| Cost | 64 |
|---|
\[1
\]