\[\left(3 \cdot \sqrt{x}\right) \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) - 1\right)
\]
↓
\[\sqrt{x \cdot 9} \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
(* (sqrt (* x 9.0)) (+ (+ 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 sqrt((x * 9.0)) * ((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 = sqrt((x * 9.0d0)) * ((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 Math.sqrt((x * 9.0)) * ((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 math.sqrt((x * 9.0)) * ((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(sqrt(Float64(x * 9.0)) * 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 = sqrt((x * 9.0)) * ((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[Sqrt[N[(x * 9.0), $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)
↓
\sqrt{x \cdot 9} \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) + -1\right)
Alternatives
| Alternative 1 |
|---|
| Error | 23.3 |
|---|
| Cost | 7514 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 6.2 \cdot 10^{-59}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 14500 \lor \neg \left(x \leq 3.4 \cdot 10^{+56}\right) \land \left(x \leq 8.6 \cdot 10^{+102} \lor \neg \left(x \leq 2.3 \cdot 10^{+135}\right) \land x \leq 4.7 \cdot 10^{+184}\right):\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 23.2 |
|---|
| Cost | 7513 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot -3\\
t_1 := 3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{if}\;x \leq 1.75 \cdot 10^{-58}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 13000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+58}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+103}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot y\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+135} \lor \neg \left(x \leq 4.7 \cdot 10^{+184}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 23.4 |
|---|
| Cost | 7513 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot -3\\
t_1 := \sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{if}\;x \leq 9 \cdot 10^{-59}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 12200:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+57}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+135} \lor \neg \left(x \leq 5 \cdot 10^{+184}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 9.8 |
|---|
| Cost | 7372 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x \cdot 9}\\
\mathbf{if}\;x \leq 7.6 \cdot 10^{-59}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-8}:\\
\;\;\;\;\sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{elif}\;x \leq 3300000000:\\
\;\;\;\;t_0 \cdot \left(\frac{0.1111111111111111}{x} + -1\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(y + -1\right)\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 9.7 |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1.5 \cdot 10^{-58}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-9}:\\
\;\;\;\;\sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{elif}\;x \leq 3300000000:\\
\;\;\;\;\sqrt{x} \cdot \left(\frac{0.3333333333333333}{x} + -3\right)\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(\sqrt{x} \cdot \left(y + -1\right)\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 9.7 |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1.05 \cdot 10^{-58}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-8}:\\
\;\;\;\;\sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{elif}\;x \leq 7200000000:\\
\;\;\;\;\sqrt{x} \cdot \left(\frac{0.3333333333333333}{x} + -3\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot \left(y \cdot 3 + -3\right)\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 9.7 |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 10^{-58}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-8}:\\
\;\;\;\;\sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{elif}\;x \leq 3300000000:\\
\;\;\;\;\sqrt{x} \cdot \left(\frac{0.3333333333333333}{x} + -3\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot \left(y + -1\right)\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 0.4 |
|---|
| Cost | 7104 |
|---|
\[3 \cdot \left(\sqrt{x} \cdot \left(y + \left(\frac{0.1111111111111111}{x} + -1\right)\right)\right)
\]
| Alternative 9 |
|---|
| Error | 0.4 |
|---|
| Cost | 7104 |
|---|
\[\sqrt{x \cdot 9} \cdot \left(\left(y + \frac{0.1111111111111111}{x}\right) + -1\right)
\]
| Alternative 10 |
|---|
| Error | 9.5 |
|---|
| Cost | 6980 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1.75 \cdot 10^{-58}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(\sqrt{x} \cdot \left(y + -1\right)\right)\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 22.5 |
|---|
| Cost | 6724 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 0.11:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\end{array}
\]
| Alternative 12 |
|---|
| Error | 61.9 |
|---|
| Cost | 6592 |
|---|
\[\sqrt{x \cdot 9}
\]
| Alternative 13 |
|---|
| Error | 39.0 |
|---|
| Cost | 6592 |
|---|
\[\sqrt{\frac{0.1111111111111111}{x}}
\]