\[\left(0 \leq x \land x \leq 0.1\right) \land \left(0.1 \leq s \land s \leq 1\right)\]
\[\begin{array}{l}
\\
\sqrt{x - \frac{{\left(1 - s\right)}^{2}}{4}}
\end{array}
\]
(FPCore (x s) :precision binary64 (sqrt (- x (/ (pow (- 1.0 s) 2.0) 4.0))))
double code(double x, double s) {
return sqrt((x - (pow((1.0 - s), 2.0) / 4.0)));
}
real(8) function code(x, s)
real(8), intent (in) :: x
real(8), intent (in) :: s
code = sqrt((x - (((1.0d0 - s) ** 2.0d0) / 4.0d0)))
end function
public static double code(double x, double s) {
return Math.sqrt((x - (Math.pow((1.0 - s), 2.0) / 4.0)));
}
def code(x, s):
return math.sqrt((x - (math.pow((1.0 - s), 2.0) / 4.0)))
function code(x, s)
return sqrt(Float64(x - Float64((Float64(1.0 - s) ^ 2.0) / 4.0)))
end
function tmp = code(x, s)
tmp = sqrt((x - (((1.0 - s) ^ 2.0) / 4.0)));
end
code[x_, s_] := N[Sqrt[N[(x - N[(N[Power[N[(1.0 - s), $MachinePrecision], 2.0], $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{x - \frac{{\left(1 - s\right)}^{2}}{4}}
\end{array}