\[\left(1 \leq b \land b \leq 1\right) \land \left(1 \leq ac \land ac \leq 1\right)\]
\[\begin{array}{l}
\\
\left(-b\right) + \sqrt{{b}^{2} - 4 \cdot ac}
\end{array}
\]
(FPCore (b ac) :precision binary64 (+ (- b) (sqrt (- (pow b 2.0) (* 4.0 ac)))))
double code(double b, double ac) {
return -b + sqrt((pow(b, 2.0) - (4.0 * ac)));
}
real(8) function code(b, ac)
real(8), intent (in) :: b
real(8), intent (in) :: ac
code = -b + sqrt(((b ** 2.0d0) - (4.0d0 * ac)))
end function
public static double code(double b, double ac) {
return -b + Math.sqrt((Math.pow(b, 2.0) - (4.0 * ac)));
}
def code(b, ac):
return -b + math.sqrt((math.pow(b, 2.0) - (4.0 * ac)))
function code(b, ac)
return Float64(Float64(-b) + sqrt(Float64((b ^ 2.0) - Float64(4.0 * ac))))
end
function tmp = code(b, ac)
tmp = -b + sqrt(((b ^ 2.0) - (4.0 * ac)));
end
code[b_, ac_] := N[((-b) + N[Sqrt[N[(N[Power[b, 2.0], $MachinePrecision] - N[(4.0 * ac), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-b\right) + \sqrt{{b}^{2} - 4 \cdot ac}
\end{array}