\[\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 |
|---|
| Accuracy | 57.5% |
|---|
| Cost | 8304 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot -3\\
t_1 := \sqrt{x} \cdot \left(y \cdot 3\right)\\
t_2 := \sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{+120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{+74}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -7500000000:\\
\;\;\;\;y \cdot \left(\sqrt{x} \cdot 3\right)\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-65}:\\
\;\;\;\;3 \cdot \sqrt{\frac{0.012345679012345678}{x}}\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{-163}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{-285}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.26 \cdot 10^{-233}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-122}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{-90}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{-54}:\\
\;\;\;\;\frac{0.3333333333333333}{\sqrt{x}}\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-20}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+31}:\\
\;\;\;\;\frac{\sqrt{x}}{x \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 64.7% |
|---|
| Cost | 7513 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{\frac{0.1111111111111111}{x}}\\
t_1 := 3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{if}\;x \leq 3.9 \cdot 10^{-53}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-14}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+58} \lor \neg \left(x \leq 8 \cdot 10^{+105}\right) \land x \leq 3.4 \cdot 10^{+161}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\end{array}
\]
| Alternative 3 |
|---|
| Accuracy | 64.5% |
|---|
| Cost | 7513 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{if}\;x \leq 2 \cdot 10^{-53}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 5.9 \cdot 10^{-30}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-16}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.95 \cdot 10^{+46} \lor \neg \left(x \leq 7.2 \cdot 10^{+105}\right) \land x \leq 3.8 \cdot 10^{+161}:\\
\;\;\;\;\sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\end{array}
\]
| Alternative 4 |
|---|
| Accuracy | 83.8% |
|---|
| Cost | 7376 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot \left(y \cdot 3\right)\\
t_1 := \sqrt{x} \cdot \left(\frac{0.3333333333333333}{x} + -3\right)\\
\mathbf{if}\;y \leq -3 \cdot 10^{+120}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -3.7 \cdot 10^{+69}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -7200000000:\\
\;\;\;\;y \cdot \left(\sqrt{x} \cdot 3\right)\\
\mathbf{elif}\;y \leq 3.35 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 84.8% |
|---|
| Cost | 7372 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 3.3 \cdot 10^{-53}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-30}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;x \leq 6.1:\\
\;\;\;\;\left(\frac{0.1111111111111111}{x} + -1\right) \cdot \left(\sqrt{x} \cdot 3\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot \left(y + -1\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Accuracy | 84.8% |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 3.4 \cdot 10^{-53}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-30}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;x \leq 19:\\
\;\;\;\;\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 |
|---|
| Accuracy | 85.1% |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 3.9 \cdot 10^{-53}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-30}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;x \leq 1.18 \cdot 10^{-11}:\\
\;\;\;\;\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 |
|---|
| Accuracy | 99.4% |
|---|
| Cost | 7104 |
|---|
\[3 \cdot \left(\sqrt{x} \cdot \left(y + \left(\frac{0.1111111111111111}{x} + -1\right)\right)\right)
\]
| Alternative 9 |
|---|
| Accuracy | 99.4% |
|---|
| Cost | 7104 |
|---|
\[\sqrt{x} \cdot \left(\frac{0.3333333333333333}{x} + \left(y \cdot 3 + -3\right)\right)
\]
| Alternative 10 |
|---|
| Accuracy | 99.4% |
|---|
| Cost | 7104 |
|---|
\[\sqrt{x \cdot 9} \cdot \left(\left(y + \frac{0.1111111111111111}{x}\right) + -1\right)
\]
| Alternative 11 |
|---|
| Accuracy | 64.9% |
|---|
| 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 |
|---|
| Accuracy | 3.3% |
|---|
| Cost | 6592 |
|---|
\[\sqrt{x \cdot 9}
\]
| Alternative 13 |
|---|
| Accuracy | 40.2% |
|---|
| Cost | 6592 |
|---|
\[\sqrt{\frac{0.1111111111111111}{x}}
\]