Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\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}{x + y}}{x + y}}{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 (+ x y))) (+ x y)) (+ 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 / (x + y))) / (x + y)) / (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 / (x + y))) / (x + y)) / (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 / (x + y))) / (x + y)) / (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 / (x + y))) / (x + y)) / (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(x + y))) / Float64(x + y)) / 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 / (x + y))) / (x + y)) / (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[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + y), $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}{x + y}}{x + y}}{x + \left(y + 1\right)}
Alternatives Alternative 1 Error 24.9 Cost 1229
\[\begin{array}{l}
\mathbf{if}\;y \leq 5.5 \cdot 10^{-130}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + \left(y + 1\right)}\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{-86} \lor \neg \left(y \leq 5.8 \cdot 10^{-55}\right):\\
\;\;\;\;\frac{\frac{x}{x + y}}{\left(y + 1\right) + x \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{\frac{1}{x}}{x + 1}\\
\end{array}
\]
Alternative 2 Error 30.0 Cost 1108
\[\begin{array}{l}
t_0 := \frac{\frac{y}{x}}{x}\\
\mathbf{if}\;y \leq -1.4 \cdot 10^{-126}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-182}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{-85}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-55}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{+166}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{y}\\
\end{array}
\]
Alternative 3 Error 25.0 Cost 1101
\[\begin{array}{l}
t_0 := x + \left(y + 1\right)\\
\mathbf{if}\;y \leq 3.1 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{y}{x}}{t_0}\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-86} \lor \neg \left(y \leq 7 \cdot 10^{-55}\right):\\
\;\;\;\;\frac{\frac{x}{x + y}}{t_0}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{\frac{1}{x}}{x + 1}\\
\end{array}
\]
Alternative 4 Error 12.4 Cost 1092
\[\begin{array}{l}
t_0 := \frac{x}{x + y}\\
\mathbf{if}\;y \leq 10^{-14}:\\
\;\;\;\;\frac{\frac{y}{x + y} \cdot t_0}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_0}{\left(y + 1\right) + x \cdot 2}\\
\end{array}
\]
Alternative 5 Error 12.4 Cost 1092
\[\begin{array}{l}
\mathbf{if}\;y \leq 10^{-14}:\\
\;\;\;\;\frac{\frac{x \cdot \frac{y}{x + y}}{x + y}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{x + y}}{\left(y + 1\right) + x \cdot 2}\\
\end{array}
\]
Alternative 6 Error 0.1 Cost 1088
\[\frac{x}{x + y} \cdot \frac{\frac{y}{x + y}}{y + \left(x + 1\right)}
\]
Alternative 7 Error 0.1 Cost 1088
\[\frac{\frac{y}{x + y} \cdot \frac{x}{x + y}}{x + \left(y + 1\right)}
\]
Alternative 8 Error 31.1 Cost 980
\[\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{-127}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-182}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{-84}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-55}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot y}\\
\end{array}
\]
Alternative 9 Error 30.7 Cost 980
\[\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;y \leq -9 \cdot 10^{-127}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-182}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-83}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-57}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
\]
Alternative 10 Error 30.3 Cost 980
\[\begin{array}{l}
t_0 := \frac{\frac{y}{x}}{x}\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{-127}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-182}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-85}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-61}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y}\\
\end{array}
\]
Alternative 11 Error 30.0 Cost 976
\[\begin{array}{l}
t_0 := \frac{\frac{y}{x}}{x}\\
\mathbf{if}\;y \leq -9 \cdot 10^{-127}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-182}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-85}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-59}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\]
Alternative 12 Error 25.3 Cost 973
\[\begin{array}{l}
\mathbf{if}\;y \leq 3.2 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-85} \lor \neg \left(y \leq 6.8 \cdot 10^{-55}\right):\\
\;\;\;\;\frac{\frac{x}{x + y}}{y + 1}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{\frac{1}{x}}{x + 1}\\
\end{array}
\]
Alternative 13 Error 25.2 Cost 973
\[\begin{array}{l}
\mathbf{if}\;y \leq 3.2 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + \left(y + 1\right)}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-86} \lor \neg \left(y \leq 6 \cdot 10^{-57}\right):\\
\;\;\;\;\frac{\frac{x}{x + y}}{y + 1}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{\frac{1}{x}}{x + 1}\\
\end{array}
\]
Alternative 14 Error 25.4 Cost 972
\[\begin{array}{l}
\mathbf{if}\;y \leq 1.15 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{-86}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \frac{\frac{1}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\]
Alternative 15 Error 25.4 Cost 972
\[\begin{array}{l}
\mathbf{if}\;y \leq 2.8 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-84}:\\
\;\;\;\;\frac{x}{y + y \cdot \left(x + y\right)}\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-57}:\\
\;\;\;\;y \cdot \frac{\frac{1}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\]
Alternative 16 Error 25.3 Cost 972
\[\begin{array}{l}
\mathbf{if}\;y \leq 3.2 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-84}:\\
\;\;\;\;\frac{x}{y + y \cdot \left(x + y\right)}\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \frac{\frac{1}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{x + \left(y + 1\right)}\\
\end{array}
\]
Alternative 17 Error 25.4 Cost 844
\[\begin{array}{l}
t_0 := \frac{\frac{y}{x}}{x + 1}\\
\mathbf{if}\;y \leq 3.2 \cdot 10^{-128}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{-86}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-56}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\]
Alternative 18 Error 36.4 Cost 584
\[\begin{array}{l}
\mathbf{if}\;y \leq 2 \cdot 10^{-182}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot y}\\
\end{array}
\]
Alternative 19 Error 43.3 Cost 324
\[\begin{array}{l}
\mathbf{if}\;y \leq 1.9 \cdot 10^{-182}:\\
\;\;\;\;\frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\]
Alternative 20 Error 61.3 Cost 192
\[\frac{1}{x}
\]
Alternative 21 Error 61.3 Cost 192
\[\frac{1}{y}
\]
Alternative 22 Error 47.3 Cost 192
\[\frac{x}{y}
\]