\[\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 | 10.0 |
|---|
| Cost | 7372 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x \cdot 9} \cdot \left(y + -1\right)\\
\mathbf{if}\;x \leq 5.4143007043084625 \cdot 10^{-121}:\\
\;\;\;\;\left(\sqrt{x} \cdot 3\right) \cdot \left(\frac{0.1111111111111111}{x} + -1\right)\\
\mathbf{elif}\;x \leq 3.8193088842551867 \cdot 10^{-90}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 6.038161880615068 \cdot 10^{-18}:\\
\;\;\;\;\sqrt{x} \cdot \left(-3 + 0.3333333333333333 \cdot \frac{1}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 23.8 |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x \cdot 9}\\
t_1 := t_0 \cdot \frac{0.1111111111111111}{x}\\
\mathbf{if}\;x \leq 5.4143007043084625 \cdot 10^{-121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.8193088842551867 \cdot 10^{-90}:\\
\;\;\;\;y \cdot \left(\sqrt{x} \cdot 3\right)\\
\mathbf{elif}\;x \leq 6.038161880615068 \cdot 10^{-18}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-t_0\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 10.0 |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x \cdot 9}\\
t_1 := t_0 \cdot \left(y + -1\right)\\
\mathbf{if}\;x \leq 5.4143007043084625 \cdot 10^{-121}:\\
\;\;\;\;t_0 \cdot \frac{0.1111111111111111}{x}\\
\mathbf{elif}\;x \leq 3.8193088842551867 \cdot 10^{-90}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.038161880615068 \cdot 10^{-18}:\\
\;\;\;\;\sqrt{x} \cdot \left(-3 + \frac{0.3333333333333333}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 10.0 |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x \cdot 9} \cdot \left(y + -1\right)\\
\mathbf{if}\;x \leq 5.4143007043084625 \cdot 10^{-121}:\\
\;\;\;\;\left(\sqrt{x} \cdot 3\right) \cdot \left(\frac{0.1111111111111111}{x} + -1\right)\\
\mathbf{elif}\;x \leq 3.8193088842551867 \cdot 10^{-90}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 6.038161880615068 \cdot 10^{-18}:\\
\;\;\;\;\sqrt{x} \cdot \left(-3 + \frac{0.3333333333333333}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 9.6 |
|---|
| Cost | 7112 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq -4.952114489931578 \cdot 10^{+77}:\\
\;\;\;\;y \cdot \left(\sqrt{x} \cdot 3\right)\\
\mathbf{elif}\;y \leq 5872452.506638171:\\
\;\;\;\;\sqrt{x} \cdot \left(-3 + \frac{0.3333333333333333}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 0.4 |
|---|
| Cost | 7104 |
|---|
\[\sqrt{x} \cdot \left(-3 - \left(\frac{-0.3333333333333333}{x} + y \cdot -3\right)\right)
\]
| Alternative 7 |
|---|
| Error | 0.4 |
|---|
| Cost | 7104 |
|---|
\[\sqrt{x \cdot 9} \cdot \left(\left(y + \frac{0.1111111111111111}{x}\right) + -1\right)
\]
| Alternative 8 |
|---|
| Error | 26.5 |
|---|
| Cost | 6984 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{if}\;y \leq -9.282580811589514 \cdot 10^{-6}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 5.917875495747886 \cdot 10^{-6}:\\
\;\;\;\;-\sqrt{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 26.5 |
|---|
| Cost | 6984 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq -9.282580811589514 \cdot 10^{-6}:\\
\;\;\;\;y \cdot \left(\sqrt{x} \cdot 3\right)\\
\mathbf{elif}\;y \leq 5.917875495747886 \cdot 10^{-6}:\\
\;\;\;\;-\sqrt{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot \left(y \cdot 3\right)\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 26.5 |
|---|
| Cost | 6984 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq -9.282580811589514 \cdot 10^{-6}:\\
\;\;\;\;y \cdot \left(\sqrt{x} \cdot 3\right)\\
\mathbf{elif}\;y \leq 5.917875495747886 \cdot 10^{-6}:\\
\;\;\;\;-\sqrt{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 46.7 |
|---|
| Cost | 6656 |
|---|
\[-\sqrt{x \cdot 9}
\]
| Alternative 12 |
|---|
| Error | 61.9 |
|---|
| Cost | 6592 |
|---|
\[\sqrt{x} \cdot 3
\]
| Alternative 13 |
|---|
| Error | 46.7 |
|---|
| Cost | 6592 |
|---|
\[\sqrt{x} \cdot -3
\]