\[0.999 \leq x \land x \leq 1.001\]
\[\frac{10}{1 - x \cdot x}
\]
↓
\[\begin{array}{l}
t_0 := \left(x \cdot x\right) \cdot \left(x \cdot x\right)\\
\frac{10}{\begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{\begin{array}{l}
\mathbf{if}\;-1 - t_0 \ne 0:\\
\;\;\;\;\frac{1 + \left(-{x}^{8}\right)}{1 + t_0}\\
\mathbf{else}:\\
\;\;\;\;1 - t_0\\
\end{array}}{x \cdot x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}}
\end{array}
\]
(FPCore (x) :precision binary64 (/ 10.0 (- 1.0 (* x x))))
↓
(FPCore (x)
:precision binary64
(let* ((t_0 (* (* x x) (* x x))))
(/
10.0
(if (!= (- -1.0 (* x x)) 0.0)
(/
(if (!= (- -1.0 t_0) 0.0)
(/ (+ 1.0 (- (pow x 8.0))) (+ 1.0 t_0))
(- 1.0 t_0))
(+ (* x x) 1.0))
(- 1.0 (* x x))))))double code(double x) {
return 10.0 / (1.0 - (x * x));
}
↓
double code(double x) {
double t_0 = (x * x) * (x * x);
double tmp_1;
if ((-1.0 - (x * x)) != 0.0) {
double tmp_2;
if ((-1.0 - t_0) != 0.0) {
tmp_2 = (1.0 + -pow(x, 8.0)) / (1.0 + t_0);
} else {
tmp_2 = 1.0 - t_0;
}
tmp_1 = tmp_2 / ((x * x) + 1.0);
} else {
tmp_1 = 1.0 - (x * x);
}
return 10.0 / tmp_1;
}
real(8) function code(x)
real(8), intent (in) :: x
code = 10.0d0 / (1.0d0 - (x * x))
end function
↓
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
real(8) :: tmp_1
real(8) :: tmp_2
t_0 = (x * x) * (x * x)
if (((-1.0d0) - (x * x)) /= 0.0d0) then
if (((-1.0d0) - t_0) /= 0.0d0) then
tmp_2 = (1.0d0 + -(x ** 8.0d0)) / (1.0d0 + t_0)
else
tmp_2 = 1.0d0 - t_0
end if
tmp_1 = tmp_2 / ((x * x) + 1.0d0)
else
tmp_1 = 1.0d0 - (x * x)
end if
code = 10.0d0 / tmp_1
end function
public static double code(double x) {
return 10.0 / (1.0 - (x * x));
}
↓
public static double code(double x) {
double t_0 = (x * x) * (x * x);
double tmp_1;
if ((-1.0 - (x * x)) != 0.0) {
double tmp_2;
if ((-1.0 - t_0) != 0.0) {
tmp_2 = (1.0 + -Math.pow(x, 8.0)) / (1.0 + t_0);
} else {
tmp_2 = 1.0 - t_0;
}
tmp_1 = tmp_2 / ((x * x) + 1.0);
} else {
tmp_1 = 1.0 - (x * x);
}
return 10.0 / tmp_1;
}
def code(x):
return 10.0 / (1.0 - (x * x))
↓
def code(x):
t_0 = (x * x) * (x * x)
tmp_1 = 0
if (-1.0 - (x * x)) != 0.0:
tmp_2 = 0
if (-1.0 - t_0) != 0.0:
tmp_2 = (1.0 + -math.pow(x, 8.0)) / (1.0 + t_0)
else:
tmp_2 = 1.0 - t_0
tmp_1 = tmp_2 / ((x * x) + 1.0)
else:
tmp_1 = 1.0 - (x * x)
return 10.0 / tmp_1
function code(x)
return Float64(10.0 / Float64(1.0 - Float64(x * x)))
end
↓
function code(x)
t_0 = Float64(Float64(x * x) * Float64(x * x))
tmp_1 = 0.0
if (Float64(-1.0 - Float64(x * x)) != 0.0)
tmp_2 = 0.0
if (Float64(-1.0 - t_0) != 0.0)
tmp_2 = Float64(Float64(1.0 + Float64(-(x ^ 8.0))) / Float64(1.0 + t_0));
else
tmp_2 = Float64(1.0 - t_0);
end
tmp_1 = Float64(tmp_2 / Float64(Float64(x * x) + 1.0));
else
tmp_1 = Float64(1.0 - Float64(x * x));
end
return Float64(10.0 / tmp_1)
end
function tmp = code(x)
tmp = 10.0 / (1.0 - (x * x));
end
↓
function tmp_4 = code(x)
t_0 = (x * x) * (x * x);
tmp_2 = 0.0;
if ((-1.0 - (x * x)) ~= 0.0)
tmp_3 = 0.0;
if ((-1.0 - t_0) ~= 0.0)
tmp_3 = (1.0 + -(x ^ 8.0)) / (1.0 + t_0);
else
tmp_3 = 1.0 - t_0;
end
tmp_2 = tmp_3 / ((x * x) + 1.0);
else
tmp_2 = 1.0 - (x * x);
end
tmp_4 = 10.0 / tmp_2;
end
code[x_] := N[(10.0 / N[(1.0 - N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_] := Block[{t$95$0 = N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]}, N[(10.0 / If[Unequal[N[(-1.0 - N[(x * x), $MachinePrecision]), $MachinePrecision], 0.0], N[(If[Unequal[N[(-1.0 - t$95$0), $MachinePrecision], 0.0], N[(N[(1.0 + (-N[Power[x, 8.0], $MachinePrecision])), $MachinePrecision] / N[(1.0 + t$95$0), $MachinePrecision]), $MachinePrecision], N[(1.0 - t$95$0), $MachinePrecision]] / N[(N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(x * x), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\frac{10}{1 - x \cdot x}
↓
\begin{array}{l}
t_0 := \left(x \cdot x\right) \cdot \left(x \cdot x\right)\\
\frac{10}{\begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{\begin{array}{l}
\mathbf{if}\;-1 - t_0 \ne 0:\\
\;\;\;\;\frac{1 + \left(-{x}^{8}\right)}{1 + t_0}\\
\mathbf{else}:\\
\;\;\;\;1 - t_0\\
\end{array}}{x \cdot x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}}
\end{array}
Alternatives
| Alternative 1 |
|---|
| Error | 6.9 |
|---|
| Cost | 8068 |
|---|
\[\frac{10}{\frac{x \cdot \left(x \cdot \begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{1 - {x}^{4}}{1 + x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}\right)}{x \cdot x}}
\]
| Alternative 2 |
|---|
| Error | 6.9 |
|---|
| Cost | 7556 |
|---|
\[\frac{10}{\begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{1 - {x}^{4}}{x \cdot x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}}
\]
| Alternative 3 |
|---|
| Error | 7.0 |
|---|
| Cost | 3784 |
|---|
\[\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot x\right)\right)\\
\frac{10}{\frac{x \cdot \left(x \cdot \begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{\begin{array}{l}
\mathbf{if}\;-1 - t_0 \ne 0:\\
\;\;\;\;\frac{1 - x \cdot \left(x \cdot \left(x \cdot \left(x \cdot t_0\right)\right)\right)}{1 + t_0}\\
\mathbf{else}:\\
\;\;\;\;1 - t_0\\
\end{array}}{1 + x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}\right)}{x \cdot x}}
\end{array}
\]
| Alternative 4 |
|---|
| Error | 7.2 |
|---|
| Cost | 3528 |
|---|
\[\begin{array}{l}
t_0 := \left(x \cdot x\right) \cdot \left(x \cdot x\right)\\
\frac{10}{\begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{\begin{array}{l}
\mathbf{if}\;-1 - t_0 \ne 0:\\
\;\;\;\;\frac{\frac{\left(1 - x \cdot \left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot \left(x \cdot x\right)\right)\right)\right)\right)\right) \cdot 2}{2}}{1 + t_0}\\
\mathbf{else}:\\
\;\;\;\;1 - t_0\\
\end{array}}{x \cdot x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}}
\end{array}
\]
| Alternative 5 |
|---|
| Error | 7.2 |
|---|
| Cost | 3272 |
|---|
\[\begin{array}{l}
t_0 := \left(x \cdot x\right) \cdot \left(x \cdot x\right)\\
\frac{10}{\begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{\begin{array}{l}
\mathbf{if}\;-1 - t_0 \ne 0:\\
\;\;\;\;\frac{1 - x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot x\right)\right)\right)\right)\right)}{1 + t_0}\\
\mathbf{else}:\\
\;\;\;\;1 - t_0\\
\end{array}}{x \cdot x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}}
\end{array}
\]
| Alternative 6 |
|---|
| Error | 7.4 |
|---|
| Cost | 3012 |
|---|
\[\begin{array}{l}
t_0 := x \cdot \left(x \cdot x\right)\\
\frac{10}{\frac{x \cdot \left(x \cdot \begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{\frac{t_0}{x \cdot x} \cdot \frac{x \cdot \left(1 - x \cdot t_0\right)}{x \cdot x}}{1 + x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}\right)}{x \cdot x}}
\end{array}
\]
| Alternative 7 |
|---|
| Error | 7.4 |
|---|
| Cost | 1988 |
|---|
\[\frac{10}{\frac{x \cdot \left(x \cdot \begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{1 - x \cdot \left(x \cdot \left(x \cdot x\right)\right)}{1 + x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}\right)}{x \cdot x}}
\]
| Alternative 8 |
|---|
| Error | 7.4 |
|---|
| Cost | 1476 |
|---|
\[\frac{10}{\begin{array}{l}
\mathbf{if}\;-1 - x \cdot x \ne 0:\\
\;\;\;\;\frac{1 - x \cdot \left(x \cdot \left(x \cdot x\right)\right)}{x \cdot x + 1}\\
\mathbf{else}:\\
\;\;\;\;1 - x \cdot x\\
\end{array}}
\]
| Alternative 9 |
|---|
| Error | 7.9 |
|---|
| Cost | 1088 |
|---|
\[\frac{10}{\frac{\frac{x \cdot \left(1 - x \cdot x\right)}{\frac{1}{x}}}{x \cdot x}}
\]
| Alternative 10 |
|---|
| Error | 7.9 |
|---|
| Cost | 960 |
|---|
\[\frac{10}{\frac{x \cdot \left(x \cdot \left(1 - x \cdot x\right)\right)}{x \cdot x}}
\]
| Alternative 11 |
|---|
| Error | 7.9 |
|---|
| Cost | 448 |
|---|
\[\frac{10}{1 - x \cdot x}
\]
| Alternative 12 |
|---|
| Error | 57.9 |
|---|
| Cost | 64 |
|---|
\[10
\]