\[\left(3 \cdot \sqrt{x}\right) \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) - 1\right)
\]
↓
\[\left(3 \cdot \sqrt{x}\right) \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) - 1\right)
\]
(FPCore (x y)
:precision binary64
(* (* 3.0 (sqrt x)) (- (+ y (/ 1.0 (* x 9.0))) 1.0)))
↓
(FPCore (x y)
:precision binary64
(* (* 3.0 (sqrt x)) (- (+ y (/ 1.0 (* x 9.0))) 1.0)))
double code(double x, double y) {
return (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
↓
double code(double x, double y) {
return (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (3.0d0 * sqrt(x)) * ((y + (1.0d0 / (x * 9.0d0))) - 1.0d0)
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (3.0d0 * sqrt(x)) * ((y + (1.0d0 / (x * 9.0d0))) - 1.0d0)
end function
public static double code(double x, double y) {
return (3.0 * Math.sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
↓
public static double code(double x, double y) {
return (3.0 * Math.sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
def code(x, y):
return (3.0 * math.sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0)
↓
def code(x, y):
return (3.0 * math.sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0)
function code(x, y)
return Float64(Float64(3.0 * sqrt(x)) * Float64(Float64(y + Float64(1.0 / Float64(x * 9.0))) - 1.0))
end
↓
function code(x, y)
return Float64(Float64(3.0 * sqrt(x)) * Float64(Float64(y + Float64(1.0 / Float64(x * 9.0))) - 1.0))
end
function tmp = code(x, y)
tmp = (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
end
↓
function tmp = code(x, y)
tmp = (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
end
code[x_, y_] := N[(N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * N[(N[(y + N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := N[(N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * N[(N[(y + N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision]), $MachinePrecision]
\left(3 \cdot \sqrt{x}\right) \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) - 1\right)
↓
\left(3 \cdot \sqrt{x}\right) \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) - 1\right)
Alternatives
| Alternative 1 |
|---|
| Error | 9.7 |
|---|
| Cost | 7240 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq -2.75 \cdot 10^{+45}:\\
\;\;\;\;y \cdot \left(3 \cdot \sqrt{x}\right)\\
\mathbf{elif}\;y \leq 0.0042:\\
\;\;\;\;\sqrt{x} \cdot \left(\frac{2}{x} \cdot 0.16666666666666666 + -3\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot \left(3 \cdot \left(y - 1\right)\right)\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 0.4 |
|---|
| Cost | 7232 |
|---|
\[3 \cdot \left(\sqrt{x} \cdot \left(\frac{3.8103947568968146 \cdot 10^{-5}}{x} \cdot 2916 + \left(y + -1\right)\right)\right)
\]
| Alternative 3 |
|---|
| Error | 0.4 |
|---|
| Cost | 7104 |
|---|
\[3 \cdot \left(\sqrt{x} \cdot \left(\frac{0.1111111111111111}{x} + \left(y + -1\right)\right)\right)
\]
| Alternative 4 |
|---|
| Error | 9.1 |
|---|
| Cost | 6980 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1.75 \cdot 10^{-12}:\\
\;\;\;\;\frac{\frac{\sqrt{x}}{3}}{x}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot \left(3 \cdot \left(y - 1\right)\right)\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 25.4 |
|---|
| Cost | 6852 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1.25 \cdot 10^{-11}:\\
\;\;\;\;\sqrt{x} \cdot \frac{0.3333333333333333}{x}\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(\sqrt{x} \cdot y\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 25.4 |
|---|
| Cost | 6852 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 3.3 \cdot 10^{-12}:\\
\;\;\;\;\frac{\sqrt{x}}{x \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(\sqrt{x} \cdot y\right)\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 25.3 |
|---|
| Cost | 6852 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 3.4 \cdot 10^{-12}:\\
\;\;\;\;\frac{\frac{\sqrt{x}}{3}}{x}\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(\sqrt{x} \cdot y\right)\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 42.2 |
|---|
| Cost | 6720 |
|---|
\[3 \cdot \left(\sqrt{x} \cdot y\right)
\]