\[\frac{6 \cdot \left(x - 1\right)}{\left(x + 1\right) + 4 \cdot \sqrt{x}}
\]
↓
\[\begin{array}{l}
t_0 := \frac{6 \cdot x + -6}{1 + \left(x + 4 \cdot \sqrt{x}\right)}\\
t_0 \cdot \left(t_0 \cdot \frac{1}{t_0}\right)
\end{array}
\]
(FPCore (x)
:precision binary64
(/ (* 6.0 (- x 1.0)) (+ (+ x 1.0) (* 4.0 (sqrt x)))))
↓
(FPCore (x)
:precision binary64
(let* ((t_0 (/ (+ (* 6.0 x) -6.0) (+ 1.0 (+ x (* 4.0 (sqrt x)))))))
(* t_0 (* t_0 (/ 1.0 t_0)))))
double code(double x) {
return (6.0 * (x - 1.0)) / ((x + 1.0) + (4.0 * sqrt(x)));
}
↓
double code(double x) {
double t_0 = ((6.0 * x) + -6.0) / (1.0 + (x + (4.0 * sqrt(x))));
return t_0 * (t_0 * (1.0 / t_0));
}
real(8) function code(x)
real(8), intent (in) :: x
code = (6.0d0 * (x - 1.0d0)) / ((x + 1.0d0) + (4.0d0 * sqrt(x)))
end function
↓
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
t_0 = ((6.0d0 * x) + (-6.0d0)) / (1.0d0 + (x + (4.0d0 * sqrt(x))))
code = t_0 * (t_0 * (1.0d0 / t_0))
end function
public static double code(double x) {
return (6.0 * (x - 1.0)) / ((x + 1.0) + (4.0 * Math.sqrt(x)));
}
↓
public static double code(double x) {
double t_0 = ((6.0 * x) + -6.0) / (1.0 + (x + (4.0 * Math.sqrt(x))));
return t_0 * (t_0 * (1.0 / t_0));
}
def code(x):
return (6.0 * (x - 1.0)) / ((x + 1.0) + (4.0 * math.sqrt(x)))
↓
def code(x):
t_0 = ((6.0 * x) + -6.0) / (1.0 + (x + (4.0 * math.sqrt(x))))
return t_0 * (t_0 * (1.0 / t_0))
function code(x)
return Float64(Float64(6.0 * Float64(x - 1.0)) / Float64(Float64(x + 1.0) + Float64(4.0 * sqrt(x))))
end
↓
function code(x)
t_0 = Float64(Float64(Float64(6.0 * x) + -6.0) / Float64(1.0 + Float64(x + Float64(4.0 * sqrt(x)))))
return Float64(t_0 * Float64(t_0 * Float64(1.0 / t_0)))
end
function tmp = code(x)
tmp = (6.0 * (x - 1.0)) / ((x + 1.0) + (4.0 * sqrt(x)));
end
↓
function tmp = code(x)
t_0 = ((6.0 * x) + -6.0) / (1.0 + (x + (4.0 * sqrt(x))));
tmp = t_0 * (t_0 * (1.0 / t_0));
end
code[x_] := N[(N[(6.0 * N[(x - 1.0), $MachinePrecision]), $MachinePrecision] / N[(N[(x + 1.0), $MachinePrecision] + N[(4.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_] := Block[{t$95$0 = N[(N[(N[(6.0 * x), $MachinePrecision] + -6.0), $MachinePrecision] / N[(1.0 + N[(x + N[(4.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$0 * N[(t$95$0 * N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\frac{6 \cdot \left(x - 1\right)}{\left(x + 1\right) + 4 \cdot \sqrt{x}}
↓
\begin{array}{l}
t_0 := \frac{6 \cdot x + -6}{1 + \left(x + 4 \cdot \sqrt{x}\right)}\\
t_0 \cdot \left(t_0 \cdot \frac{1}{t_0}\right)
\end{array}
Alternatives
| Alternative 1 |
|---|
| Error | 2.5 |
|---|
| Cost | 7236 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 0.38:\\
\;\;\;\;18 \cdot x - 6\\
\mathbf{else}:\\
\;\;\;\;\frac{6 \cdot x}{\left(x + 1\right) + 4 \cdot \sqrt{x}}\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 0.2 |
|---|
| Cost | 7232 |
|---|
\[\frac{6 \cdot \left(x - 1\right)}{\left(x + 1\right) + 4 \cdot \sqrt{x}}
\]
| Alternative 3 |
|---|
| Error | 3.0 |
|---|
| Cost | 580 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 3:\\
\;\;\;\;18 \cdot x - 6\\
\mathbf{else}:\\
\;\;\;\;6 - \frac{1}{x} \cdot 18\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 3.2 |
|---|
| Cost | 576 |
|---|
\[\frac{6 \cdot x + -6}{1 + x}
\]
| Alternative 5 |
|---|
| Error | 3.0 |
|---|
| Cost | 452 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1:\\
\;\;\;\;-6\\
\mathbf{else}:\\
\;\;\;\;6 - \frac{12}{x}\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 3.0 |
|---|
| Cost | 452 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 2:\\
\;\;\;\;12 \cdot x - 6\\
\mathbf{else}:\\
\;\;\;\;6 - \frac{12}{x}\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 3.0 |
|---|
| Cost | 452 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 2:\\
\;\;\;\;18 \cdot x - 6\\
\mathbf{else}:\\
\;\;\;\;6 - \frac{12}{x}\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 3.0 |
|---|
| Cost | 196 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1:\\
\;\;\;\;-6\\
\mathbf{else}:\\
\;\;\;\;6\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 32.5 |
|---|
| Cost | 64 |
|---|
\[-6
\]