\[\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 | 24.1 |
|---|
| Cost | 7512 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot \frac{0.3333333333333333}{x}\\
t_1 := \sqrt{x} \cdot -3\\
t_2 := \sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{if}\;x \leq 1.5964741002599232 \cdot 10^{-135}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 3.467270725243057 \cdot 10^{-75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.6656171781283214 \cdot 10^{-39}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 6109095404630602000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 6.95828594303381 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.6895081002725544 \cdot 10^{+61}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 24.1 |
|---|
| Cost | 7512 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot \frac{0.3333333333333333}{x}\\
t_1 := \sqrt{x} \cdot -3\\
t_2 := \sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{if}\;x \leq 1.5964741002599232 \cdot 10^{-135}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 3.467270725243057 \cdot 10^{-75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.6656171781283214 \cdot 10^{-39}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 6109095404630602000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 6.95828594303381 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.6895081002725544 \cdot 10^{+61}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 24.0 |
|---|
| Cost | 7512 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot \frac{0.3333333333333333}{x}\\
t_1 := \sqrt{x} \cdot -3\\
t_2 := 3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{if}\;x \leq 1.5964741002599232 \cdot 10^{-135}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 3.467270725243057 \cdot 10^{-75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.8328195539711506 \cdot 10^{-26}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 6109095404630602000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 6.95828594303381 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.6895081002725544 \cdot 10^{+61}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 11.3 |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot \frac{0.3333333333333333}{x}\\
\mathbf{if}\;x \leq 1.5964741002599232 \cdot 10^{-135}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 3.467270725243057 \cdot 10^{-75}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;x \leq 1.8328195539711506 \cdot 10^{-26}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot \left(y + -1\right)\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 11.3 |
|---|
| Cost | 7244 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x \cdot 9}\\
\mathbf{if}\;x \leq 1.5964741002599232 \cdot 10^{-135}:\\
\;\;\;\;\sqrt{x} \cdot \frac{0.3333333333333333}{x}\\
\mathbf{elif}\;x \leq 3.467270725243057 \cdot 10^{-75}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;x \leq 1.8328195539711506 \cdot 10^{-26}:\\
\;\;\;\;t_0 \cdot \frac{0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(y + -1\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 10.5 |
|---|
| Cost | 7240 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq -5.488411699963756 \cdot 10^{+97}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;y \leq 3.509659547819947 \cdot 10^{+34}:\\
\;\;\;\;\sqrt{x} \cdot \left(-3 + \frac{-1}{x \cdot -3}\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot y\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 10.8 |
|---|
| Cost | 7240 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x \cdot 9}\\
\mathbf{if}\;y \leq -5.488411699963756 \cdot 10^{+97}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;y \leq 1.5271143340416005 \cdot 10^{-23}:\\
\;\;\;\;t_0 \cdot \left(\frac{0.1111111111111111}{x} + -1\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(y + -1\right)\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 10.5 |
|---|
| Cost | 7112 |
|---|
\[\begin{array}{l}
\mathbf{if}\;y \leq -5.488411699963756 \cdot 10^{+97}:\\
\;\;\;\;3 \cdot \left(y \cdot \sqrt{x}\right)\\
\mathbf{elif}\;y \leq 3.509659547819947 \cdot 10^{+34}:\\
\;\;\;\;\sqrt{x} \cdot \left(-3 + \frac{0.3333333333333333}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot y\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 0.4 |
|---|
| Cost | 7104 |
|---|
\[\sqrt{x \cdot 9} \cdot \left(\frac{0.1111111111111111}{x} + \left(y + -1\right)\right)
\]
| Alternative 10 |
|---|
| Error | 27.9 |
|---|
| Cost | 6984 |
|---|
\[\begin{array}{l}
t_0 := \sqrt{x} \cdot \left(y \cdot 3\right)\\
\mathbf{if}\;y \leq -5.547054180161296 \cdot 10^{-38}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 3.349385874425026 \cdot 10^{-5}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 61.9 |
|---|
| Cost | 6592 |
|---|
\[3 \cdot \sqrt{x}
\]
| Alternative 12 |
|---|
| Error | 47.4 |
|---|
| Cost | 6592 |
|---|
\[\sqrt{x} \cdot -3
\]