\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}
\]
↓
\[\begin{array}{l}
t_0 := \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\\
\mathbf{if}\;b_2 \leq -1.4 \cdot 10^{+114}:\\
\;\;\;\;\frac{b_2 \cdot -2}{a}\\
\mathbf{elif}\;b_2 \leq -1 \cdot 10^{-148}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;b_2 \leq -3.7 \cdot 10^{-227}:\\
\;\;\;\;\frac{\mathsf{hypot}\left(b_2, \sqrt{-a} \cdot \sqrt{c}\right) - b_2}{a}\\
\mathbf{elif}\;b_2 \leq 4 \cdot 10^{-97}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;-0.5 \cdot \frac{c}{b_2}\\
\end{array}
\]
(FPCore (a b_2 c)
:precision binary64
(/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))
↓
(FPCore (a b_2 c)
:precision binary64
(let* ((t_0 (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a)))
(if (<= b_2 -1.4e+114)
(/ (* b_2 -2.0) a)
(if (<= b_2 -1e-148)
t_0
(if (<= b_2 -3.7e-227)
(/ (- (hypot b_2 (* (sqrt (- a)) (sqrt c))) b_2) a)
(if (<= b_2 4e-97) t_0 (* -0.5 (/ c b_2))))))))double code(double a, double b_2, double c) {
return (-b_2 + sqrt(((b_2 * b_2) - (a * c)))) / a;
}
↓
double code(double a, double b_2, double c) {
double t_0 = (sqrt(((b_2 * b_2) - (a * c))) - b_2) / a;
double tmp;
if (b_2 <= -1.4e+114) {
tmp = (b_2 * -2.0) / a;
} else if (b_2 <= -1e-148) {
tmp = t_0;
} else if (b_2 <= -3.7e-227) {
tmp = (hypot(b_2, (sqrt(-a) * sqrt(c))) - b_2) / a;
} else if (b_2 <= 4e-97) {
tmp = t_0;
} else {
tmp = -0.5 * (c / b_2);
}
return tmp;
}
public static double code(double a, double b_2, double c) {
return (-b_2 + Math.sqrt(((b_2 * b_2) - (a * c)))) / a;
}
↓
public static double code(double a, double b_2, double c) {
double t_0 = (Math.sqrt(((b_2 * b_2) - (a * c))) - b_2) / a;
double tmp;
if (b_2 <= -1.4e+114) {
tmp = (b_2 * -2.0) / a;
} else if (b_2 <= -1e-148) {
tmp = t_0;
} else if (b_2 <= -3.7e-227) {
tmp = (Math.hypot(b_2, (Math.sqrt(-a) * Math.sqrt(c))) - b_2) / a;
} else if (b_2 <= 4e-97) {
tmp = t_0;
} else {
tmp = -0.5 * (c / b_2);
}
return tmp;
}
def code(a, b_2, c):
return (-b_2 + math.sqrt(((b_2 * b_2) - (a * c)))) / a
↓
def code(a, b_2, c):
t_0 = (math.sqrt(((b_2 * b_2) - (a * c))) - b_2) / a
tmp = 0
if b_2 <= -1.4e+114:
tmp = (b_2 * -2.0) / a
elif b_2 <= -1e-148:
tmp = t_0
elif b_2 <= -3.7e-227:
tmp = (math.hypot(b_2, (math.sqrt(-a) * math.sqrt(c))) - b_2) / a
elif b_2 <= 4e-97:
tmp = t_0
else:
tmp = -0.5 * (c / b_2)
return tmp
function code(a, b_2, c)
return Float64(Float64(Float64(-b_2) + sqrt(Float64(Float64(b_2 * b_2) - Float64(a * c)))) / a)
end
↓
function code(a, b_2, c)
t_0 = Float64(Float64(sqrt(Float64(Float64(b_2 * b_2) - Float64(a * c))) - b_2) / a)
tmp = 0.0
if (b_2 <= -1.4e+114)
tmp = Float64(Float64(b_2 * -2.0) / a);
elseif (b_2 <= -1e-148)
tmp = t_0;
elseif (b_2 <= -3.7e-227)
tmp = Float64(Float64(hypot(b_2, Float64(sqrt(Float64(-a)) * sqrt(c))) - b_2) / a);
elseif (b_2 <= 4e-97)
tmp = t_0;
else
tmp = Float64(-0.5 * Float64(c / b_2));
end
return tmp
end
function tmp = code(a, b_2, c)
tmp = (-b_2 + sqrt(((b_2 * b_2) - (a * c)))) / a;
end
↓
function tmp_2 = code(a, b_2, c)
t_0 = (sqrt(((b_2 * b_2) - (a * c))) - b_2) / a;
tmp = 0.0;
if (b_2 <= -1.4e+114)
tmp = (b_2 * -2.0) / a;
elseif (b_2 <= -1e-148)
tmp = t_0;
elseif (b_2 <= -3.7e-227)
tmp = (hypot(b_2, (sqrt(-a) * sqrt(c))) - b_2) / a;
elseif (b_2 <= 4e-97)
tmp = t_0;
else
tmp = -0.5 * (c / b_2);
end
tmp_2 = tmp;
end
code[a_, b$95$2_, c_] := N[(N[((-b$95$2) + N[Sqrt[N[(N[(b$95$2 * b$95$2), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]
↓
code[a_, b$95$2_, c_] := Block[{t$95$0 = N[(N[(N[Sqrt[N[(N[(b$95$2 * b$95$2), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b$95$2), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[b$95$2, -1.4e+114], N[(N[(b$95$2 * -2.0), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b$95$2, -1e-148], t$95$0, If[LessEqual[b$95$2, -3.7e-227], N[(N[(N[Sqrt[b$95$2 ^ 2 + N[(N[Sqrt[(-a)], $MachinePrecision] * N[Sqrt[c], $MachinePrecision]), $MachinePrecision] ^ 2], $MachinePrecision] - b$95$2), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b$95$2, 4e-97], t$95$0, N[(-0.5 * N[(c / b$95$2), $MachinePrecision]), $MachinePrecision]]]]]]
\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}
↓
\begin{array}{l}
t_0 := \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\\
\mathbf{if}\;b_2 \leq -1.4 \cdot 10^{+114}:\\
\;\;\;\;\frac{b_2 \cdot -2}{a}\\
\mathbf{elif}\;b_2 \leq -1 \cdot 10^{-148}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;b_2 \leq -3.7 \cdot 10^{-227}:\\
\;\;\;\;\frac{\mathsf{hypot}\left(b_2, \sqrt{-a} \cdot \sqrt{c}\right) - b_2}{a}\\
\mathbf{elif}\;b_2 \leq 4 \cdot 10^{-97}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;-0.5 \cdot \frac{c}{b_2}\\
\end{array}