ABCF->ab-angle a

Percentage Accurate: 19.1% → 53.8%
Time: 38.6s
Alternatives: 29
Speedup: 3.0×

Specification

?
\[\begin{array}{l} \\ \begin{array}{l} t_0 := {B}^{2} - \left(4 \cdot A\right) \cdot C\\ \frac{-\sqrt{\left(2 \cdot \left(t_0 \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{t_0} \end{array} \end{array} \]
(FPCore (A B C F)
 :precision binary64
 (let* ((t_0 (- (pow B 2.0) (* (* 4.0 A) C))))
   (/
    (-
     (sqrt
      (*
       (* 2.0 (* t_0 F))
       (+ (+ A C) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0)))))))
    t_0)))
double code(double A, double B, double C, double F) {
	double t_0 = pow(B, 2.0) - ((4.0 * A) * C);
	return -sqrt(((2.0 * (t_0 * F)) * ((A + C) + sqrt((pow((A - C), 2.0) + pow(B, 2.0)))))) / t_0;
}
real(8) function code(a, b, c, f)
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: f
    real(8) :: t_0
    t_0 = (b ** 2.0d0) - ((4.0d0 * a) * c)
    code = -sqrt(((2.0d0 * (t_0 * f)) * ((a + c) + sqrt((((a - c) ** 2.0d0) + (b ** 2.0d0)))))) / t_0
end function
public static double code(double A, double B, double C, double F) {
	double t_0 = Math.pow(B, 2.0) - ((4.0 * A) * C);
	return -Math.sqrt(((2.0 * (t_0 * F)) * ((A + C) + Math.sqrt((Math.pow((A - C), 2.0) + Math.pow(B, 2.0)))))) / t_0;
}
def code(A, B, C, F):
	t_0 = math.pow(B, 2.0) - ((4.0 * A) * C)
	return -math.sqrt(((2.0 * (t_0 * F)) * ((A + C) + math.sqrt((math.pow((A - C), 2.0) + math.pow(B, 2.0)))))) / t_0
function code(A, B, C, F)
	t_0 = Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C))
	return Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(t_0 * F)) * Float64(Float64(A + C) + sqrt(Float64((Float64(A - C) ^ 2.0) + (B ^ 2.0))))))) / t_0)
end
function tmp = code(A, B, C, F)
	t_0 = (B ^ 2.0) - ((4.0 * A) * C);
	tmp = -sqrt(((2.0 * (t_0 * F)) * ((A + C) + sqrt((((A - C) ^ 2.0) + (B ^ 2.0)))))) / t_0;
end
code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision]}, N[((-N[Sqrt[N[(N[(2.0 * N[(t$95$0 * F), $MachinePrecision]), $MachinePrecision] * N[(N[(A + C), $MachinePrecision] + N[Sqrt[N[(N[Power[N[(A - C), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[B, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := {B}^{2} - \left(4 \cdot A\right) \cdot C\\
\frac{-\sqrt{\left(2 \cdot \left(t_0 \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{t_0}
\end{array}
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 29 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 19.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := {B}^{2} - \left(4 \cdot A\right) \cdot C\\ \frac{-\sqrt{\left(2 \cdot \left(t_0 \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{t_0} \end{array} \end{array} \]
(FPCore (A B C F)
 :precision binary64
 (let* ((t_0 (- (pow B 2.0) (* (* 4.0 A) C))))
   (/
    (-
     (sqrt
      (*
       (* 2.0 (* t_0 F))
       (+ (+ A C) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0)))))))
    t_0)))
double code(double A, double B, double C, double F) {
	double t_0 = pow(B, 2.0) - ((4.0 * A) * C);
	return -sqrt(((2.0 * (t_0 * F)) * ((A + C) + sqrt((pow((A - C), 2.0) + pow(B, 2.0)))))) / t_0;
}
real(8) function code(a, b, c, f)
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: f
    real(8) :: t_0
    t_0 = (b ** 2.0d0) - ((4.0d0 * a) * c)
    code = -sqrt(((2.0d0 * (t_0 * f)) * ((a + c) + sqrt((((a - c) ** 2.0d0) + (b ** 2.0d0)))))) / t_0
end function
public static double code(double A, double B, double C, double F) {
	double t_0 = Math.pow(B, 2.0) - ((4.0 * A) * C);
	return -Math.sqrt(((2.0 * (t_0 * F)) * ((A + C) + Math.sqrt((Math.pow((A - C), 2.0) + Math.pow(B, 2.0)))))) / t_0;
}
def code(A, B, C, F):
	t_0 = math.pow(B, 2.0) - ((4.0 * A) * C)
	return -math.sqrt(((2.0 * (t_0 * F)) * ((A + C) + math.sqrt((math.pow((A - C), 2.0) + math.pow(B, 2.0)))))) / t_0
function code(A, B, C, F)
	t_0 = Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C))
	return Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(t_0 * F)) * Float64(Float64(A + C) + sqrt(Float64((Float64(A - C) ^ 2.0) + (B ^ 2.0))))))) / t_0)
end
function tmp = code(A, B, C, F)
	t_0 = (B ^ 2.0) - ((4.0 * A) * C);
	tmp = -sqrt(((2.0 * (t_0 * F)) * ((A + C) + sqrt((((A - C) ^ 2.0) + (B ^ 2.0)))))) / t_0;
end
code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision]}, N[((-N[Sqrt[N[(N[(2.0 * N[(t$95$0 * F), $MachinePrecision]), $MachinePrecision] * N[(N[(A + C), $MachinePrecision] + N[Sqrt[N[(N[Power[N[(A - C), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[B, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := {B}^{2} - \left(4 \cdot A\right) \cdot C\\
\frac{-\sqrt{\left(2 \cdot \left(t_0 \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{t_0}
\end{array}
\end{array}

Alternative 1: 53.8% accurate, 1.2× speedup?

\[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := \mathsf{hypot}\left(B, A - C\right)\\ t_2 := \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\\ t_3 := \frac{\sqrt{2 \cdot \left(F \cdot t_2\right)}}{\frac{t_2}{-\sqrt{C + \left(A + t_1\right)}}}\\ \mathbf{if}\;B \leq 1.22 \cdot 10^{-272}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;B \leq 4.9 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 1.4 \cdot 10^{+54}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\sqrt{\left(A + C\right) + t_1} \cdot \frac{-1}{t_2}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
NOTE: B should be positive before calling this function
(FPCore (A B C F)
 :precision binary64
 (let* ((t_0 (fma C (* A -4.0) (* B B)))
        (t_1 (hypot B (- A C)))
        (t_2 (fma B B (* -4.0 (* A C))))
        (t_3 (/ (sqrt (* 2.0 (* F t_2))) (/ t_2 (- (sqrt (+ C (+ A t_1))))))))
   (if (<= B 1.22e-272)
     t_3
     (if (<= B 4.9e-220)
       (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
       (if (<= B 1.4e+54)
         t_3
         (if (<= B 1.35e+154)
           (*
            (* (sqrt 2.0) (* B (sqrt F)))
            (* (sqrt (+ (+ A C) t_1)) (/ -1.0 t_2)))
           (*
            (* (sqrt F) (sqrt (+ A (hypot B A))))
            (* (sqrt 2.0) (/ -1.0 B)))))))))
B = abs(B);
double code(double A, double B, double C, double F) {
	double t_0 = fma(C, (A * -4.0), (B * B));
	double t_1 = hypot(B, (A - C));
	double t_2 = fma(B, B, (-4.0 * (A * C)));
	double t_3 = sqrt((2.0 * (F * t_2))) / (t_2 / -sqrt((C + (A + t_1))));
	double tmp;
	if (B <= 1.22e-272) {
		tmp = t_3;
	} else if (B <= 4.9e-220) {
		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
	} else if (B <= 1.4e+54) {
		tmp = t_3;
	} else if (B <= 1.35e+154) {
		tmp = (sqrt(2.0) * (B * sqrt(F))) * (sqrt(((A + C) + t_1)) * (-1.0 / t_2));
	} else {
		tmp = (sqrt(F) * sqrt((A + hypot(B, A)))) * (sqrt(2.0) * (-1.0 / B));
	}
	return tmp;
}
B = abs(B)
function code(A, B, C, F)
	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
	t_1 = hypot(B, Float64(A - C))
	t_2 = fma(B, B, Float64(-4.0 * Float64(A * C)))
	t_3 = Float64(sqrt(Float64(2.0 * Float64(F * t_2))) / Float64(t_2 / Float64(-sqrt(Float64(C + Float64(A + t_1))))))
	tmp = 0.0
	if (B <= 1.22e-272)
		tmp = t_3;
	elseif (B <= 4.9e-220)
		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
	elseif (B <= 1.4e+54)
		tmp = t_3;
	elseif (B <= 1.35e+154)
		tmp = Float64(Float64(sqrt(2.0) * Float64(B * sqrt(F))) * Float64(sqrt(Float64(Float64(A + C) + t_1)) * Float64(-1.0 / t_2)));
	else
		tmp = Float64(Float64(sqrt(F) * sqrt(Float64(A + hypot(B, A)))) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
	end
	return tmp
end
NOTE: B should be positive before calling this function
code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]}, Block[{t$95$2 = N[(B * B + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[Sqrt[N[(2.0 * N[(F * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(t$95$2 / (-N[Sqrt[N[(C + N[(A + t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 1.22e-272], t$95$3, If[LessEqual[B, 4.9e-220], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 1.4e+54], t$95$3, If[LessEqual[B, 1.35e+154], N[(N[(N[Sqrt[2.0], $MachinePrecision] * N[(B * N[Sqrt[F], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[N[(N[(A + C), $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
B = |B|\\
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
t_1 := \mathsf{hypot}\left(B, A - C\right)\\
t_2 := \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\\
t_3 := \frac{\sqrt{2 \cdot \left(F \cdot t_2\right)}}{\frac{t_2}{-\sqrt{C + \left(A + t_1\right)}}}\\
\mathbf{if}\;B \leq 1.22 \cdot 10^{-272}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;B \leq 4.9 \cdot 10^{-220}:\\
\;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\

\mathbf{elif}\;B \leq 1.4 \cdot 10^{+54}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\
\;\;\;\;\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\sqrt{\left(A + C\right) + t_1} \cdot \frac{-1}{t_2}\right)\\

\mathbf{else}:\\
\;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if B < 1.21999999999999995e-272 or 4.9000000000000002e-220 < B < 1.40000000000000008e54

    1. Initial program 26.3%

      \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
    2. Step-by-step derivation
      1. associate-*l*26.3%

        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
      2. unpow226.3%

        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
      3. +-commutative26.3%

        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
      4. unpow226.3%

        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
      5. associate-*l*26.3%

        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
      6. unpow226.3%

        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
    3. Simplified26.3%

      \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
    4. Step-by-step derivation
      1. sqrt-prod28.5%

        \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      2. *-commutative28.5%

        \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      3. *-commutative28.5%

        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      4. associate-+l+29.1%

        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      5. unpow229.1%

        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      6. hypot-udef36.1%

        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      7. associate-+r+35.0%

        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      8. +-commutative35.0%

        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      9. associate-+r+35.7%

        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
    5. Applied egg-rr35.7%

      \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
    6. Step-by-step derivation
      1. sqrt-prod35.7%

        \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      2. cancel-sign-sub-inv35.7%

        \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(C \cdot A\right)\right)}}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      3. *-commutative35.7%

        \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \left(-4\right) \cdot \color{blue}{\left(A \cdot C\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      4. metadata-eval35.7%

        \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      5. *-commutative35.7%

        \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
    7. Applied egg-rr35.7%

      \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
    8. Step-by-step derivation
      1. *-un-lft-identity35.7%

        \[\leadsto \color{blue}{1 \cdot \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
      2. distribute-rgt-neg-in35.7%

        \[\leadsto 1 \cdot \frac{\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      3. sqrt-unprod35.7%

        \[\leadsto 1 \cdot \frac{\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right)}} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      4. fma-def35.7%

        \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      5. *-commutative35.7%

        \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \color{blue}{\left(A \cdot C\right)}\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      6. cancel-sign-sub-inv35.7%

        \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
      7. metadata-eval35.7%

        \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
      8. *-commutative35.7%

        \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}} \]
    9. Applied egg-rr35.7%

      \[\leadsto \color{blue}{1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}} \]
    10. Step-by-step derivation
      1. *-lft-identity35.7%

        \[\leadsto \color{blue}{\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}} \]
      2. associate-/l*35.8%

        \[\leadsto \color{blue}{\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}} \]
    11. Simplified35.8%

      \[\leadsto \color{blue}{\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}} \]

    if 1.21999999999999995e-272 < B < 4.9000000000000002e-220

    1. Initial program 21.2%

      \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
    2. Step-by-step derivation
      1. Simplified43.2%

        \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
      2. Taylor expanded in C around -inf 61.0%

        \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

      if 1.40000000000000008e54 < B < 1.35000000000000003e154

      1. Initial program 38.4%

        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
      2. Step-by-step derivation
        1. associate-*l*38.4%

          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        2. unpow238.4%

          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        3. +-commutative38.4%

          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        4. unpow238.4%

          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        5. associate-*l*38.4%

          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
        6. unpow238.4%

          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
      3. Simplified38.4%

        \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
      4. Step-by-step derivation
        1. sqrt-prod53.7%

          \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        2. *-commutative53.7%

          \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        3. *-commutative53.7%

          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        4. associate-+l+53.7%

          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        5. unpow253.7%

          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        6. hypot-udef68.9%

          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        7. associate-+r+68.9%

          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        8. +-commutative68.9%

          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        9. associate-+r+68.9%

          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      5. Applied egg-rr68.9%

        \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      6. Taylor expanded in B around inf 79.0%

        \[\leadsto \frac{-\color{blue}{\left(\left(\sqrt{2} \cdot B\right) \cdot \sqrt{F}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      7. Step-by-step derivation
        1. associate-*l*79.0%

          \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      8. Simplified79.0%

        \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
      9. Step-by-step derivation
        1. div-inv79.0%

          \[\leadsto \color{blue}{\left(-\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
        2. distribute-rgt-neg-in79.0%

          \[\leadsto \color{blue}{\left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right)} \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        3. cancel-sign-sub-inv79.0%

          \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
        4. metadata-eval79.0%

          \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
        5. *-commutative79.0%

          \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}} \]
        6. fma-def79.0%

          \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}} \]
        7. *-commutative79.0%

          \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \color{blue}{\left(A \cdot C\right)}\right)} \]
      10. Applied egg-rr79.0%

        \[\leadsto \color{blue}{\left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}} \]
      11. Step-by-step derivation
        1. associate-*l*84.1%

          \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)} \]
        2. associate-+r+84.3%

          \[\leadsto \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\left(-\sqrt{\color{blue}{\left(C + A\right) + \mathsf{hypot}\left(B, A - C\right)}}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right) \]
        3. +-commutative84.3%

          \[\leadsto \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\left(-\sqrt{\color{blue}{\left(A + C\right)} + \mathsf{hypot}\left(B, A - C\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right) \]
      12. Simplified84.3%

        \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)} \]

      if 1.35000000000000003e154 < B

      1. Initial program 0.0%

        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
      2. Step-by-step derivation
        1. Simplified0.0%

          \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
        2. Taylor expanded in C around 0 2.4%

          \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
        3. Step-by-step derivation
          1. mul-1-neg2.4%

            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
          2. unpow22.4%

            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
          3. unpow22.4%

            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
        4. Simplified2.4%

          \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
        5. Step-by-step derivation
          1. sqrt-prod2.4%

            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
          2. hypot-udef87.0%

            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
        6. Applied egg-rr87.0%

          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
        7. Step-by-step derivation
          1. div-inv87.0%

            \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
        8. Applied egg-rr87.0%

          \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
      3. Recombined 4 regimes into one program.
      4. Final simplification46.8%

        \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 1.22 \cdot 10^{-272}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}\\ \mathbf{elif}\;B \leq 4.9 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 1.4 \cdot 10^{+54}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}\\ \mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)} \cdot \frac{-1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

      Alternative 2: 57.7% accurate, 0.4× speedup?

      \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\\ t_1 := {B}^{2} - \left(4 \cdot A\right) \cdot C\\ t_2 := \frac{-\sqrt{\left(2 \cdot \left(t_1 \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{B}^{2} + {\left(A - C\right)}^{2}}\right)}}{t_1}\\ t_3 := \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\\ \mathbf{if}\;t_2 \leq 0:\\ \;\;\;\;\frac{t_3 \cdot \left(\sqrt{2} \cdot \left(\sqrt{F} \cdot \left(-\sqrt{t_0}\right)\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;t_2 \leq \infty:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot t_0\right)}}{\frac{t_0}{-t_3}}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
      NOTE: B should be positive before calling this function
      (FPCore (A B C F)
       :precision binary64
       (let* ((t_0 (fma B B (* -4.0 (* A C))))
              (t_1 (- (pow B 2.0) (* (* 4.0 A) C)))
              (t_2
               (/
                (-
                 (sqrt
                  (*
                   (* 2.0 (* t_1 F))
                   (+ (+ A C) (sqrt (+ (pow B 2.0) (pow (- A C) 2.0)))))))
                t_1))
              (t_3 (sqrt (+ C (+ A (hypot B (- A C)))))))
         (if (<= t_2 0.0)
           (/
            (* t_3 (* (sqrt 2.0) (* (sqrt F) (- (sqrt t_0)))))
            (- (* B B) (* 4.0 (* A C))))
           (if (<= t_2 INFINITY)
             (/ (sqrt (* 2.0 (* F t_0))) (/ t_0 (- t_3)))
             (* (* (sqrt F) (sqrt (+ A (hypot B A)))) (* (sqrt 2.0) (/ -1.0 B)))))))
      B = abs(B);
      double code(double A, double B, double C, double F) {
      	double t_0 = fma(B, B, (-4.0 * (A * C)));
      	double t_1 = pow(B, 2.0) - ((4.0 * A) * C);
      	double t_2 = -sqrt(((2.0 * (t_1 * F)) * ((A + C) + sqrt((pow(B, 2.0) + pow((A - C), 2.0)))))) / t_1;
      	double t_3 = sqrt((C + (A + hypot(B, (A - C)))));
      	double tmp;
      	if (t_2 <= 0.0) {
      		tmp = (t_3 * (sqrt(2.0) * (sqrt(F) * -sqrt(t_0)))) / ((B * B) - (4.0 * (A * C)));
      	} else if (t_2 <= ((double) INFINITY)) {
      		tmp = sqrt((2.0 * (F * t_0))) / (t_0 / -t_3);
      	} else {
      		tmp = (sqrt(F) * sqrt((A + hypot(B, A)))) * (sqrt(2.0) * (-1.0 / B));
      	}
      	return tmp;
      }
      
      B = abs(B)
      function code(A, B, C, F)
      	t_0 = fma(B, B, Float64(-4.0 * Float64(A * C)))
      	t_1 = Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C))
      	t_2 = Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(t_1 * F)) * Float64(Float64(A + C) + sqrt(Float64((B ^ 2.0) + (Float64(A - C) ^ 2.0))))))) / t_1)
      	t_3 = sqrt(Float64(C + Float64(A + hypot(B, Float64(A - C)))))
      	tmp = 0.0
      	if (t_2 <= 0.0)
      		tmp = Float64(Float64(t_3 * Float64(sqrt(2.0) * Float64(sqrt(F) * Float64(-sqrt(t_0))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
      	elseif (t_2 <= Inf)
      		tmp = Float64(sqrt(Float64(2.0 * Float64(F * t_0))) / Float64(t_0 / Float64(-t_3)));
      	else
      		tmp = Float64(Float64(sqrt(F) * sqrt(Float64(A + hypot(B, A)))) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
      	end
      	return tmp
      end
      
      NOTE: B should be positive before calling this function
      code[A_, B_, C_, F_] := Block[{t$95$0 = N[(B * B + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[Sqrt[N[(N[(2.0 * N[(t$95$1 * F), $MachinePrecision]), $MachinePrecision] * N[(N[(A + C), $MachinePrecision] + N[Sqrt[N[(N[Power[B, 2.0], $MachinePrecision] + N[Power[N[(A - C), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$2, 0.0], N[(N[(t$95$3 * N[(N[Sqrt[2.0], $MachinePrecision] * N[(N[Sqrt[F], $MachinePrecision] * (-N[Sqrt[t$95$0], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[(N[Sqrt[N[(2.0 * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(t$95$0 / (-t$95$3)), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
      
      \begin{array}{l}
      B = |B|\\
      \\
      \begin{array}{l}
      t_0 := \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\\
      t_1 := {B}^{2} - \left(4 \cdot A\right) \cdot C\\
      t_2 := \frac{-\sqrt{\left(2 \cdot \left(t_1 \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{B}^{2} + {\left(A - C\right)}^{2}}\right)}}{t_1}\\
      t_3 := \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\\
      \mathbf{if}\;t_2 \leq 0:\\
      \;\;\;\;\frac{t_3 \cdot \left(\sqrt{2} \cdot \left(\sqrt{F} \cdot \left(-\sqrt{t_0}\right)\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
      
      \mathbf{elif}\;t_2 \leq \infty:\\
      \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot t_0\right)}}{\frac{t_0}{-t_3}}\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (+.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) < -0.0

        1. Initial program 33.5%

          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        2. Step-by-step derivation
          1. associate-*l*33.5%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          2. unpow233.5%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          3. +-commutative33.5%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          4. unpow233.5%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          5. associate-*l*33.5%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
          6. unpow233.5%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
        3. Simplified33.5%

          \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
        4. Step-by-step derivation
          1. sqrt-prod38.7%

            \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          2. *-commutative38.7%

            \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          3. *-commutative38.7%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          4. associate-+l+39.6%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          5. unpow239.6%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          6. hypot-udef49.7%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          7. associate-+r+48.0%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          8. +-commutative48.0%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          9. associate-+r+49.2%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        5. Applied egg-rr49.2%

          \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        6. Step-by-step derivation
          1. sqrt-prod49.1%

            \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          2. cancel-sign-sub-inv49.1%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(C \cdot A\right)\right)}}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          3. *-commutative49.1%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \left(-4\right) \cdot \color{blue}{\left(A \cdot C\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          4. metadata-eval49.1%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          5. *-commutative49.1%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        7. Applied egg-rr49.1%

          \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        8. Step-by-step derivation
          1. sqrt-prod63.2%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \color{blue}{\left(\sqrt{F} \cdot \sqrt{B \cdot B + -4 \cdot \left(C \cdot A\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          2. fma-def63.2%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \left(\sqrt{F} \cdot \sqrt{\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}}\right)\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          3. *-commutative63.2%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \left(\sqrt{F} \cdot \sqrt{\mathsf{fma}\left(B, B, -4 \cdot \color{blue}{\left(A \cdot C\right)}\right)}\right)\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        9. Applied egg-rr63.2%

          \[\leadsto \frac{-\left(\sqrt{2} \cdot \color{blue}{\left(\sqrt{F} \cdot \sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

        if -0.0 < (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (+.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) < +inf.0

        1. Initial program 61.9%

          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        2. Step-by-step derivation
          1. associate-*l*61.9%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          2. unpow261.9%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          3. +-commutative61.9%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          4. unpow261.9%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          5. associate-*l*61.9%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
          6. unpow261.9%

            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
        3. Simplified61.9%

          \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
        4. Step-by-step derivation
          1. sqrt-prod63.7%

            \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          2. *-commutative63.7%

            \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          3. *-commutative63.7%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          4. associate-+l+63.7%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          5. unpow263.7%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          6. hypot-udef86.1%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          7. associate-+r+86.1%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          8. +-commutative86.1%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          9. associate-+r+86.1%

            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        5. Applied egg-rr86.1%

          \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        6. Step-by-step derivation
          1. sqrt-prod85.9%

            \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          2. cancel-sign-sub-inv85.9%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(C \cdot A\right)\right)}}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          3. *-commutative85.9%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \left(-4\right) \cdot \color{blue}{\left(A \cdot C\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          4. metadata-eval85.9%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          5. *-commutative85.9%

            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        7. Applied egg-rr85.9%

          \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        8. Step-by-step derivation
          1. *-un-lft-identity85.9%

            \[\leadsto \color{blue}{1 \cdot \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
          2. distribute-rgt-neg-in85.9%

            \[\leadsto 1 \cdot \frac{\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          3. sqrt-unprod86.1%

            \[\leadsto 1 \cdot \frac{\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right)}} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          4. fma-def86.1%

            \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          5. *-commutative86.1%

            \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \color{blue}{\left(A \cdot C\right)}\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          6. cancel-sign-sub-inv86.1%

            \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
          7. metadata-eval86.1%

            \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
          8. *-commutative86.1%

            \[\leadsto 1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}} \]
        9. Applied egg-rr86.1%

          \[\leadsto \color{blue}{1 \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}} \]
        10. Step-by-step derivation
          1. *-lft-identity86.1%

            \[\leadsto \color{blue}{\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}} \]
          2. associate-/l*86.1%

            \[\leadsto \color{blue}{\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}} \]
        11. Simplified86.1%

          \[\leadsto \color{blue}{\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}} \]

        if +inf.0 < (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (+.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)))

        1. Initial program 0.0%

          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        2. Step-by-step derivation
          1. Simplified0.5%

            \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
          2. Taylor expanded in C around 0 1.7%

            \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
          3. Step-by-step derivation
            1. mul-1-neg1.7%

              \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
            2. unpow21.7%

              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
            3. unpow21.7%

              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
          4. Simplified1.7%

            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
          5. Step-by-step derivation
            1. sqrt-prod1.7%

              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
            2. hypot-udef29.9%

              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
          6. Applied egg-rr29.9%

            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
          7. Step-by-step derivation
            1. div-inv29.9%

              \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
          8. Applied egg-rr29.9%

            \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
        3. Recombined 3 regimes into one program.
        4. Final simplification52.9%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{B}^{2} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \leq 0:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\sqrt{2} \cdot \left(\sqrt{F} \cdot \left(-\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{B}^{2} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \leq \infty:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

        Alternative 3: 53.8% accurate, 1.2× speedup?

        \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_2 := \mathsf{hypot}\left(B, A - C\right)\\ t_3 := \sqrt{C + \left(A + t_2\right)}\\ t_4 := -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;B \leq 6.8 \cdot 10^{-273}:\\ \;\;\;\;\frac{t_3 \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + t_4\right)}\right)\right)}{t_1}\\ \mathbf{elif}\;B \leq 1.05 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 3.2 \cdot 10^{+49}:\\ \;\;\;\;\frac{t_3 \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\ \mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\sqrt{\left(A + C\right) + t_2} \cdot \frac{-1}{\mathsf{fma}\left(B, B, t_4\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
        NOTE: B should be positive before calling this function
        (FPCore (A B C F)
         :precision binary64
         (let* ((t_0 (fma C (* A -4.0) (* B B)))
                (t_1 (- (* B B) (* 4.0 (* A C))))
                (t_2 (hypot B (- A C)))
                (t_3 (sqrt (+ C (+ A t_2))))
                (t_4 (* -4.0 (* A C))))
           (if (<= B 6.8e-273)
             (/ (* t_3 (* (sqrt 2.0) (- (sqrt (* F (+ (* B B) t_4)))))) t_1)
             (if (<= B 1.05e-220)
               (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
               (if (<= B 3.2e+49)
                 (/ (* t_3 (- (sqrt (* 2.0 (* F t_1))))) t_1)
                 (if (<= B 1.35e+154)
                   (*
                    (* (sqrt 2.0) (* B (sqrt F)))
                    (* (sqrt (+ (+ A C) t_2)) (/ -1.0 (fma B B t_4))))
                   (*
                    (* (sqrt F) (sqrt (+ A (hypot B A))))
                    (* (sqrt 2.0) (/ -1.0 B)))))))))
        B = abs(B);
        double code(double A, double B, double C, double F) {
        	double t_0 = fma(C, (A * -4.0), (B * B));
        	double t_1 = (B * B) - (4.0 * (A * C));
        	double t_2 = hypot(B, (A - C));
        	double t_3 = sqrt((C + (A + t_2)));
        	double t_4 = -4.0 * (A * C);
        	double tmp;
        	if (B <= 6.8e-273) {
        		tmp = (t_3 * (sqrt(2.0) * -sqrt((F * ((B * B) + t_4))))) / t_1;
        	} else if (B <= 1.05e-220) {
        		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
        	} else if (B <= 3.2e+49) {
        		tmp = (t_3 * -sqrt((2.0 * (F * t_1)))) / t_1;
        	} else if (B <= 1.35e+154) {
        		tmp = (sqrt(2.0) * (B * sqrt(F))) * (sqrt(((A + C) + t_2)) * (-1.0 / fma(B, B, t_4)));
        	} else {
        		tmp = (sqrt(F) * sqrt((A + hypot(B, A)))) * (sqrt(2.0) * (-1.0 / B));
        	}
        	return tmp;
        }
        
        B = abs(B)
        function code(A, B, C, F)
        	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
        	t_1 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
        	t_2 = hypot(B, Float64(A - C))
        	t_3 = sqrt(Float64(C + Float64(A + t_2)))
        	t_4 = Float64(-4.0 * Float64(A * C))
        	tmp = 0.0
        	if (B <= 6.8e-273)
        		tmp = Float64(Float64(t_3 * Float64(sqrt(2.0) * Float64(-sqrt(Float64(F * Float64(Float64(B * B) + t_4)))))) / t_1);
        	elseif (B <= 1.05e-220)
        		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
        	elseif (B <= 3.2e+49)
        		tmp = Float64(Float64(t_3 * Float64(-sqrt(Float64(2.0 * Float64(F * t_1))))) / t_1);
        	elseif (B <= 1.35e+154)
        		tmp = Float64(Float64(sqrt(2.0) * Float64(B * sqrt(F))) * Float64(sqrt(Float64(Float64(A + C) + t_2)) * Float64(-1.0 / fma(B, B, t_4))));
        	else
        		tmp = Float64(Float64(sqrt(F) * sqrt(Float64(A + hypot(B, A)))) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
        	end
        	return tmp
        end
        
        NOTE: B should be positive before calling this function
        code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(C + N[(A + t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$4 = N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 6.8e-273], N[(N[(t$95$3 * N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F * N[(N[(B * B), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[B, 1.05e-220], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 3.2e+49], N[(N[(t$95$3 * (-N[Sqrt[N[(2.0 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[B, 1.35e+154], N[(N[(N[Sqrt[2.0], $MachinePrecision] * N[(B * N[Sqrt[F], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[N[(N[(A + C), $MachinePrecision] + t$95$2), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / N[(B * B + t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
        
        \begin{array}{l}
        B = |B|\\
        \\
        \begin{array}{l}
        t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
        t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
        t_2 := \mathsf{hypot}\left(B, A - C\right)\\
        t_3 := \sqrt{C + \left(A + t_2\right)}\\
        t_4 := -4 \cdot \left(A \cdot C\right)\\
        \mathbf{if}\;B \leq 6.8 \cdot 10^{-273}:\\
        \;\;\;\;\frac{t_3 \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + t_4\right)}\right)\right)}{t_1}\\
        
        \mathbf{elif}\;B \leq 1.05 \cdot 10^{-220}:\\
        \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
        
        \mathbf{elif}\;B \leq 3.2 \cdot 10^{+49}:\\
        \;\;\;\;\frac{t_3 \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\
        
        \mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\
        \;\;\;\;\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\sqrt{\left(A + C\right) + t_2} \cdot \frac{-1}{\mathsf{fma}\left(B, B, t_4\right)}\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 5 regimes
        2. if B < 6.79999999999999982e-273

          1. Initial program 20.4%

            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          2. Step-by-step derivation
            1. associate-*l*20.4%

              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
            2. unpow220.4%

              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
            3. +-commutative20.4%

              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
            4. unpow220.4%

              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
            5. associate-*l*20.4%

              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
            6. unpow220.4%

              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
          3. Simplified20.4%

            \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
          4. Step-by-step derivation
            1. sqrt-prod22.9%

              \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            2. *-commutative22.9%

              \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            3. *-commutative22.9%

              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            4. associate-+l+23.7%

              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            5. unpow223.7%

              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            6. hypot-udef29.6%

              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            7. associate-+r+28.4%

              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            8. +-commutative28.4%

              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            9. associate-+r+28.8%

              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          5. Applied egg-rr28.8%

            \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          6. Step-by-step derivation
            1. sqrt-prod28.8%

              \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            2. cancel-sign-sub-inv28.8%

              \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(C \cdot A\right)\right)}}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            3. *-commutative28.8%

              \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \left(-4\right) \cdot \color{blue}{\left(A \cdot C\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            4. metadata-eval28.8%

              \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            5. *-commutative28.8%

              \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          7. Applied egg-rr28.8%

            \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

          if 6.79999999999999982e-273 < B < 1.04999999999999996e-220

          1. Initial program 21.2%

            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
          2. Step-by-step derivation
            1. Simplified43.2%

              \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
            2. Taylor expanded in C around -inf 61.0%

              \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

            if 1.04999999999999996e-220 < B < 3.20000000000000014e49

            1. Initial program 40.3%

              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
            2. Step-by-step derivation
              1. associate-*l*40.3%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              2. unpow240.3%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              3. +-commutative40.3%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              4. unpow240.3%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              5. associate-*l*40.3%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
              6. unpow240.3%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
            3. Simplified40.3%

              \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
            4. Step-by-step derivation
              1. sqrt-prod41.7%

                \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              2. *-commutative41.7%

                \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              3. *-commutative41.7%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              4. associate-+l+41.7%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              5. unpow241.7%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              6. hypot-udef52.1%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              7. associate-+r+51.3%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              8. +-commutative51.3%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              9. associate-+r+53.0%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            5. Applied egg-rr53.0%

              \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

            if 3.20000000000000014e49 < B < 1.35000000000000003e154

            1. Initial program 44.2%

              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
            2. Step-by-step derivation
              1. associate-*l*44.2%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              2. unpow244.2%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              3. +-commutative44.2%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              4. unpow244.2%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              5. associate-*l*44.2%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
              6. unpow244.2%

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
            3. Simplified44.2%

              \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
            4. Step-by-step derivation
              1. sqrt-prod57.9%

                \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              2. *-commutative57.9%

                \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              3. *-commutative57.9%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              4. associate-+l+57.9%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              5. unpow257.9%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              6. hypot-udef71.7%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              7. associate-+r+71.7%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              8. +-commutative71.7%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              9. associate-+r+71.7%

                \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            5. Applied egg-rr71.7%

              \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            6. Taylor expanded in B around inf 80.9%

              \[\leadsto \frac{-\color{blue}{\left(\left(\sqrt{2} \cdot B\right) \cdot \sqrt{F}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            7. Step-by-step derivation
              1. associate-*l*80.9%

                \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            8. Simplified80.9%

              \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            9. Step-by-step derivation
              1. div-inv80.9%

                \[\leadsto \color{blue}{\left(-\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
              2. distribute-rgt-neg-in80.9%

                \[\leadsto \color{blue}{\left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right)} \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              3. cancel-sign-sub-inv80.9%

                \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
              4. metadata-eval80.9%

                \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
              5. *-commutative80.9%

                \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}} \]
              6. fma-def80.9%

                \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}} \]
              7. *-commutative80.9%

                \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \color{blue}{\left(A \cdot C\right)}\right)} \]
            10. Applied egg-rr80.9%

              \[\leadsto \color{blue}{\left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}} \]
            11. Step-by-step derivation
              1. associate-*l*85.5%

                \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)} \]
              2. associate-+r+85.6%

                \[\leadsto \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\left(-\sqrt{\color{blue}{\left(C + A\right) + \mathsf{hypot}\left(B, A - C\right)}}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right) \]
              3. +-commutative85.6%

                \[\leadsto \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\left(-\sqrt{\color{blue}{\left(A + C\right)} + \mathsf{hypot}\left(B, A - C\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right) \]
            12. Simplified85.6%

              \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)} \]

            if 1.35000000000000003e154 < B

            1. Initial program 0.0%

              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
            2. Step-by-step derivation
              1. Simplified0.0%

                \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
              2. Taylor expanded in C around 0 2.4%

                \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
              3. Step-by-step derivation
                1. mul-1-neg2.4%

                  \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                2. unpow22.4%

                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                3. unpow22.4%

                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
              4. Simplified2.4%

                \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
              5. Step-by-step derivation
                1. sqrt-prod2.4%

                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                2. hypot-udef87.0%

                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
              6. Applied egg-rr87.0%

                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
              7. Step-by-step derivation
                1. div-inv87.0%

                  \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
              8. Applied egg-rr87.0%

                \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
            3. Recombined 5 regimes into one program.
            4. Final simplification46.7%

              \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 6.8 \cdot 10^{-273}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)}\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 1.05 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 3.2 \cdot 10^{+49}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)} \cdot \frac{-1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

            Alternative 4: 53.8% accurate, 1.2× speedup?

            \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_2 := \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\\ t_3 := -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;B \leq 9.2 \cdot 10^{-273}:\\ \;\;\;\;\frac{t_2 \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + t_3\right)}\right)\right)}{t_1}\\ \mathbf{elif}\;B \leq 7.4 \cdot 10^{-221}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 3 \cdot 10^{+49}:\\ \;\;\;\;\frac{t_2 \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\ \mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;\frac{\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)}{\frac{\mathsf{fma}\left(B, B, t_3\right)}{-t_2}}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
            NOTE: B should be positive before calling this function
            (FPCore (A B C F)
             :precision binary64
             (let* ((t_0 (fma C (* A -4.0) (* B B)))
                    (t_1 (- (* B B) (* 4.0 (* A C))))
                    (t_2 (sqrt (+ C (+ A (hypot B (- A C))))))
                    (t_3 (* -4.0 (* A C))))
               (if (<= B 9.2e-273)
                 (/ (* t_2 (* (sqrt 2.0) (- (sqrt (* F (+ (* B B) t_3)))))) t_1)
                 (if (<= B 7.4e-221)
                   (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
                   (if (<= B 3e+49)
                     (/ (* t_2 (- (sqrt (* 2.0 (* F t_1))))) t_1)
                     (if (<= B 1.35e+154)
                       (/ (* (sqrt 2.0) (* B (sqrt F))) (/ (fma B B t_3) (- t_2)))
                       (*
                        (* (sqrt F) (sqrt (+ A (hypot B A))))
                        (* (sqrt 2.0) (/ -1.0 B)))))))))
            B = abs(B);
            double code(double A, double B, double C, double F) {
            	double t_0 = fma(C, (A * -4.0), (B * B));
            	double t_1 = (B * B) - (4.0 * (A * C));
            	double t_2 = sqrt((C + (A + hypot(B, (A - C)))));
            	double t_3 = -4.0 * (A * C);
            	double tmp;
            	if (B <= 9.2e-273) {
            		tmp = (t_2 * (sqrt(2.0) * -sqrt((F * ((B * B) + t_3))))) / t_1;
            	} else if (B <= 7.4e-221) {
            		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
            	} else if (B <= 3e+49) {
            		tmp = (t_2 * -sqrt((2.0 * (F * t_1)))) / t_1;
            	} else if (B <= 1.35e+154) {
            		tmp = (sqrt(2.0) * (B * sqrt(F))) / (fma(B, B, t_3) / -t_2);
            	} else {
            		tmp = (sqrt(F) * sqrt((A + hypot(B, A)))) * (sqrt(2.0) * (-1.0 / B));
            	}
            	return tmp;
            }
            
            B = abs(B)
            function code(A, B, C, F)
            	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
            	t_1 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
            	t_2 = sqrt(Float64(C + Float64(A + hypot(B, Float64(A - C)))))
            	t_3 = Float64(-4.0 * Float64(A * C))
            	tmp = 0.0
            	if (B <= 9.2e-273)
            		tmp = Float64(Float64(t_2 * Float64(sqrt(2.0) * Float64(-sqrt(Float64(F * Float64(Float64(B * B) + t_3)))))) / t_1);
            	elseif (B <= 7.4e-221)
            		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
            	elseif (B <= 3e+49)
            		tmp = Float64(Float64(t_2 * Float64(-sqrt(Float64(2.0 * Float64(F * t_1))))) / t_1);
            	elseif (B <= 1.35e+154)
            		tmp = Float64(Float64(sqrt(2.0) * Float64(B * sqrt(F))) / Float64(fma(B, B, t_3) / Float64(-t_2)));
            	else
            		tmp = Float64(Float64(sqrt(F) * sqrt(Float64(A + hypot(B, A)))) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
            	end
            	return tmp
            end
            
            NOTE: B should be positive before calling this function
            code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 9.2e-273], N[(N[(t$95$2 * N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F * N[(N[(B * B), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[B, 7.4e-221], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 3e+49], N[(N[(t$95$2 * (-N[Sqrt[N[(2.0 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[B, 1.35e+154], N[(N[(N[Sqrt[2.0], $MachinePrecision] * N[(B * N[Sqrt[F], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(B * B + t$95$3), $MachinePrecision] / (-t$95$2)), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
            
            \begin{array}{l}
            B = |B|\\
            \\
            \begin{array}{l}
            t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
            t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
            t_2 := \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\\
            t_3 := -4 \cdot \left(A \cdot C\right)\\
            \mathbf{if}\;B \leq 9.2 \cdot 10^{-273}:\\
            \;\;\;\;\frac{t_2 \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + t_3\right)}\right)\right)}{t_1}\\
            
            \mathbf{elif}\;B \leq 7.4 \cdot 10^{-221}:\\
            \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
            
            \mathbf{elif}\;B \leq 3 \cdot 10^{+49}:\\
            \;\;\;\;\frac{t_2 \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\
            
            \mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\
            \;\;\;\;\frac{\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)}{\frac{\mathsf{fma}\left(B, B, t_3\right)}{-t_2}}\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 5 regimes
            2. if B < 9.19999999999999923e-273

              1. Initial program 20.4%

                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              2. Step-by-step derivation
                1. associate-*l*20.4%

                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                2. unpow220.4%

                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                3. +-commutative20.4%

                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                4. unpow220.4%

                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                5. associate-*l*20.4%

                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                6. unpow220.4%

                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
              3. Simplified20.4%

                \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
              4. Step-by-step derivation
                1. sqrt-prod22.9%

                  \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                2. *-commutative22.9%

                  \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                3. *-commutative22.9%

                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                4. associate-+l+23.7%

                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                5. unpow223.7%

                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                6. hypot-udef29.6%

                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                7. associate-+r+28.4%

                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                8. +-commutative28.4%

                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                9. associate-+r+28.8%

                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              5. Applied egg-rr28.8%

                \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              6. Step-by-step derivation
                1. sqrt-prod28.8%

                  \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                2. cancel-sign-sub-inv28.8%

                  \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(C \cdot A\right)\right)}}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                3. *-commutative28.8%

                  \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \left(-4\right) \cdot \color{blue}{\left(A \cdot C\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                4. metadata-eval28.8%

                  \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                5. *-commutative28.8%

                  \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              7. Applied egg-rr28.8%

                \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

              if 9.19999999999999923e-273 < B < 7.39999999999999971e-221

              1. Initial program 21.2%

                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              2. Step-by-step derivation
                1. Simplified43.2%

                  \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                2. Taylor expanded in C around -inf 61.0%

                  \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

                if 7.39999999999999971e-221 < B < 3.0000000000000002e49

                1. Initial program 40.3%

                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                2. Step-by-step derivation
                  1. associate-*l*40.3%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  2. unpow240.3%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  3. +-commutative40.3%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  4. unpow240.3%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  5. associate-*l*40.3%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                  6. unpow240.3%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                3. Simplified40.3%

                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                4. Step-by-step derivation
                  1. sqrt-prod41.7%

                    \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  2. *-commutative41.7%

                    \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  3. *-commutative41.7%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  4. associate-+l+41.7%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  5. unpow241.7%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  6. hypot-udef52.1%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  7. associate-+r+51.3%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  8. +-commutative51.3%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  9. associate-+r+53.0%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                5. Applied egg-rr53.0%

                  \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                if 3.0000000000000002e49 < B < 1.35000000000000003e154

                1. Initial program 44.2%

                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                2. Step-by-step derivation
                  1. associate-*l*44.2%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  2. unpow244.2%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  3. +-commutative44.2%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  4. unpow244.2%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  5. associate-*l*44.2%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                  6. unpow244.2%

                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                3. Simplified44.2%

                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                4. Step-by-step derivation
                  1. sqrt-prod57.9%

                    \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  2. *-commutative57.9%

                    \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  3. *-commutative57.9%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  4. associate-+l+57.9%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  5. unpow257.9%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  6. hypot-udef71.7%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  7. associate-+r+71.7%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  8. +-commutative71.7%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  9. associate-+r+71.7%

                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                5. Applied egg-rr71.7%

                  \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                6. Taylor expanded in B around inf 80.9%

                  \[\leadsto \frac{-\color{blue}{\left(\left(\sqrt{2} \cdot B\right) \cdot \sqrt{F}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                7. Step-by-step derivation
                  1. associate-*l*80.9%

                    \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                8. Simplified80.9%

                  \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                9. Step-by-step derivation
                  1. div-inv80.9%

                    \[\leadsto \color{blue}{\left(-\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                  2. distribute-rgt-neg-in80.9%

                    \[\leadsto \color{blue}{\left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right)} \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  3. cancel-sign-sub-inv80.9%

                    \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
                  4. metadata-eval80.9%

                    \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
                  5. *-commutative80.9%

                    \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}} \]
                  6. fma-def80.9%

                    \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}} \]
                  7. *-commutative80.9%

                    \[\leadsto \left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \color{blue}{\left(A \cdot C\right)}\right)} \]
                10. Applied egg-rr80.9%

                  \[\leadsto \color{blue}{\left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}} \]
                11. Step-by-step derivation
                  1. associate-*r/80.9%

                    \[\leadsto \color{blue}{\frac{\left(\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)\right) \cdot 1}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}} \]
                  2. *-rgt-identity80.9%

                    \[\leadsto \frac{\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right) \cdot \left(-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)} \]
                  3. associate-/l*85.4%

                    \[\leadsto \color{blue}{\frac{\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}} \]
                12. Simplified85.4%

                  \[\leadsto \color{blue}{\frac{\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}} \]

                if 1.35000000000000003e154 < B

                1. Initial program 0.0%

                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                2. Step-by-step derivation
                  1. Simplified0.0%

                    \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                  2. Taylor expanded in C around 0 2.4%

                    \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                  3. Step-by-step derivation
                    1. mul-1-neg2.4%

                      \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                    2. unpow22.4%

                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                    3. unpow22.4%

                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                  4. Simplified2.4%

                    \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                  5. Step-by-step derivation
                    1. sqrt-prod2.4%

                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                    2. hypot-udef87.0%

                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                  6. Applied egg-rr87.0%

                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                  7. Step-by-step derivation
                    1. div-inv87.0%

                      \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                  8. Applied egg-rr87.0%

                    \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                3. Recombined 5 regimes into one program.
                4. Final simplification46.7%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 9.2 \cdot 10^{-273}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)}\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 7.4 \cdot 10^{-221}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 3 \cdot 10^{+49}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;\frac{\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

                Alternative 5: 52.7% accurate, 1.5× speedup?

                \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\\ t_2 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;B \leq 1.75 \cdot 10^{-272}:\\ \;\;\;\;\frac{t_1 \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)}\right)\right)}{t_2}\\ \mathbf{elif}\;B \leq 3.5 \cdot 10^{-219}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 9 \cdot 10^{+61}:\\ \;\;\;\;\frac{t_1 \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_2\right)}\right)}{t_2}\\ \mathbf{elif}\;B \leq 4.3 \cdot 10^{+144}:\\ \;\;\;\;\frac{t_1 \cdot \left(\sqrt{2} \cdot \left(B \cdot \left(-\sqrt{F}\right)\right)\right)}{t_2}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
                NOTE: B should be positive before calling this function
                (FPCore (A B C F)
                 :precision binary64
                 (let* ((t_0 (fma C (* A -4.0) (* B B)))
                        (t_1 (sqrt (+ C (+ A (hypot B (- A C))))))
                        (t_2 (- (* B B) (* 4.0 (* A C)))))
                   (if (<= B 1.75e-272)
                     (/
                      (* t_1 (* (sqrt 2.0) (- (sqrt (* F (+ (* B B) (* -4.0 (* A C))))))))
                      t_2)
                     (if (<= B 3.5e-219)
                       (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
                       (if (<= B 9e+61)
                         (/ (* t_1 (- (sqrt (* 2.0 (* F t_2))))) t_2)
                         (if (<= B 4.3e+144)
                           (/ (* t_1 (* (sqrt 2.0) (* B (- (sqrt F))))) t_2)
                           (*
                            (* (sqrt F) (sqrt (+ A (hypot B A))))
                            (* (sqrt 2.0) (/ -1.0 B)))))))))
                B = abs(B);
                double code(double A, double B, double C, double F) {
                	double t_0 = fma(C, (A * -4.0), (B * B));
                	double t_1 = sqrt((C + (A + hypot(B, (A - C)))));
                	double t_2 = (B * B) - (4.0 * (A * C));
                	double tmp;
                	if (B <= 1.75e-272) {
                		tmp = (t_1 * (sqrt(2.0) * -sqrt((F * ((B * B) + (-4.0 * (A * C))))))) / t_2;
                	} else if (B <= 3.5e-219) {
                		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
                	} else if (B <= 9e+61) {
                		tmp = (t_1 * -sqrt((2.0 * (F * t_2)))) / t_2;
                	} else if (B <= 4.3e+144) {
                		tmp = (t_1 * (sqrt(2.0) * (B * -sqrt(F)))) / t_2;
                	} else {
                		tmp = (sqrt(F) * sqrt((A + hypot(B, A)))) * (sqrt(2.0) * (-1.0 / B));
                	}
                	return tmp;
                }
                
                B = abs(B)
                function code(A, B, C, F)
                	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
                	t_1 = sqrt(Float64(C + Float64(A + hypot(B, Float64(A - C)))))
                	t_2 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                	tmp = 0.0
                	if (B <= 1.75e-272)
                		tmp = Float64(Float64(t_1 * Float64(sqrt(2.0) * Float64(-sqrt(Float64(F * Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))))))) / t_2);
                	elseif (B <= 3.5e-219)
                		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
                	elseif (B <= 9e+61)
                		tmp = Float64(Float64(t_1 * Float64(-sqrt(Float64(2.0 * Float64(F * t_2))))) / t_2);
                	elseif (B <= 4.3e+144)
                		tmp = Float64(Float64(t_1 * Float64(sqrt(2.0) * Float64(B * Float64(-sqrt(F))))) / t_2);
                	else
                		tmp = Float64(Float64(sqrt(F) * sqrt(Float64(A + hypot(B, A)))) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
                	end
                	return tmp
                end
                
                NOTE: B should be positive before calling this function
                code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sqrt[N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 1.75e-272], N[(N[(t$95$1 * N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F * N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[B, 3.5e-219], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 9e+61], N[(N[(t$95$1 * (-N[Sqrt[N[(2.0 * N[(F * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[B, 4.3e+144], N[(N[(t$95$1 * N[(N[Sqrt[2.0], $MachinePrecision] * N[(B * (-N[Sqrt[F], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
                
                \begin{array}{l}
                B = |B|\\
                \\
                \begin{array}{l}
                t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
                t_1 := \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\\
                t_2 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                \mathbf{if}\;B \leq 1.75 \cdot 10^{-272}:\\
                \;\;\;\;\frac{t_1 \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)}\right)\right)}{t_2}\\
                
                \mathbf{elif}\;B \leq 3.5 \cdot 10^{-219}:\\
                \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
                
                \mathbf{elif}\;B \leq 9 \cdot 10^{+61}:\\
                \;\;\;\;\frac{t_1 \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_2\right)}\right)}{t_2}\\
                
                \mathbf{elif}\;B \leq 4.3 \cdot 10^{+144}:\\
                \;\;\;\;\frac{t_1 \cdot \left(\sqrt{2} \cdot \left(B \cdot \left(-\sqrt{F}\right)\right)\right)}{t_2}\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 5 regimes
                2. if B < 1.7499999999999998e-272

                  1. Initial program 20.4%

                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  2. Step-by-step derivation
                    1. associate-*l*20.4%

                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                    2. unpow220.4%

                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                    3. +-commutative20.4%

                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                    4. unpow220.4%

                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                    5. associate-*l*20.4%

                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                    6. unpow220.4%

                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                  3. Simplified20.4%

                    \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                  4. Step-by-step derivation
                    1. sqrt-prod22.9%

                      \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    2. *-commutative22.9%

                      \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    3. *-commutative22.9%

                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    4. associate-+l+23.7%

                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    5. unpow223.7%

                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    6. hypot-udef29.6%

                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    7. associate-+r+28.4%

                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    8. +-commutative28.4%

                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    9. associate-+r+28.8%

                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  5. Applied egg-rr28.8%

                    \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  6. Step-by-step derivation
                    1. sqrt-prod28.8%

                      \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    2. cancel-sign-sub-inv28.8%

                      \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(C \cdot A\right)\right)}}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    3. *-commutative28.8%

                      \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \left(-4\right) \cdot \color{blue}{\left(A \cdot C\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    4. metadata-eval28.8%

                      \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    5. *-commutative28.8%

                      \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  7. Applied egg-rr28.8%

                    \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                  if 1.7499999999999998e-272 < B < 3.50000000000000011e-219

                  1. Initial program 21.2%

                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  2. Step-by-step derivation
                    1. Simplified43.2%

                      \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                    2. Taylor expanded in C around -inf 61.0%

                      \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

                    if 3.50000000000000011e-219 < B < 9e61

                    1. Initial program 42.9%

                      \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                    2. Step-by-step derivation
                      1. associate-*l*42.9%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      2. unpow242.9%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      3. +-commutative42.9%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      4. unpow242.9%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      5. associate-*l*42.9%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                      6. unpow242.9%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                    3. Simplified42.9%

                      \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                    4. Step-by-step derivation
                      1. sqrt-prod44.2%

                        \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      2. *-commutative44.2%

                        \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      3. *-commutative44.2%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      4. associate-+l+44.2%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      5. unpow244.2%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      6. hypot-udef55.5%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      7. associate-+r+54.9%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      8. +-commutative54.9%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      9. associate-+r+56.4%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    5. Applied egg-rr56.4%

                      \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                    if 9e61 < B < 4.29999999999999984e144

                    1. Initial program 37.3%

                      \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                    2. Step-by-step derivation
                      1. associate-*l*37.3%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      2. unpow237.3%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      3. +-commutative37.3%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      4. unpow237.3%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      5. associate-*l*37.3%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                      6. unpow237.3%

                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                    3. Simplified37.3%

                      \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                    4. Step-by-step derivation
                      1. sqrt-prod58.2%

                        \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      2. *-commutative58.2%

                        \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      3. *-commutative58.2%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      4. associate-+l+58.2%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      5. unpow258.2%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      6. hypot-udef72.0%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      7. associate-+r+72.0%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      8. +-commutative72.0%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      9. associate-+r+72.1%

                        \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    5. Applied egg-rr72.1%

                      \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    6. Taylor expanded in B around inf 85.4%

                      \[\leadsto \frac{-\color{blue}{\left(\left(\sqrt{2} \cdot B\right) \cdot \sqrt{F}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    7. Step-by-step derivation
                      1. associate-*l*85.5%

                        \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                    8. Simplified85.5%

                      \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                    if 4.29999999999999984e144 < B

                    1. Initial program 2.9%

                      \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                    2. Step-by-step derivation
                      1. Simplified2.9%

                        \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                      2. Taylor expanded in C around 0 5.2%

                        \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                      3. Step-by-step derivation
                        1. mul-1-neg5.2%

                          \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                        2. unpow25.2%

                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                        3. unpow25.2%

                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                      4. Simplified5.2%

                        \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                      5. Step-by-step derivation
                        1. sqrt-prod7.0%

                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                        2. hypot-udef84.5%

                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                      6. Applied egg-rr84.5%

                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                      7. Step-by-step derivation
                        1. div-inv84.5%

                          \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                      8. Applied egg-rr84.5%

                        \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                    3. Recombined 5 regimes into one program.
                    4. Final simplification46.6%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 1.75 \cdot 10^{-272}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\sqrt{2} \cdot \left(-\sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)}\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 3.5 \cdot 10^{-219}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 9 \cdot 10^{+61}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 4.3 \cdot 10^{+144}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\sqrt{2} \cdot \left(B \cdot \left(-\sqrt{F}\right)\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

                    Alternative 6: 52.7% accurate, 1.5× speedup?

                    \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_2 := \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\\ t_3 := \frac{t_2 \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\ \mathbf{if}\;B \leq 1.75 \cdot 10^{-273}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;B \leq 1.52 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 6.2 \cdot 10^{+62}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;B \leq 6.4 \cdot 10^{+144}:\\ \;\;\;\;\frac{t_2 \cdot \left(\sqrt{2} \cdot \left(B \cdot \left(-\sqrt{F}\right)\right)\right)}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
                    NOTE: B should be positive before calling this function
                    (FPCore (A B C F)
                     :precision binary64
                     (let* ((t_0 (fma C (* A -4.0) (* B B)))
                            (t_1 (- (* B B) (* 4.0 (* A C))))
                            (t_2 (sqrt (+ C (+ A (hypot B (- A C))))))
                            (t_3 (/ (* t_2 (- (sqrt (* 2.0 (* F t_1))))) t_1)))
                       (if (<= B 1.75e-273)
                         t_3
                         (if (<= B 1.52e-220)
                           (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
                           (if (<= B 6.2e+62)
                             t_3
                             (if (<= B 6.4e+144)
                               (/ (* t_2 (* (sqrt 2.0) (* B (- (sqrt F))))) t_1)
                               (*
                                (* (sqrt F) (sqrt (+ A (hypot B A))))
                                (* (sqrt 2.0) (/ -1.0 B)))))))))
                    B = abs(B);
                    double code(double A, double B, double C, double F) {
                    	double t_0 = fma(C, (A * -4.0), (B * B));
                    	double t_1 = (B * B) - (4.0 * (A * C));
                    	double t_2 = sqrt((C + (A + hypot(B, (A - C)))));
                    	double t_3 = (t_2 * -sqrt((2.0 * (F * t_1)))) / t_1;
                    	double tmp;
                    	if (B <= 1.75e-273) {
                    		tmp = t_3;
                    	} else if (B <= 1.52e-220) {
                    		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
                    	} else if (B <= 6.2e+62) {
                    		tmp = t_3;
                    	} else if (B <= 6.4e+144) {
                    		tmp = (t_2 * (sqrt(2.0) * (B * -sqrt(F)))) / t_1;
                    	} else {
                    		tmp = (sqrt(F) * sqrt((A + hypot(B, A)))) * (sqrt(2.0) * (-1.0 / B));
                    	}
                    	return tmp;
                    }
                    
                    B = abs(B)
                    function code(A, B, C, F)
                    	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
                    	t_1 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                    	t_2 = sqrt(Float64(C + Float64(A + hypot(B, Float64(A - C)))))
                    	t_3 = Float64(Float64(t_2 * Float64(-sqrt(Float64(2.0 * Float64(F * t_1))))) / t_1)
                    	tmp = 0.0
                    	if (B <= 1.75e-273)
                    		tmp = t_3;
                    	elseif (B <= 1.52e-220)
                    		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
                    	elseif (B <= 6.2e+62)
                    		tmp = t_3;
                    	elseif (B <= 6.4e+144)
                    		tmp = Float64(Float64(t_2 * Float64(sqrt(2.0) * Float64(B * Float64(-sqrt(F))))) / t_1);
                    	else
                    		tmp = Float64(Float64(sqrt(F) * sqrt(Float64(A + hypot(B, A)))) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
                    	end
                    	return tmp
                    end
                    
                    NOTE: B should be positive before calling this function
                    code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 * (-N[Sqrt[N[(2.0 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[B, 1.75e-273], t$95$3, If[LessEqual[B, 1.52e-220], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 6.2e+62], t$95$3, If[LessEqual[B, 6.4e+144], N[(N[(t$95$2 * N[(N[Sqrt[2.0], $MachinePrecision] * N[(B * (-N[Sqrt[F], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
                    
                    \begin{array}{l}
                    B = |B|\\
                    \\
                    \begin{array}{l}
                    t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
                    t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                    t_2 := \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\\
                    t_3 := \frac{t_2 \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\
                    \mathbf{if}\;B \leq 1.75 \cdot 10^{-273}:\\
                    \;\;\;\;t_3\\
                    
                    \mathbf{elif}\;B \leq 1.52 \cdot 10^{-220}:\\
                    \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
                    
                    \mathbf{elif}\;B \leq 6.2 \cdot 10^{+62}:\\
                    \;\;\;\;t_3\\
                    
                    \mathbf{elif}\;B \leq 6.4 \cdot 10^{+144}:\\
                    \;\;\;\;\frac{t_2 \cdot \left(\sqrt{2} \cdot \left(B \cdot \left(-\sqrt{F}\right)\right)\right)}{t_1}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 4 regimes
                    2. if B < 1.74999999999999996e-273 or 1.52e-220 < B < 6.20000000000000029e62

                      1. Initial program 26.6%

                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      2. Step-by-step derivation
                        1. associate-*l*26.6%

                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                        2. unpow226.6%

                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                        3. +-commutative26.6%

                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                        4. unpow226.6%

                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                        5. associate-*l*26.6%

                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                        6. unpow226.6%

                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                      3. Simplified26.6%

                        \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                      4. Step-by-step derivation
                        1. sqrt-prod28.7%

                          \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        2. *-commutative28.7%

                          \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        3. *-commutative28.7%

                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        4. associate-+l+29.3%

                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        5. unpow229.3%

                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        6. hypot-udef36.7%

                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        7. associate-+r+35.7%

                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        8. +-commutative35.7%

                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        9. associate-+r+36.4%

                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      5. Applied egg-rr36.4%

                        \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                      if 1.74999999999999996e-273 < B < 1.52e-220

                      1. Initial program 21.2%

                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      2. Step-by-step derivation
                        1. Simplified43.2%

                          \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                        2. Taylor expanded in C around -inf 61.0%

                          \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

                        if 6.20000000000000029e62 < B < 6.4000000000000002e144

                        1. Initial program 37.3%

                          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                        2. Step-by-step derivation
                          1. associate-*l*37.3%

                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                          2. unpow237.3%

                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                          3. +-commutative37.3%

                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                          4. unpow237.3%

                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                          5. associate-*l*37.3%

                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                          6. unpow237.3%

                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                        3. Simplified37.3%

                          \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                        4. Step-by-step derivation
                          1. sqrt-prod58.2%

                            \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          2. *-commutative58.2%

                            \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          3. *-commutative58.2%

                            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          4. associate-+l+58.2%

                            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          5. unpow258.2%

                            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          6. hypot-udef72.0%

                            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          7. associate-+r+72.0%

                            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          8. +-commutative72.0%

                            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          9. associate-+r+72.1%

                            \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        5. Applied egg-rr72.1%

                          \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        6. Taylor expanded in B around inf 85.4%

                          \[\leadsto \frac{-\color{blue}{\left(\left(\sqrt{2} \cdot B\right) \cdot \sqrt{F}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        7. Step-by-step derivation
                          1. associate-*l*85.5%

                            \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        8. Simplified85.5%

                          \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                        if 6.4000000000000002e144 < B

                        1. Initial program 2.9%

                          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                        2. Step-by-step derivation
                          1. Simplified2.9%

                            \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                          2. Taylor expanded in C around 0 5.2%

                            \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                          3. Step-by-step derivation
                            1. mul-1-neg5.2%

                              \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                            2. unpow25.2%

                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                            3. unpow25.2%

                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                          4. Simplified5.2%

                            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                          5. Step-by-step derivation
                            1. sqrt-prod7.0%

                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                            2. hypot-udef84.5%

                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                          6. Applied egg-rr84.5%

                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                          7. Step-by-step derivation
                            1. div-inv84.5%

                              \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                          8. Applied egg-rr84.5%

                            \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                        3. Recombined 4 regimes into one program.
                        4. Final simplification46.6%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 1.75 \cdot 10^{-273}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 1.52 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 6.2 \cdot 10^{+62}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 6.4 \cdot 10^{+144}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\sqrt{2} \cdot \left(B \cdot \left(-\sqrt{F}\right)\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

                        Alternative 7: 52.6% accurate, 1.5× speedup?

                        \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_2 := \frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\ \mathbf{if}\;B \leq 3.8 \cdot 10^{-272}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;B \leq 1.52 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 5.5 \cdot 10^{+56}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
                        NOTE: B should be positive before calling this function
                        (FPCore (A B C F)
                         :precision binary64
                         (let* ((t_0 (fma C (* A -4.0) (* B B)))
                                (t_1 (- (* B B) (* 4.0 (* A C))))
                                (t_2
                                 (/
                                  (* (sqrt (+ C (+ A (hypot B (- A C))))) (- (sqrt (* 2.0 (* F t_1)))))
                                  t_1)))
                           (if (<= B 3.8e-272)
                             t_2
                             (if (<= B 1.52e-220)
                               (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
                               (if (<= B 5.5e+56)
                                 t_2
                                 (*
                                  (* (sqrt F) (sqrt (+ A (hypot B A))))
                                  (* (sqrt 2.0) (/ -1.0 B))))))))
                        B = abs(B);
                        double code(double A, double B, double C, double F) {
                        	double t_0 = fma(C, (A * -4.0), (B * B));
                        	double t_1 = (B * B) - (4.0 * (A * C));
                        	double t_2 = (sqrt((C + (A + hypot(B, (A - C))))) * -sqrt((2.0 * (F * t_1)))) / t_1;
                        	double tmp;
                        	if (B <= 3.8e-272) {
                        		tmp = t_2;
                        	} else if (B <= 1.52e-220) {
                        		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
                        	} else if (B <= 5.5e+56) {
                        		tmp = t_2;
                        	} else {
                        		tmp = (sqrt(F) * sqrt((A + hypot(B, A)))) * (sqrt(2.0) * (-1.0 / B));
                        	}
                        	return tmp;
                        }
                        
                        B = abs(B)
                        function code(A, B, C, F)
                        	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
                        	t_1 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                        	t_2 = Float64(Float64(sqrt(Float64(C + Float64(A + hypot(B, Float64(A - C))))) * Float64(-sqrt(Float64(2.0 * Float64(F * t_1))))) / t_1)
                        	tmp = 0.0
                        	if (B <= 3.8e-272)
                        		tmp = t_2;
                        	elseif (B <= 1.52e-220)
                        		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
                        	elseif (B <= 5.5e+56)
                        		tmp = t_2;
                        	else
                        		tmp = Float64(Float64(sqrt(F) * sqrt(Float64(A + hypot(B, A)))) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
                        	end
                        	return tmp
                        end
                        
                        NOTE: B should be positive before calling this function
                        code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[Sqrt[N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[B, 3.8e-272], t$95$2, If[LessEqual[B, 1.52e-220], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 5.5e+56], t$95$2, N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
                        
                        \begin{array}{l}
                        B = |B|\\
                        \\
                        \begin{array}{l}
                        t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
                        t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                        t_2 := \frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\
                        \mathbf{if}\;B \leq 3.8 \cdot 10^{-272}:\\
                        \;\;\;\;t_2\\
                        
                        \mathbf{elif}\;B \leq 1.52 \cdot 10^{-220}:\\
                        \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
                        
                        \mathbf{elif}\;B \leq 5.5 \cdot 10^{+56}:\\
                        \;\;\;\;t_2\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if B < 3.7999999999999997e-272 or 1.52e-220 < B < 5.5000000000000002e56

                          1. Initial program 26.2%

                            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                          2. Step-by-step derivation
                            1. associate-*l*26.2%

                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                            2. unpow226.2%

                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                            3. +-commutative26.2%

                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                            4. unpow226.2%

                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                            5. associate-*l*26.2%

                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                            6. unpow226.2%

                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                          3. Simplified26.2%

                            \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                          4. Step-by-step derivation
                            1. sqrt-prod28.4%

                              \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            2. *-commutative28.4%

                              \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            3. *-commutative28.4%

                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            4. associate-+l+29.0%

                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            5. unpow229.0%

                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            6. hypot-udef36.4%

                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            7. associate-+r+35.4%

                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            8. +-commutative35.4%

                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            9. associate-+r+36.1%

                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          5. Applied egg-rr36.1%

                            \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                          if 3.7999999999999997e-272 < B < 1.52e-220

                          1. Initial program 21.2%

                            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                          2. Step-by-step derivation
                            1. Simplified43.2%

                              \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                            2. Taylor expanded in C around -inf 61.0%

                              \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

                            if 5.5000000000000002e56 < B

                            1. Initial program 14.5%

                              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                            2. Step-by-step derivation
                              1. Simplified14.5%

                                \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                              2. Taylor expanded in C around 0 22.2%

                                \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                              3. Step-by-step derivation
                                1. mul-1-neg22.2%

                                  \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                2. unpow222.2%

                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                3. unpow222.2%

                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                              4. Simplified22.2%

                                \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                              5. Step-by-step derivation
                                1. sqrt-prod25.4%

                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                2. hypot-udef79.7%

                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                              6. Applied egg-rr79.7%

                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                              7. Step-by-step derivation
                                1. div-inv79.7%

                                  \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                              8. Applied egg-rr79.7%

                                \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                            3. Recombined 3 regimes into one program.
                            4. Final simplification45.6%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 3.8 \cdot 10^{-272}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 1.52 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 5.5 \cdot 10^{+56}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

                            Alternative 8: 52.6% accurate, 1.5× speedup?

                            \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_2 := \frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\ \mathbf{if}\;B \leq 4.8 \cdot 10^{-272}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;B \leq 8.5 \cdot 10^{-221}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 8 \cdot 10^{+56}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \frac{-\sqrt{2}}{B}\\ \end{array} \end{array} \]
                            NOTE: B should be positive before calling this function
                            (FPCore (A B C F)
                             :precision binary64
                             (let* ((t_0 (fma C (* A -4.0) (* B B)))
                                    (t_1 (- (* B B) (* 4.0 (* A C))))
                                    (t_2
                                     (/
                                      (* (sqrt (+ C (+ A (hypot B (- A C))))) (- (sqrt (* 2.0 (* F t_1)))))
                                      t_1)))
                               (if (<= B 4.8e-272)
                                 t_2
                                 (if (<= B 8.5e-221)
                                   (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
                                   (if (<= B 8e+56)
                                     t_2
                                     (* (* (sqrt F) (sqrt (+ A (hypot B A)))) (/ (- (sqrt 2.0)) B)))))))
                            B = abs(B);
                            double code(double A, double B, double C, double F) {
                            	double t_0 = fma(C, (A * -4.0), (B * B));
                            	double t_1 = (B * B) - (4.0 * (A * C));
                            	double t_2 = (sqrt((C + (A + hypot(B, (A - C))))) * -sqrt((2.0 * (F * t_1)))) / t_1;
                            	double tmp;
                            	if (B <= 4.8e-272) {
                            		tmp = t_2;
                            	} else if (B <= 8.5e-221) {
                            		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
                            	} else if (B <= 8e+56) {
                            		tmp = t_2;
                            	} else {
                            		tmp = (sqrt(F) * sqrt((A + hypot(B, A)))) * (-sqrt(2.0) / B);
                            	}
                            	return tmp;
                            }
                            
                            B = abs(B)
                            function code(A, B, C, F)
                            	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
                            	t_1 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                            	t_2 = Float64(Float64(sqrt(Float64(C + Float64(A + hypot(B, Float64(A - C))))) * Float64(-sqrt(Float64(2.0 * Float64(F * t_1))))) / t_1)
                            	tmp = 0.0
                            	if (B <= 4.8e-272)
                            		tmp = t_2;
                            	elseif (B <= 8.5e-221)
                            		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
                            	elseif (B <= 8e+56)
                            		tmp = t_2;
                            	else
                            		tmp = Float64(Float64(sqrt(F) * sqrt(Float64(A + hypot(B, A)))) * Float64(Float64(-sqrt(2.0)) / B));
                            	end
                            	return tmp
                            end
                            
                            NOTE: B should be positive before calling this function
                            code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[Sqrt[N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[B, 4.8e-272], t$95$2, If[LessEqual[B, 8.5e-221], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 8e+56], t$95$2, N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[((-N[Sqrt[2.0], $MachinePrecision]) / B), $MachinePrecision]), $MachinePrecision]]]]]]]
                            
                            \begin{array}{l}
                            B = |B|\\
                            \\
                            \begin{array}{l}
                            t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
                            t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                            t_2 := \frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\
                            \mathbf{if}\;B \leq 4.8 \cdot 10^{-272}:\\
                            \;\;\;\;t_2\\
                            
                            \mathbf{elif}\;B \leq 8.5 \cdot 10^{-221}:\\
                            \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
                            
                            \mathbf{elif}\;B \leq 8 \cdot 10^{+56}:\\
                            \;\;\;\;t_2\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \frac{-\sqrt{2}}{B}\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if B < 4.7999999999999998e-272 or 8.49999999999999984e-221 < B < 8.00000000000000074e56

                              1. Initial program 26.2%

                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                              2. Step-by-step derivation
                                1. associate-*l*26.2%

                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                2. unpow226.2%

                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                3. +-commutative26.2%

                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                4. unpow226.2%

                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                5. associate-*l*26.2%

                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                6. unpow226.2%

                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                              3. Simplified26.2%

                                \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                              4. Step-by-step derivation
                                1. sqrt-prod28.4%

                                  \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                2. *-commutative28.4%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                3. *-commutative28.4%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                4. associate-+l+29.0%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                5. unpow229.0%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                6. hypot-udef36.4%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                7. associate-+r+35.4%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                8. +-commutative35.4%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                9. associate-+r+36.1%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                              5. Applied egg-rr36.1%

                                \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                              if 4.7999999999999998e-272 < B < 8.49999999999999984e-221

                              1. Initial program 21.2%

                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                              2. Step-by-step derivation
                                1. Simplified43.2%

                                  \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                2. Taylor expanded in C around -inf 61.0%

                                  \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

                                if 8.00000000000000074e56 < B

                                1. Initial program 14.5%

                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                2. Step-by-step derivation
                                  1. Simplified14.5%

                                    \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                  2. Taylor expanded in C around 0 22.2%

                                    \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                  3. Step-by-step derivation
                                    1. mul-1-neg22.2%

                                      \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                    2. unpow222.2%

                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                    3. unpow222.2%

                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                  4. Simplified22.2%

                                    \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                  5. Step-by-step derivation
                                    1. sqrt-prod25.4%

                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                    2. hypot-udef79.7%

                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                  6. Applied egg-rr79.7%

                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                3. Recombined 3 regimes into one program.
                                4. Final simplification45.6%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 4.8 \cdot 10^{-272}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 8.5 \cdot 10^{-221}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 8 \cdot 10^{+56}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{A + \mathsf{hypot}\left(B, A\right)}\right) \cdot \frac{-\sqrt{2}}{B}\\ \end{array} \]

                                Alternative 9: 50.1% accurate, 1.9× speedup?

                                \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_2 := \frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\ \mathbf{if}\;B \leq 5.6 \cdot 10^{-272}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;B \leq 6.6 \cdot 10^{-221}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 7.2 \cdot 10^{+56}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
                                NOTE: B should be positive before calling this function
                                (FPCore (A B C F)
                                 :precision binary64
                                 (let* ((t_0 (fma C (* A -4.0) (* B B)))
                                        (t_1 (- (* B B) (* 4.0 (* A C))))
                                        (t_2
                                         (/
                                          (* (sqrt (+ C (+ A (hypot B (- A C))))) (- (sqrt (* 2.0 (* F t_1)))))
                                          t_1)))
                                   (if (<= B 5.6e-272)
                                     t_2
                                     (if (<= B 6.6e-221)
                                       (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
                                       (if (<= B 7.2e+56)
                                         t_2
                                         (* (* (sqrt F) (sqrt B)) (* (sqrt 2.0) (/ -1.0 B))))))))
                                B = abs(B);
                                double code(double A, double B, double C, double F) {
                                	double t_0 = fma(C, (A * -4.0), (B * B));
                                	double t_1 = (B * B) - (4.0 * (A * C));
                                	double t_2 = (sqrt((C + (A + hypot(B, (A - C))))) * -sqrt((2.0 * (F * t_1)))) / t_1;
                                	double tmp;
                                	if (B <= 5.6e-272) {
                                		tmp = t_2;
                                	} else if (B <= 6.6e-221) {
                                		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
                                	} else if (B <= 7.2e+56) {
                                		tmp = t_2;
                                	} else {
                                		tmp = (sqrt(F) * sqrt(B)) * (sqrt(2.0) * (-1.0 / B));
                                	}
                                	return tmp;
                                }
                                
                                B = abs(B)
                                function code(A, B, C, F)
                                	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
                                	t_1 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                	t_2 = Float64(Float64(sqrt(Float64(C + Float64(A + hypot(B, Float64(A - C))))) * Float64(-sqrt(Float64(2.0 * Float64(F * t_1))))) / t_1)
                                	tmp = 0.0
                                	if (B <= 5.6e-272)
                                		tmp = t_2;
                                	elseif (B <= 6.6e-221)
                                		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
                                	elseif (B <= 7.2e+56)
                                		tmp = t_2;
                                	else
                                		tmp = Float64(Float64(sqrt(F) * sqrt(B)) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
                                	end
                                	return tmp
                                end
                                
                                NOTE: B should be positive before calling this function
                                code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[Sqrt[N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[B, 5.6e-272], t$95$2, If[LessEqual[B, 6.6e-221], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 7.2e+56], t$95$2, N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[B], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
                                
                                \begin{array}{l}
                                B = |B|\\
                                \\
                                \begin{array}{l}
                                t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
                                t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                t_2 := \frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\
                                \mathbf{if}\;B \leq 5.6 \cdot 10^{-272}:\\
                                \;\;\;\;t_2\\
                                
                                \mathbf{elif}\;B \leq 6.6 \cdot 10^{-221}:\\
                                \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
                                
                                \mathbf{elif}\;B \leq 7.2 \cdot 10^{+56}:\\
                                \;\;\;\;t_2\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if B < 5.59999999999999987e-272 or 6.59999999999999979e-221 < B < 7.19999999999999996e56

                                  1. Initial program 26.2%

                                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                  2. Step-by-step derivation
                                    1. associate-*l*26.2%

                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                    2. unpow226.2%

                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                    3. +-commutative26.2%

                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                    4. unpow226.2%

                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                    5. associate-*l*26.2%

                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                    6. unpow226.2%

                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                  3. Simplified26.2%

                                    \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                  4. Step-by-step derivation
                                    1. sqrt-prod28.4%

                                      \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    2. *-commutative28.4%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    3. *-commutative28.4%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    4. associate-+l+29.0%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    5. unpow229.0%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    6. hypot-udef36.4%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    7. associate-+r+35.4%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    8. +-commutative35.4%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    9. associate-+r+36.1%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                  5. Applied egg-rr36.1%

                                    \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                  if 5.59999999999999987e-272 < B < 6.59999999999999979e-221

                                  1. Initial program 21.2%

                                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                  2. Step-by-step derivation
                                    1. Simplified43.2%

                                      \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                    2. Taylor expanded in C around -inf 61.0%

                                      \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

                                    if 7.19999999999999996e56 < B

                                    1. Initial program 14.5%

                                      \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                    2. Step-by-step derivation
                                      1. Simplified14.5%

                                        \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                      2. Taylor expanded in C around 0 22.2%

                                        \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                      3. Step-by-step derivation
                                        1. mul-1-neg22.2%

                                          \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                        2. unpow222.2%

                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                        3. unpow222.2%

                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                      4. Simplified22.2%

                                        \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                      5. Step-by-step derivation
                                        1. sqrt-prod25.4%

                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                        2. hypot-udef79.7%

                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                      6. Applied egg-rr79.7%

                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                      7. Step-by-step derivation
                                        1. div-inv79.7%

                                          \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                                      8. Applied egg-rr79.7%

                                        \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                                      9. Taylor expanded in A around 0 78.0%

                                        \[\leadsto -\left(\sqrt{2} \cdot \frac{1}{B}\right) \cdot \left(\sqrt{\color{blue}{B}} \cdot \sqrt{F}\right) \]
                                    3. Recombined 3 regimes into one program.
                                    4. Final simplification45.2%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 5.6 \cdot 10^{-272}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 6.6 \cdot 10^{-221}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 7.2 \cdot 10^{+56}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

                                    Alternative 10: 46.7% accurate, 1.9× speedup?

                                    \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_2 := C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\\ \mathbf{if}\;B \leq 2.52 \cdot 10^{-272}:\\ \;\;\;\;\frac{\sqrt{t_2} \cdot \left(-\sqrt{2 \cdot \left(-4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)}\right)}{t_1}\\ \mathbf{elif}\;B \leq 6.2 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 6.2 \cdot 10^{+78}:\\ \;\;\;\;\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot t_1\right)\right)} \cdot \frac{-1}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
                                    NOTE: B should be positive before calling this function
                                    (FPCore (A B C F)
                                     :precision binary64
                                     (let* ((t_0 (fma C (* A -4.0) (* B B)))
                                            (t_1 (- (* B B) (* 4.0 (* A C))))
                                            (t_2 (+ C (+ A (hypot B (- A C))))))
                                       (if (<= B 2.52e-272)
                                         (/ (* (sqrt t_2) (- (sqrt (* 2.0 (* -4.0 (* A (* C F))))))) t_1)
                                         (if (<= B 6.2e-220)
                                           (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
                                           (if (<= B 6.2e+78)
                                             (* (sqrt (* 2.0 (* t_2 (* F t_1)))) (/ -1.0 t_1))
                                             (* (* (sqrt F) (sqrt B)) (* (sqrt 2.0) (/ -1.0 B))))))))
                                    B = abs(B);
                                    double code(double A, double B, double C, double F) {
                                    	double t_0 = fma(C, (A * -4.0), (B * B));
                                    	double t_1 = (B * B) - (4.0 * (A * C));
                                    	double t_2 = C + (A + hypot(B, (A - C)));
                                    	double tmp;
                                    	if (B <= 2.52e-272) {
                                    		tmp = (sqrt(t_2) * -sqrt((2.0 * (-4.0 * (A * (C * F)))))) / t_1;
                                    	} else if (B <= 6.2e-220) {
                                    		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
                                    	} else if (B <= 6.2e+78) {
                                    		tmp = sqrt((2.0 * (t_2 * (F * t_1)))) * (-1.0 / t_1);
                                    	} else {
                                    		tmp = (sqrt(F) * sqrt(B)) * (sqrt(2.0) * (-1.0 / B));
                                    	}
                                    	return tmp;
                                    }
                                    
                                    B = abs(B)
                                    function code(A, B, C, F)
                                    	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
                                    	t_1 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                    	t_2 = Float64(C + Float64(A + hypot(B, Float64(A - C))))
                                    	tmp = 0.0
                                    	if (B <= 2.52e-272)
                                    		tmp = Float64(Float64(sqrt(t_2) * Float64(-sqrt(Float64(2.0 * Float64(-4.0 * Float64(A * Float64(C * F))))))) / t_1);
                                    	elseif (B <= 6.2e-220)
                                    		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
                                    	elseif (B <= 6.2e+78)
                                    		tmp = Float64(sqrt(Float64(2.0 * Float64(t_2 * Float64(F * t_1)))) * Float64(-1.0 / t_1));
                                    	else
                                    		tmp = Float64(Float64(sqrt(F) * sqrt(B)) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
                                    	end
                                    	return tmp
                                    end
                                    
                                    NOTE: B should be positive before calling this function
                                    code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 2.52e-272], N[(N[(N[Sqrt[t$95$2], $MachinePrecision] * (-N[Sqrt[N[(2.0 * N[(-4.0 * N[(A * N[(C * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[B, 6.2e-220], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 6.2e+78], N[(N[Sqrt[N[(2.0 * N[(t$95$2 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[B], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
                                    
                                    \begin{array}{l}
                                    B = |B|\\
                                    \\
                                    \begin{array}{l}
                                    t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
                                    t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                    t_2 := C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\\
                                    \mathbf{if}\;B \leq 2.52 \cdot 10^{-272}:\\
                                    \;\;\;\;\frac{\sqrt{t_2} \cdot \left(-\sqrt{2 \cdot \left(-4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)}\right)}{t_1}\\
                                    
                                    \mathbf{elif}\;B \leq 6.2 \cdot 10^{-220}:\\
                                    \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
                                    
                                    \mathbf{elif}\;B \leq 6.2 \cdot 10^{+78}:\\
                                    \;\;\;\;\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot t_1\right)\right)} \cdot \frac{-1}{t_1}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 4 regimes
                                    2. if B < 2.51999999999999991e-272

                                      1. Initial program 20.4%

                                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                      2. Step-by-step derivation
                                        1. associate-*l*20.4%

                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                        2. unpow220.4%

                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                        3. +-commutative20.4%

                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                        4. unpow220.4%

                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                        5. associate-*l*20.4%

                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                        6. unpow220.4%

                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                      3. Simplified20.4%

                                        \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                      4. Step-by-step derivation
                                        1. sqrt-prod22.9%

                                          \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                        2. *-commutative22.9%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                        3. *-commutative22.9%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                        4. associate-+l+23.7%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                        5. unpow223.7%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                        6. hypot-udef29.6%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                        7. associate-+r+28.4%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                        8. +-commutative28.4%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                        9. associate-+r+28.8%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      5. Applied egg-rr28.8%

                                        \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      6. Taylor expanded in B around 0 15.6%

                                        \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(-4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)}} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                      if 2.51999999999999991e-272 < B < 6.20000000000000023e-220

                                      1. Initial program 21.2%

                                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                      2. Step-by-step derivation
                                        1. Simplified43.2%

                                          \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                        2. Taylor expanded in C around -inf 61.0%

                                          \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

                                        if 6.20000000000000023e-220 < B < 6.2e78

                                        1. Initial program 44.9%

                                          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                        2. Step-by-step derivation
                                          1. associate-*l*44.9%

                                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                          2. unpow244.9%

                                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                          3. +-commutative44.9%

                                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                          4. unpow244.9%

                                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                          5. associate-*l*44.9%

                                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                          6. unpow244.9%

                                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                        3. Simplified44.9%

                                          \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                        4. Step-by-step derivation
                                          1. div-inv44.9%

                                            \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                        5. Applied egg-rr53.9%

                                          \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(C \cdot A\right)}} \]

                                        if 6.2e78 < B

                                        1. Initial program 9.1%

                                          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                        2. Step-by-step derivation
                                          1. Simplified9.1%

                                            \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                          2. Taylor expanded in C around 0 17.3%

                                            \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                          3. Step-by-step derivation
                                            1. mul-1-neg17.3%

                                              \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                            2. unpow217.3%

                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                            3. unpow217.3%

                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                          4. Simplified17.3%

                                            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                          5. Step-by-step derivation
                                            1. sqrt-prod20.6%

                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                            2. hypot-udef78.4%

                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                          6. Applied egg-rr78.4%

                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                          7. Step-by-step derivation
                                            1. div-inv78.4%

                                              \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                                          8. Applied egg-rr78.4%

                                            \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                                          9. Taylor expanded in A around 0 76.7%

                                            \[\leadsto -\left(\sqrt{2} \cdot \frac{1}{B}\right) \cdot \left(\sqrt{\color{blue}{B}} \cdot \sqrt{F}\right) \]
                                        3. Recombined 4 regimes into one program.
                                        4. Final simplification37.0%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 2.52 \cdot 10^{-272}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \left(-4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 6.2 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 6.2 \cdot 10^{+78}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

                                        Alternative 11: 46.6% accurate, 1.9× speedup?

                                        \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;B \leq 3.85 \cdot 10^{-274}:\\ \;\;\;\;\frac{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(-\sqrt{2 \cdot C}\right)}{t_1}\\ \mathbf{elif}\;B \leq 1.1 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 2.85 \cdot 10^{+79}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_1\right)\right)} \cdot \frac{-1}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
                                        NOTE: B should be positive before calling this function
                                        (FPCore (A B C F)
                                         :precision binary64
                                         (let* ((t_0 (fma C (* A -4.0) (* B B))) (t_1 (- (* B B) (* 4.0 (* A C)))))
                                           (if (<= B 3.85e-274)
                                             (/
                                              (*
                                               (* (sqrt 2.0) (sqrt (* F (+ (* B B) (* -4.0 (* A C))))))
                                               (- (sqrt (* 2.0 C))))
                                              t_1)
                                             (if (<= B 1.1e-220)
                                               (/ (- (sqrt (* 2.0 (* (* F t_0) (* 2.0 A))))) t_0)
                                               (if (<= B 2.85e+79)
                                                 (*
                                                  (sqrt (* 2.0 (* (+ C (+ A (hypot B (- A C)))) (* F t_1))))
                                                  (/ -1.0 t_1))
                                                 (* (* (sqrt F) (sqrt B)) (* (sqrt 2.0) (/ -1.0 B))))))))
                                        B = abs(B);
                                        double code(double A, double B, double C, double F) {
                                        	double t_0 = fma(C, (A * -4.0), (B * B));
                                        	double t_1 = (B * B) - (4.0 * (A * C));
                                        	double tmp;
                                        	if (B <= 3.85e-274) {
                                        		tmp = ((sqrt(2.0) * sqrt((F * ((B * B) + (-4.0 * (A * C)))))) * -sqrt((2.0 * C))) / t_1;
                                        	} else if (B <= 1.1e-220) {
                                        		tmp = -sqrt((2.0 * ((F * t_0) * (2.0 * A)))) / t_0;
                                        	} else if (B <= 2.85e+79) {
                                        		tmp = sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_1)))) * (-1.0 / t_1);
                                        	} else {
                                        		tmp = (sqrt(F) * sqrt(B)) * (sqrt(2.0) * (-1.0 / B));
                                        	}
                                        	return tmp;
                                        }
                                        
                                        B = abs(B)
                                        function code(A, B, C, F)
                                        	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
                                        	t_1 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                        	tmp = 0.0
                                        	if (B <= 3.85e-274)
                                        		tmp = Float64(Float64(Float64(sqrt(2.0) * sqrt(Float64(F * Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))))) * Float64(-sqrt(Float64(2.0 * C)))) / t_1);
                                        	elseif (B <= 1.1e-220)
                                        		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(2.0 * A))))) / t_0);
                                        	elseif (B <= 2.85e+79)
                                        		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(C + Float64(A + hypot(B, Float64(A - C)))) * Float64(F * t_1)))) * Float64(-1.0 / t_1));
                                        	else
                                        		tmp = Float64(Float64(sqrt(F) * sqrt(B)) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
                                        	end
                                        	return tmp
                                        end
                                        
                                        NOTE: B should be positive before calling this function
                                        code[A_, B_, C_, F_] := Block[{t$95$0 = N[(C * N[(A * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 3.85e-274], N[(N[(N[(N[Sqrt[2.0], $MachinePrecision] * N[Sqrt[N[(F * N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * (-N[Sqrt[N[(2.0 * C), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[B, 1.1e-220], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(2.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[B, 2.85e+79], N[(N[Sqrt[N[(2.0 * N[(N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[B], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
                                        
                                        \begin{array}{l}
                                        B = |B|\\
                                        \\
                                        \begin{array}{l}
                                        t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
                                        t_1 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                        \mathbf{if}\;B \leq 3.85 \cdot 10^{-274}:\\
                                        \;\;\;\;\frac{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(-\sqrt{2 \cdot C}\right)}{t_1}\\
                                        
                                        \mathbf{elif}\;B \leq 1.1 \cdot 10^{-220}:\\
                                        \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0}\\
                                        
                                        \mathbf{elif}\;B \leq 2.85 \cdot 10^{+79}:\\
                                        \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_1\right)\right)} \cdot \frac{-1}{t_1}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 4 regimes
                                        2. if B < 3.84999999999999985e-274

                                          1. Initial program 20.4%

                                            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                          2. Step-by-step derivation
                                            1. associate-*l*20.4%

                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                            2. unpow220.4%

                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                            3. +-commutative20.4%

                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                            4. unpow220.4%

                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                            5. associate-*l*20.4%

                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                            6. unpow220.4%

                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                          3. Simplified20.4%

                                            \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                          4. Step-by-step derivation
                                            1. sqrt-prod22.9%

                                              \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            2. *-commutative22.9%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            3. *-commutative22.9%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            4. associate-+l+23.7%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            5. unpow223.7%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            6. hypot-udef29.6%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            7. associate-+r+28.4%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            8. +-commutative28.4%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            9. associate-+r+28.8%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                          5. Applied egg-rr28.8%

                                            \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                          6. Step-by-step derivation
                                            1. sqrt-prod28.8%

                                              \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            2. cancel-sign-sub-inv28.8%

                                              \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(C \cdot A\right)\right)}}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            3. *-commutative28.8%

                                              \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \left(-4\right) \cdot \color{blue}{\left(A \cdot C\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            4. metadata-eval28.8%

                                              \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                            5. *-commutative28.8%

                                              \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)}\right) \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                          7. Applied egg-rr28.8%

                                            \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                          8. Taylor expanded in C around inf 11.1%

                                            \[\leadsto \frac{-\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)}\right) \cdot \sqrt{\color{blue}{2 \cdot C}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                          if 3.84999999999999985e-274 < B < 1.09999999999999993e-220

                                          1. Initial program 21.2%

                                            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                          2. Step-by-step derivation
                                            1. Simplified43.2%

                                              \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                            2. Taylor expanded in C around -inf 61.0%

                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \color{blue}{\left(2 \cdot A\right)}\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)} \]

                                            if 1.09999999999999993e-220 < B < 2.8499999999999998e79

                                            1. Initial program 44.9%

                                              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                            2. Step-by-step derivation
                                              1. associate-*l*44.9%

                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                              2. unpow244.9%

                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                              3. +-commutative44.9%

                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                              4. unpow244.9%

                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                              5. associate-*l*44.9%

                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                              6. unpow244.9%

                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                            3. Simplified44.9%

                                              \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                            4. Step-by-step derivation
                                              1. div-inv44.9%

                                                \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                            5. Applied egg-rr53.9%

                                              \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(C \cdot A\right)}} \]

                                            if 2.8499999999999998e79 < B

                                            1. Initial program 9.1%

                                              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                            2. Step-by-step derivation
                                              1. Simplified9.1%

                                                \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                              2. Taylor expanded in C around 0 17.3%

                                                \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                              3. Step-by-step derivation
                                                1. mul-1-neg17.3%

                                                  \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                2. unpow217.3%

                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                3. unpow217.3%

                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                              4. Simplified17.3%

                                                \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                              5. Step-by-step derivation
                                                1. sqrt-prod20.6%

                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                2. hypot-udef78.4%

                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                              6. Applied egg-rr78.4%

                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                              7. Step-by-step derivation
                                                1. div-inv78.4%

                                                  \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                                              8. Applied egg-rr78.4%

                                                \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                                              9. Taylor expanded in A around 0 76.7%

                                                \[\leadsto -\left(\sqrt{2} \cdot \frac{1}{B}\right) \cdot \left(\sqrt{\color{blue}{B}} \cdot \sqrt{F}\right) \]
                                            3. Recombined 4 regimes into one program.
                                            4. Final simplification34.4%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 3.85 \cdot 10^{-274}:\\ \;\;\;\;\frac{\left(\sqrt{2} \cdot \sqrt{F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(-\sqrt{2 \cdot C}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 1.1 \cdot 10^{-220}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(2 \cdot A\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 2.85 \cdot 10^{+79}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

                                            Alternative 12: 46.9% accurate, 2.0× speedup?

                                            \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;B \leq 6.7 \cdot 10^{+80}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_0\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \end{array} \]
                                            NOTE: B should be positive before calling this function
                                            (FPCore (A B C F)
                                             :precision binary64
                                             (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                                               (if (<= B 6.7e+80)
                                                 (*
                                                  (sqrt (* 2.0 (* (+ C (+ A (hypot B (- A C)))) (* F t_0))))
                                                  (/ -1.0 t_0))
                                                 (* (* (sqrt F) (sqrt B)) (* (sqrt 2.0) (/ -1.0 B))))))
                                            B = abs(B);
                                            double code(double A, double B, double C, double F) {
                                            	double t_0 = (B * B) - (4.0 * (A * C));
                                            	double tmp;
                                            	if (B <= 6.7e+80) {
                                            		tmp = sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                            	} else {
                                            		tmp = (sqrt(F) * sqrt(B)) * (sqrt(2.0) * (-1.0 / B));
                                            	}
                                            	return tmp;
                                            }
                                            
                                            B = Math.abs(B);
                                            public static double code(double A, double B, double C, double F) {
                                            	double t_0 = (B * B) - (4.0 * (A * C));
                                            	double tmp;
                                            	if (B <= 6.7e+80) {
                                            		tmp = Math.sqrt((2.0 * ((C + (A + Math.hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                            	} else {
                                            		tmp = (Math.sqrt(F) * Math.sqrt(B)) * (Math.sqrt(2.0) * (-1.0 / B));
                                            	}
                                            	return tmp;
                                            }
                                            
                                            B = abs(B)
                                            def code(A, B, C, F):
                                            	t_0 = (B * B) - (4.0 * (A * C))
                                            	tmp = 0
                                            	if B <= 6.7e+80:
                                            		tmp = math.sqrt((2.0 * ((C + (A + math.hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0)
                                            	else:
                                            		tmp = (math.sqrt(F) * math.sqrt(B)) * (math.sqrt(2.0) * (-1.0 / B))
                                            	return tmp
                                            
                                            B = abs(B)
                                            function code(A, B, C, F)
                                            	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                            	tmp = 0.0
                                            	if (B <= 6.7e+80)
                                            		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(C + Float64(A + hypot(B, Float64(A - C)))) * Float64(F * t_0)))) * Float64(-1.0 / t_0));
                                            	else
                                            		tmp = Float64(Float64(sqrt(F) * sqrt(B)) * Float64(sqrt(2.0) * Float64(-1.0 / B)));
                                            	end
                                            	return tmp
                                            end
                                            
                                            B = abs(B)
                                            function tmp_2 = code(A, B, C, F)
                                            	t_0 = (B * B) - (4.0 * (A * C));
                                            	tmp = 0.0;
                                            	if (B <= 6.7e+80)
                                            		tmp = sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                            	else
                                            		tmp = (sqrt(F) * sqrt(B)) * (sqrt(2.0) * (-1.0 / B));
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            NOTE: B should be positive before calling this function
                                            code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 6.7e+80], N[(N[Sqrt[N[(2.0 * N[(N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[F], $MachinePrecision] * N[Sqrt[B], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                            
                                            \begin{array}{l}
                                            B = |B|\\
                                            \\
                                            \begin{array}{l}
                                            t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                            \mathbf{if}\;B \leq 6.7 \cdot 10^{+80}:\\
                                            \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_0\right)\right)} \cdot \frac{-1}{t_0}\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if B < 6.69999999999999983e80

                                              1. Initial program 27.0%

                                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                              2. Step-by-step derivation
                                                1. associate-*l*27.0%

                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                2. unpow227.0%

                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                3. +-commutative27.0%

                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                4. unpow227.0%

                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                5. associate-*l*27.0%

                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                6. unpow227.0%

                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                              3. Simplified27.0%

                                                \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                              4. Step-by-step derivation
                                                1. div-inv27.1%

                                                  \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                              5. Applied egg-rr32.2%

                                                \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(C \cdot A\right)}} \]

                                              if 6.69999999999999983e80 < B

                                              1. Initial program 9.1%

                                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                              2. Step-by-step derivation
                                                1. Simplified9.1%

                                                  \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                2. Taylor expanded in C around 0 17.3%

                                                  \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                3. Step-by-step derivation
                                                  1. mul-1-neg17.3%

                                                    \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                  2. unpow217.3%

                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                  3. unpow217.3%

                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                4. Simplified17.3%

                                                  \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                5. Step-by-step derivation
                                                  1. sqrt-prod20.6%

                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                  2. hypot-udef78.4%

                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                6. Applied egg-rr78.4%

                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                7. Step-by-step derivation
                                                  1. div-inv78.4%

                                                    \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                                                8. Applied egg-rr78.4%

                                                  \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \frac{1}{B}\right)} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right) \]
                                                9. Taylor expanded in A around 0 76.7%

                                                  \[\leadsto -\left(\sqrt{2} \cdot \frac{1}{B}\right) \cdot \left(\sqrt{\color{blue}{B}} \cdot \sqrt{F}\right) \]
                                              3. Recombined 2 regimes into one program.
                                              4. Final simplification40.4%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 6.7 \cdot 10^{+80}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B}\right) \cdot \left(\sqrt{2} \cdot \frac{-1}{B}\right)\\ \end{array} \]

                                              Alternative 13: 47.0% accurate, 2.0× speedup?

                                              \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;B \leq 6.7 \cdot 10^{+78}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_0\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{F} \cdot \left(-\sqrt{B}\right)\right)\\ \end{array} \end{array} \]
                                              NOTE: B should be positive before calling this function
                                              (FPCore (A B C F)
                                               :precision binary64
                                               (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                                                 (if (<= B 6.7e+78)
                                                   (*
                                                    (sqrt (* 2.0 (* (+ C (+ A (hypot B (- A C)))) (* F t_0))))
                                                    (/ -1.0 t_0))
                                                   (* (/ (sqrt 2.0) B) (* (sqrt F) (- (sqrt B)))))))
                                              B = abs(B);
                                              double code(double A, double B, double C, double F) {
                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                              	double tmp;
                                              	if (B <= 6.7e+78) {
                                              		tmp = sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                              	} else {
                                              		tmp = (sqrt(2.0) / B) * (sqrt(F) * -sqrt(B));
                                              	}
                                              	return tmp;
                                              }
                                              
                                              B = Math.abs(B);
                                              public static double code(double A, double B, double C, double F) {
                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                              	double tmp;
                                              	if (B <= 6.7e+78) {
                                              		tmp = Math.sqrt((2.0 * ((C + (A + Math.hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                              	} else {
                                              		tmp = (Math.sqrt(2.0) / B) * (Math.sqrt(F) * -Math.sqrt(B));
                                              	}
                                              	return tmp;
                                              }
                                              
                                              B = abs(B)
                                              def code(A, B, C, F):
                                              	t_0 = (B * B) - (4.0 * (A * C))
                                              	tmp = 0
                                              	if B <= 6.7e+78:
                                              		tmp = math.sqrt((2.0 * ((C + (A + math.hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0)
                                              	else:
                                              		tmp = (math.sqrt(2.0) / B) * (math.sqrt(F) * -math.sqrt(B))
                                              	return tmp
                                              
                                              B = abs(B)
                                              function code(A, B, C, F)
                                              	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                              	tmp = 0.0
                                              	if (B <= 6.7e+78)
                                              		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(C + Float64(A + hypot(B, Float64(A - C)))) * Float64(F * t_0)))) * Float64(-1.0 / t_0));
                                              	else
                                              		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(sqrt(F) * Float64(-sqrt(B))));
                                              	end
                                              	return tmp
                                              end
                                              
                                              B = abs(B)
                                              function tmp_2 = code(A, B, C, F)
                                              	t_0 = (B * B) - (4.0 * (A * C));
                                              	tmp = 0.0;
                                              	if (B <= 6.7e+78)
                                              		tmp = sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                              	else
                                              		tmp = (sqrt(2.0) / B) * (sqrt(F) * -sqrt(B));
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              NOTE: B should be positive before calling this function
                                              code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 6.7e+78], N[(N[Sqrt[N[(2.0 * N[(N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * N[(N[Sqrt[F], $MachinePrecision] * (-N[Sqrt[B], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]]]
                                              
                                              \begin{array}{l}
                                              B = |B|\\
                                              \\
                                              \begin{array}{l}
                                              t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                              \mathbf{if}\;B \leq 6.7 \cdot 10^{+78}:\\
                                              \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_0\right)\right)} \cdot \frac{-1}{t_0}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{F} \cdot \left(-\sqrt{B}\right)\right)\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if B < 6.69999999999999967e78

                                                1. Initial program 27.0%

                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                2. Step-by-step derivation
                                                  1. associate-*l*27.0%

                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                  2. unpow227.0%

                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                  3. +-commutative27.0%

                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                  4. unpow227.0%

                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                  5. associate-*l*27.0%

                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                  6. unpow227.0%

                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                3. Simplified27.0%

                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                4. Step-by-step derivation
                                                  1. div-inv27.1%

                                                    \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                5. Applied egg-rr32.2%

                                                  \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(C \cdot A\right)}} \]

                                                if 6.69999999999999967e78 < B

                                                1. Initial program 9.1%

                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                2. Step-by-step derivation
                                                  1. Simplified9.1%

                                                    \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                  2. Taylor expanded in C around 0 17.3%

                                                    \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                  3. Step-by-step derivation
                                                    1. mul-1-neg17.3%

                                                      \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                    2. unpow217.3%

                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                    3. unpow217.3%

                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                  4. Simplified17.3%

                                                    \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                  5. Step-by-step derivation
                                                    1. sqrt-prod20.6%

                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                    2. hypot-udef78.4%

                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                  6. Applied egg-rr78.4%

                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                  7. Taylor expanded in A around 0 76.6%

                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{\color{blue}{B}} \cdot \sqrt{F}\right) \]
                                                3. Recombined 2 regimes into one program.
                                                4. Final simplification40.4%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 6.7 \cdot 10^{+78}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{F} \cdot \left(-\sqrt{B}\right)\right)\\ \end{array} \]

                                                Alternative 14: 41.5% accurate, 2.7× speedup?

                                                \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;F \leq 6 \cdot 10^{-291}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_0\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{elif}\;F \leq 0.15:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \end{array} \]
                                                NOTE: B should be positive before calling this function
                                                (FPCore (A B C F)
                                                 :precision binary64
                                                 (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                                                   (if (<= F 6e-291)
                                                     (*
                                                      (sqrt (* 2.0 (* (+ C (+ A (hypot B (- A C)))) (* F t_0))))
                                                      (/ -1.0 t_0))
                                                     (if (<= F 0.15)
                                                       (* (sqrt (* 2.0 (* F (+ A (hypot B A))))) (/ -1.0 B))
                                                       (* (sqrt 2.0) (- (sqrt (/ F B))))))))
                                                B = abs(B);
                                                double code(double A, double B, double C, double F) {
                                                	double t_0 = (B * B) - (4.0 * (A * C));
                                                	double tmp;
                                                	if (F <= 6e-291) {
                                                		tmp = sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                                	} else if (F <= 0.15) {
                                                		tmp = sqrt((2.0 * (F * (A + hypot(B, A))))) * (-1.0 / B);
                                                	} else {
                                                		tmp = sqrt(2.0) * -sqrt((F / B));
                                                	}
                                                	return tmp;
                                                }
                                                
                                                B = Math.abs(B);
                                                public static double code(double A, double B, double C, double F) {
                                                	double t_0 = (B * B) - (4.0 * (A * C));
                                                	double tmp;
                                                	if (F <= 6e-291) {
                                                		tmp = Math.sqrt((2.0 * ((C + (A + Math.hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                                	} else if (F <= 0.15) {
                                                		tmp = Math.sqrt((2.0 * (F * (A + Math.hypot(B, A))))) * (-1.0 / B);
                                                	} else {
                                                		tmp = Math.sqrt(2.0) * -Math.sqrt((F / B));
                                                	}
                                                	return tmp;
                                                }
                                                
                                                B = abs(B)
                                                def code(A, B, C, F):
                                                	t_0 = (B * B) - (4.0 * (A * C))
                                                	tmp = 0
                                                	if F <= 6e-291:
                                                		tmp = math.sqrt((2.0 * ((C + (A + math.hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0)
                                                	elif F <= 0.15:
                                                		tmp = math.sqrt((2.0 * (F * (A + math.hypot(B, A))))) * (-1.0 / B)
                                                	else:
                                                		tmp = math.sqrt(2.0) * -math.sqrt((F / B))
                                                	return tmp
                                                
                                                B = abs(B)
                                                function code(A, B, C, F)
                                                	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                                	tmp = 0.0
                                                	if (F <= 6e-291)
                                                		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(C + Float64(A + hypot(B, Float64(A - C)))) * Float64(F * t_0)))) * Float64(-1.0 / t_0));
                                                	elseif (F <= 0.15)
                                                		tmp = Float64(sqrt(Float64(2.0 * Float64(F * Float64(A + hypot(B, A))))) * Float64(-1.0 / B));
                                                	else
                                                		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
                                                	end
                                                	return tmp
                                                end
                                                
                                                B = abs(B)
                                                function tmp_2 = code(A, B, C, F)
                                                	t_0 = (B * B) - (4.0 * (A * C));
                                                	tmp = 0.0;
                                                	if (F <= 6e-291)
                                                		tmp = sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) * (-1.0 / t_0);
                                                	elseif (F <= 0.15)
                                                		tmp = sqrt((2.0 * (F * (A + hypot(B, A))))) * (-1.0 / B);
                                                	else
                                                		tmp = sqrt(2.0) * -sqrt((F / B));
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                NOTE: B should be positive before calling this function
                                                code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, 6e-291], N[(N[Sqrt[N[(2.0 * N[(N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.15], N[(N[Sqrt[N[(2.0 * N[(F * N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]
                                                
                                                \begin{array}{l}
                                                B = |B|\\
                                                \\
                                                \begin{array}{l}
                                                t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                                \mathbf{if}\;F \leq 6 \cdot 10^{-291}:\\
                                                \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_0\right)\right)} \cdot \frac{-1}{t_0}\\
                                                
                                                \mathbf{elif}\;F \leq 0.15:\\
                                                \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if F < 6.0000000000000001e-291

                                                  1. Initial program 49.0%

                                                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                  2. Step-by-step derivation
                                                    1. associate-*l*49.0%

                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                    2. unpow249.0%

                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                    3. +-commutative49.0%

                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                    4. unpow249.0%

                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                    5. associate-*l*49.0%

                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                    6. unpow249.0%

                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                  3. Simplified49.0%

                                                    \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                  4. Step-by-step derivation
                                                    1. div-inv49.2%

                                                      \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                  5. Applied egg-rr58.8%

                                                    \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(C \cdot A\right)}} \]

                                                  if 6.0000000000000001e-291 < F < 0.149999999999999994

                                                  1. Initial program 23.4%

                                                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                  2. Step-by-step derivation
                                                    1. Simplified28.0%

                                                      \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                    2. Taylor expanded in C around 0 14.8%

                                                      \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                    3. Step-by-step derivation
                                                      1. mul-1-neg14.8%

                                                        \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                      2. unpow214.8%

                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                      3. unpow214.8%

                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                    4. Simplified14.8%

                                                      \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                    5. Step-by-step derivation
                                                      1. sqrt-prod14.8%

                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                      2. hypot-udef24.5%

                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                    6. Applied egg-rr24.5%

                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                    7. Step-by-step derivation
                                                      1. associate-*l/24.5%

                                                        \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)}{B}} \]
                                                      2. sqrt-unprod24.5%

                                                        \[\leadsto -\frac{\sqrt{2} \cdot \color{blue}{\sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}}{B} \]
                                                    8. Applied egg-rr24.5%

                                                      \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}{B}} \]
                                                    9. Step-by-step derivation
                                                      1. div-inv24.5%

                                                        \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}\right) \cdot \frac{1}{B}} \]
                                                      2. sqrt-unprod24.6%

                                                        \[\leadsto -\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)}} \cdot \frac{1}{B} \]
                                                    10. Applied egg-rr24.6%

                                                      \[\leadsto -\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)} \cdot \frac{1}{B}} \]

                                                    if 0.149999999999999994 < F

                                                    1. Initial program 14.5%

                                                      \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                    2. Step-by-step derivation
                                                      1. Simplified16.3%

                                                        \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                      2. Taylor expanded in C around 0 7.8%

                                                        \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                      3. Step-by-step derivation
                                                        1. mul-1-neg7.8%

                                                          \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                        2. unpow27.8%

                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                        3. unpow27.8%

                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                      4. Simplified7.8%

                                                        \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                      5. Step-by-step derivation
                                                        1. sqrt-prod9.3%

                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                        2. hypot-udef27.0%

                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                      6. Applied egg-rr27.0%

                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                      7. Taylor expanded in A around 0 23.5%

                                                        \[\leadsto -\color{blue}{\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                                    3. Recombined 3 regimes into one program.
                                                    4. Final simplification29.5%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq 6 \cdot 10^{-291}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 0.15:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                                    Alternative 15: 41.5% accurate, 2.7× speedup?

                                                    \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;F \leq 3.15 \cdot 10^{-291}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_0\right)\right)}}{t_0}\\ \mathbf{elif}\;F \leq 0.125:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \end{array} \]
                                                    NOTE: B should be positive before calling this function
                                                    (FPCore (A B C F)
                                                     :precision binary64
                                                     (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                                                       (if (<= F 3.15e-291)
                                                         (/ (- (sqrt (* 2.0 (* (+ C (+ A (hypot B (- A C)))) (* F t_0))))) t_0)
                                                         (if (<= F 0.125)
                                                           (* (sqrt (* 2.0 (* F (+ A (hypot B A))))) (/ -1.0 B))
                                                           (* (sqrt 2.0) (- (sqrt (/ F B))))))))
                                                    B = abs(B);
                                                    double code(double A, double B, double C, double F) {
                                                    	double t_0 = (B * B) - (4.0 * (A * C));
                                                    	double tmp;
                                                    	if (F <= 3.15e-291) {
                                                    		tmp = -sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) / t_0;
                                                    	} else if (F <= 0.125) {
                                                    		tmp = sqrt((2.0 * (F * (A + hypot(B, A))))) * (-1.0 / B);
                                                    	} else {
                                                    		tmp = sqrt(2.0) * -sqrt((F / B));
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    B = Math.abs(B);
                                                    public static double code(double A, double B, double C, double F) {
                                                    	double t_0 = (B * B) - (4.0 * (A * C));
                                                    	double tmp;
                                                    	if (F <= 3.15e-291) {
                                                    		tmp = -Math.sqrt((2.0 * ((C + (A + Math.hypot(B, (A - C)))) * (F * t_0)))) / t_0;
                                                    	} else if (F <= 0.125) {
                                                    		tmp = Math.sqrt((2.0 * (F * (A + Math.hypot(B, A))))) * (-1.0 / B);
                                                    	} else {
                                                    		tmp = Math.sqrt(2.0) * -Math.sqrt((F / B));
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    B = abs(B)
                                                    def code(A, B, C, F):
                                                    	t_0 = (B * B) - (4.0 * (A * C))
                                                    	tmp = 0
                                                    	if F <= 3.15e-291:
                                                    		tmp = -math.sqrt((2.0 * ((C + (A + math.hypot(B, (A - C)))) * (F * t_0)))) / t_0
                                                    	elif F <= 0.125:
                                                    		tmp = math.sqrt((2.0 * (F * (A + math.hypot(B, A))))) * (-1.0 / B)
                                                    	else:
                                                    		tmp = math.sqrt(2.0) * -math.sqrt((F / B))
                                                    	return tmp
                                                    
                                                    B = abs(B)
                                                    function code(A, B, C, F)
                                                    	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                                    	tmp = 0.0
                                                    	if (F <= 3.15e-291)
                                                    		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(C + Float64(A + hypot(B, Float64(A - C)))) * Float64(F * t_0))))) / t_0);
                                                    	elseif (F <= 0.125)
                                                    		tmp = Float64(sqrt(Float64(2.0 * Float64(F * Float64(A + hypot(B, A))))) * Float64(-1.0 / B));
                                                    	else
                                                    		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    B = abs(B)
                                                    function tmp_2 = code(A, B, C, F)
                                                    	t_0 = (B * B) - (4.0 * (A * C));
                                                    	tmp = 0.0;
                                                    	if (F <= 3.15e-291)
                                                    		tmp = -sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) / t_0;
                                                    	elseif (F <= 0.125)
                                                    		tmp = sqrt((2.0 * (F * (A + hypot(B, A))))) * (-1.0 / B);
                                                    	else
                                                    		tmp = sqrt(2.0) * -sqrt((F / B));
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    NOTE: B should be positive before calling this function
                                                    code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, 3.15e-291], N[((-N[Sqrt[N[(2.0 * N[(N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[F, 0.125], N[(N[Sqrt[N[(2.0 * N[(F * N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]
                                                    
                                                    \begin{array}{l}
                                                    B = |B|\\
                                                    \\
                                                    \begin{array}{l}
                                                    t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                                    \mathbf{if}\;F \leq 3.15 \cdot 10^{-291}:\\
                                                    \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot t_0\right)\right)}}{t_0}\\
                                                    
                                                    \mathbf{elif}\;F \leq 0.125:\\
                                                    \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if F < 3.14999999999999996e-291

                                                      1. Initial program 49.0%

                                                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                      2. Step-by-step derivation
                                                        1. associate-*l*49.0%

                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                        2. unpow249.0%

                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                        3. +-commutative49.0%

                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                        4. unpow249.0%

                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                        5. associate-*l*49.0%

                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                        6. unpow249.0%

                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                      3. Simplified49.0%

                                                        \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                      4. Step-by-step derivation
                                                        1. distribute-frac-neg49.0%

                                                          \[\leadsto \color{blue}{-\frac{\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                      5. Applied egg-rr58.8%

                                                        \[\leadsto \color{blue}{-\frac{\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{B \cdot B - 4 \cdot \left(C \cdot A\right)}} \]

                                                      if 3.14999999999999996e-291 < F < 0.125

                                                      1. Initial program 23.4%

                                                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                      2. Step-by-step derivation
                                                        1. Simplified28.0%

                                                          \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                        2. Taylor expanded in C around 0 14.8%

                                                          \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                        3. Step-by-step derivation
                                                          1. mul-1-neg14.8%

                                                            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                          2. unpow214.8%

                                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                          3. unpow214.8%

                                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                        4. Simplified14.8%

                                                          \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                        5. Step-by-step derivation
                                                          1. sqrt-prod14.8%

                                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                          2. hypot-udef24.5%

                                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                        6. Applied egg-rr24.5%

                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                        7. Step-by-step derivation
                                                          1. associate-*l/24.5%

                                                            \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)}{B}} \]
                                                          2. sqrt-unprod24.5%

                                                            \[\leadsto -\frac{\sqrt{2} \cdot \color{blue}{\sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}}{B} \]
                                                        8. Applied egg-rr24.5%

                                                          \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}{B}} \]
                                                        9. Step-by-step derivation
                                                          1. div-inv24.5%

                                                            \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}\right) \cdot \frac{1}{B}} \]
                                                          2. sqrt-unprod24.6%

                                                            \[\leadsto -\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)}} \cdot \frac{1}{B} \]
                                                        10. Applied egg-rr24.6%

                                                          \[\leadsto -\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)} \cdot \frac{1}{B}} \]

                                                        if 0.125 < F

                                                        1. Initial program 14.5%

                                                          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                        2. Step-by-step derivation
                                                          1. Simplified16.3%

                                                            \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                          2. Taylor expanded in C around 0 7.8%

                                                            \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                          3. Step-by-step derivation
                                                            1. mul-1-neg7.8%

                                                              \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                            2. unpow27.8%

                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                            3. unpow27.8%

                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                          4. Simplified7.8%

                                                            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                          5. Step-by-step derivation
                                                            1. sqrt-prod9.3%

                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                            2. hypot-udef27.0%

                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                          6. Applied egg-rr27.0%

                                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                          7. Taylor expanded in A around 0 23.5%

                                                            \[\leadsto -\color{blue}{\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                                        3. Recombined 3 regimes into one program.
                                                        4. Final simplification29.5%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq 3.15 \cdot 10^{-291}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 0.125:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                                        Alternative 16: 40.7% accurate, 2.7× speedup?

                                                        \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{A + \left(A + C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 0.14:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \end{array} \]
                                                        NOTE: B should be positive before calling this function
                                                        (FPCore (A B C F)
                                                         :precision binary64
                                                         (if (<= F -4.4e-298)
                                                           (/
                                                            (*
                                                             (sqrt (* 2.0 (* F (+ (* B B) (* -4.0 (* A C))))))
                                                             (- (sqrt (+ A (+ A C)))))
                                                            (- (* B B) (* 4.0 (* A C))))
                                                           (if (<= F 0.14)
                                                             (* (sqrt (* 2.0 (* F (+ A (hypot B A))))) (/ -1.0 B))
                                                             (* (sqrt 2.0) (- (sqrt (/ F B)))))))
                                                        B = abs(B);
                                                        double code(double A, double B, double C, double F) {
                                                        	double tmp;
                                                        	if (F <= -4.4e-298) {
                                                        		tmp = (sqrt((2.0 * (F * ((B * B) + (-4.0 * (A * C)))))) * -sqrt((A + (A + C)))) / ((B * B) - (4.0 * (A * C)));
                                                        	} else if (F <= 0.14) {
                                                        		tmp = sqrt((2.0 * (F * (A + hypot(B, A))))) * (-1.0 / B);
                                                        	} else {
                                                        		tmp = sqrt(2.0) * -sqrt((F / B));
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        B = Math.abs(B);
                                                        public static double code(double A, double B, double C, double F) {
                                                        	double tmp;
                                                        	if (F <= -4.4e-298) {
                                                        		tmp = (Math.sqrt((2.0 * (F * ((B * B) + (-4.0 * (A * C)))))) * -Math.sqrt((A + (A + C)))) / ((B * B) - (4.0 * (A * C)));
                                                        	} else if (F <= 0.14) {
                                                        		tmp = Math.sqrt((2.0 * (F * (A + Math.hypot(B, A))))) * (-1.0 / B);
                                                        	} else {
                                                        		tmp = Math.sqrt(2.0) * -Math.sqrt((F / B));
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        B = abs(B)
                                                        def code(A, B, C, F):
                                                        	tmp = 0
                                                        	if F <= -4.4e-298:
                                                        		tmp = (math.sqrt((2.0 * (F * ((B * B) + (-4.0 * (A * C)))))) * -math.sqrt((A + (A + C)))) / ((B * B) - (4.0 * (A * C)))
                                                        	elif F <= 0.14:
                                                        		tmp = math.sqrt((2.0 * (F * (A + math.hypot(B, A))))) * (-1.0 / B)
                                                        	else:
                                                        		tmp = math.sqrt(2.0) * -math.sqrt((F / B))
                                                        	return tmp
                                                        
                                                        B = abs(B)
                                                        function code(A, B, C, F)
                                                        	tmp = 0.0
                                                        	if (F <= -4.4e-298)
                                                        		tmp = Float64(Float64(sqrt(Float64(2.0 * Float64(F * Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))))) * Float64(-sqrt(Float64(A + Float64(A + C))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
                                                        	elseif (F <= 0.14)
                                                        		tmp = Float64(sqrt(Float64(2.0 * Float64(F * Float64(A + hypot(B, A))))) * Float64(-1.0 / B));
                                                        	else
                                                        		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        B = abs(B)
                                                        function tmp_2 = code(A, B, C, F)
                                                        	tmp = 0.0;
                                                        	if (F <= -4.4e-298)
                                                        		tmp = (sqrt((2.0 * (F * ((B * B) + (-4.0 * (A * C)))))) * -sqrt((A + (A + C)))) / ((B * B) - (4.0 * (A * C)));
                                                        	elseif (F <= 0.14)
                                                        		tmp = sqrt((2.0 * (F * (A + hypot(B, A))))) * (-1.0 / B);
                                                        	else
                                                        		tmp = sqrt(2.0) * -sqrt((F / B));
                                                        	end
                                                        	tmp_2 = tmp;
                                                        end
                                                        
                                                        NOTE: B should be positive before calling this function
                                                        code[A_, B_, C_, F_] := If[LessEqual[F, -4.4e-298], N[(N[(N[Sqrt[N[(2.0 * N[(F * N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.14], N[(N[Sqrt[N[(2.0 * N[(F * N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]
                                                        
                                                        \begin{array}{l}
                                                        B = |B|\\
                                                        \\
                                                        \begin{array}{l}
                                                        \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\
                                                        \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{A + \left(A + C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
                                                        
                                                        \mathbf{elif}\;F \leq 0.14:\\
                                                        \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 3 regimes
                                                        2. if F < -4.4e-298

                                                          1. Initial program 52.0%

                                                            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                          2. Step-by-step derivation
                                                            1. associate-*l*52.0%

                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                            2. unpow252.0%

                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                            3. +-commutative52.0%

                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                            4. unpow252.0%

                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                            5. associate-*l*52.0%

                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                            6. unpow252.0%

                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                          3. Simplified52.0%

                                                            \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                          4. Taylor expanded in A around inf 44.8%

                                                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                          5. Step-by-step derivation
                                                            1. sqrt-prod46.5%

                                                              \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + A}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                            2. *-commutative46.5%

                                                              \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + A}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                            3. cancel-sign-sub-inv46.5%

                                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)\right)}\right)} \cdot \sqrt{\left(A + C\right) + A}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                            4. metadata-eval46.5%

                                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)\right)} \cdot \sqrt{\left(A + C\right) + A}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                            5. *-commutative46.5%

                                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + A}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                            6. associate-+l+46.5%

                                                              \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + A\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                          6. Applied egg-rr46.5%

                                                            \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + A\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                                          if -4.4e-298 < F < 0.14000000000000001

                                                          1. Initial program 23.6%

                                                            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                          2. Step-by-step derivation
                                                            1. Simplified28.1%

                                                              \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                            2. Taylor expanded in C around 0 14.7%

                                                              \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                            3. Step-by-step derivation
                                                              1. mul-1-neg14.7%

                                                                \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                              2. unpow214.7%

                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                              3. unpow214.7%

                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                            4. Simplified14.7%

                                                              \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                            5. Step-by-step derivation
                                                              1. sqrt-prod14.7%

                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                              2. hypot-udef23.9%

                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                            6. Applied egg-rr23.9%

                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                            7. Step-by-step derivation
                                                              1. associate-*l/24.0%

                                                                \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)}{B}} \]
                                                              2. sqrt-unprod24.0%

                                                                \[\leadsto -\frac{\sqrt{2} \cdot \color{blue}{\sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}}{B} \]
                                                            8. Applied egg-rr24.0%

                                                              \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}{B}} \]
                                                            9. Step-by-step derivation
                                                              1. div-inv24.0%

                                                                \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}\right) \cdot \frac{1}{B}} \]
                                                              2. sqrt-unprod24.0%

                                                                \[\leadsto -\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)}} \cdot \frac{1}{B} \]
                                                            10. Applied egg-rr24.0%

                                                              \[\leadsto -\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)} \cdot \frac{1}{B}} \]

                                                            if 0.14000000000000001 < F

                                                            1. Initial program 14.5%

                                                              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                            2. Step-by-step derivation
                                                              1. Simplified16.3%

                                                                \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                              2. Taylor expanded in C around 0 7.8%

                                                                \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                              3. Step-by-step derivation
                                                                1. mul-1-neg7.8%

                                                                  \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                2. unpow27.8%

                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                3. unpow27.8%

                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                              4. Simplified7.8%

                                                                \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                              5. Step-by-step derivation
                                                                1. sqrt-prod9.3%

                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                2. hypot-udef27.0%

                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                              6. Applied egg-rr27.0%

                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                              7. Taylor expanded in A around 0 23.5%

                                                                \[\leadsto -\color{blue}{\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                                            3. Recombined 3 regimes into one program.
                                                            4. Final simplification26.9%

                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(-\sqrt{A + \left(A + C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 0.14:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                                            Alternative 17: 39.7% accurate, 2.9× speedup?

                                                            \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{elif}\;F \leq 0.15:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \end{array} \]
                                                            NOTE: B should be positive before calling this function
                                                            (FPCore (A B C F)
                                                             :precision binary64
                                                             (let* ((t_0 (+ (* B B) (* -4.0 (* A C)))))
                                                               (if (<= F -4.4e-298)
                                                                 (* (sqrt (* 2.0 (* (* F t_0) (+ A (+ A C))))) (/ -1.0 t_0))
                                                                 (if (<= F 0.15)
                                                                   (* (sqrt (* 2.0 (* F (+ A (hypot B A))))) (/ -1.0 B))
                                                                   (* (sqrt 2.0) (- (sqrt (/ F B))))))))
                                                            B = abs(B);
                                                            double code(double A, double B, double C, double F) {
                                                            	double t_0 = (B * B) + (-4.0 * (A * C));
                                                            	double tmp;
                                                            	if (F <= -4.4e-298) {
                                                            		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                            	} else if (F <= 0.15) {
                                                            		tmp = sqrt((2.0 * (F * (A + hypot(B, A))))) * (-1.0 / B);
                                                            	} else {
                                                            		tmp = sqrt(2.0) * -sqrt((F / B));
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            B = Math.abs(B);
                                                            public static double code(double A, double B, double C, double F) {
                                                            	double t_0 = (B * B) + (-4.0 * (A * C));
                                                            	double tmp;
                                                            	if (F <= -4.4e-298) {
                                                            		tmp = Math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                            	} else if (F <= 0.15) {
                                                            		tmp = Math.sqrt((2.0 * (F * (A + Math.hypot(B, A))))) * (-1.0 / B);
                                                            	} else {
                                                            		tmp = Math.sqrt(2.0) * -Math.sqrt((F / B));
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            B = abs(B)
                                                            def code(A, B, C, F):
                                                            	t_0 = (B * B) + (-4.0 * (A * C))
                                                            	tmp = 0
                                                            	if F <= -4.4e-298:
                                                            		tmp = math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0)
                                                            	elif F <= 0.15:
                                                            		tmp = math.sqrt((2.0 * (F * (A + math.hypot(B, A))))) * (-1.0 / B)
                                                            	else:
                                                            		tmp = math.sqrt(2.0) * -math.sqrt((F / B))
                                                            	return tmp
                                                            
                                                            B = abs(B)
                                                            function code(A, B, C, F)
                                                            	t_0 = Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))
                                                            	tmp = 0.0
                                                            	if (F <= -4.4e-298)
                                                            		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(A + Float64(A + C))))) * Float64(-1.0 / t_0));
                                                            	elseif (F <= 0.15)
                                                            		tmp = Float64(sqrt(Float64(2.0 * Float64(F * Float64(A + hypot(B, A))))) * Float64(-1.0 / B));
                                                            	else
                                                            		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            B = abs(B)
                                                            function tmp_2 = code(A, B, C, F)
                                                            	t_0 = (B * B) + (-4.0 * (A * C));
                                                            	tmp = 0.0;
                                                            	if (F <= -4.4e-298)
                                                            		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                            	elseif (F <= 0.15)
                                                            		tmp = sqrt((2.0 * (F * (A + hypot(B, A))))) * (-1.0 / B);
                                                            	else
                                                            		tmp = sqrt(2.0) * -sqrt((F / B));
                                                            	end
                                                            	tmp_2 = tmp;
                                                            end
                                                            
                                                            NOTE: B should be positive before calling this function
                                                            code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -4.4e-298], N[(N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.15], N[(N[Sqrt[N[(2.0 * N[(F * N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]
                                                            
                                                            \begin{array}{l}
                                                            B = |B|\\
                                                            \\
                                                            \begin{array}{l}
                                                            t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\
                                                            \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\
                                                            \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                                                            
                                                            \mathbf{elif}\;F \leq 0.15:\\
                                                            \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Split input into 3 regimes
                                                            2. if F < -4.4e-298

                                                              1. Initial program 52.0%

                                                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                              2. Step-by-step derivation
                                                                1. associate-*l*52.0%

                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                2. unpow252.0%

                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                3. +-commutative52.0%

                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                4. unpow252.0%

                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                5. associate-*l*52.0%

                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                6. unpow252.0%

                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                              3. Simplified52.0%

                                                                \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                              4. Taylor expanded in A around inf 44.8%

                                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                              5. Step-by-step derivation
                                                                1. div-inv44.9%

                                                                  \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + A\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                2. associate-*l*44.9%

                                                                  \[\leadsto \left(-\sqrt{\color{blue}{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + A\right)\right)}}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                3. *-commutative44.9%

                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                4. cancel-sign-sub-inv44.9%

                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                5. metadata-eval44.9%

                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                6. *-commutative44.9%

                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                7. associate-+l+44.9%

                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \color{blue}{\left(A + \left(C + A\right)\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                8. cancel-sign-sub-inv44.9%

                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
                                                                9. metadata-eval44.9%

                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
                                                              6. Applied egg-rr44.9%

                                                                \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + -4 \cdot \left(C \cdot A\right)}} \]

                                                              if -4.4e-298 < F < 0.149999999999999994

                                                              1. Initial program 23.6%

                                                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                              2. Step-by-step derivation
                                                                1. Simplified28.1%

                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                2. Taylor expanded in C around 0 14.7%

                                                                  \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                3. Step-by-step derivation
                                                                  1. mul-1-neg14.7%

                                                                    \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                  2. unpow214.7%

                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                  3. unpow214.7%

                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                4. Simplified14.7%

                                                                  \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                5. Step-by-step derivation
                                                                  1. sqrt-prod14.7%

                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                  2. hypot-udef23.9%

                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                                6. Applied egg-rr23.9%

                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                                7. Step-by-step derivation
                                                                  1. associate-*l/24.0%

                                                                    \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)}{B}} \]
                                                                  2. sqrt-unprod24.0%

                                                                    \[\leadsto -\frac{\sqrt{2} \cdot \color{blue}{\sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}}{B} \]
                                                                8. Applied egg-rr24.0%

                                                                  \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}{B}} \]
                                                                9. Step-by-step derivation
                                                                  1. div-inv24.0%

                                                                    \[\leadsto -\color{blue}{\left(\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}\right) \cdot \frac{1}{B}} \]
                                                                  2. sqrt-unprod24.0%

                                                                    \[\leadsto -\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)}} \cdot \frac{1}{B} \]
                                                                10. Applied egg-rr24.0%

                                                                  \[\leadsto -\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)} \cdot \frac{1}{B}} \]

                                                                if 0.149999999999999994 < F

                                                                1. Initial program 14.5%

                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                2. Step-by-step derivation
                                                                  1. Simplified16.3%

                                                                    \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                  2. Taylor expanded in C around 0 7.8%

                                                                    \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                  3. Step-by-step derivation
                                                                    1. mul-1-neg7.8%

                                                                      \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                    2. unpow27.8%

                                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                    3. unpow27.8%

                                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                  4. Simplified7.8%

                                                                    \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                  5. Step-by-step derivation
                                                                    1. sqrt-prod9.3%

                                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                    2. hypot-udef27.0%

                                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                                  6. Applied egg-rr27.0%

                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                                  7. Taylor expanded in A around 0 23.5%

                                                                    \[\leadsto -\color{blue}{\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                                                3. Recombined 3 regimes into one program.
                                                                4. Final simplification26.6%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 0.15:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)} \cdot \frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                                                Alternative 18: 39.7% accurate, 2.9× speedup?

                                                                \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{elif}\;F \leq 0.15:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)}}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \end{array} \]
                                                                NOTE: B should be positive before calling this function
                                                                (FPCore (A B C F)
                                                                 :precision binary64
                                                                 (let* ((t_0 (+ (* B B) (* -4.0 (* A C)))))
                                                                   (if (<= F -4.4e-298)
                                                                     (* (sqrt (* 2.0 (* (* F t_0) (+ A (+ A C))))) (/ -1.0 t_0))
                                                                     (if (<= F 0.15)
                                                                       (/ (- (sqrt (* 2.0 (* F (+ A (hypot B A)))))) B)
                                                                       (* (sqrt 2.0) (- (sqrt (/ F B))))))))
                                                                B = abs(B);
                                                                double code(double A, double B, double C, double F) {
                                                                	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                	double tmp;
                                                                	if (F <= -4.4e-298) {
                                                                		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                	} else if (F <= 0.15) {
                                                                		tmp = -sqrt((2.0 * (F * (A + hypot(B, A))))) / B;
                                                                	} else {
                                                                		tmp = sqrt(2.0) * -sqrt((F / B));
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                B = Math.abs(B);
                                                                public static double code(double A, double B, double C, double F) {
                                                                	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                	double tmp;
                                                                	if (F <= -4.4e-298) {
                                                                		tmp = Math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                	} else if (F <= 0.15) {
                                                                		tmp = -Math.sqrt((2.0 * (F * (A + Math.hypot(B, A))))) / B;
                                                                	} else {
                                                                		tmp = Math.sqrt(2.0) * -Math.sqrt((F / B));
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                B = abs(B)
                                                                def code(A, B, C, F):
                                                                	t_0 = (B * B) + (-4.0 * (A * C))
                                                                	tmp = 0
                                                                	if F <= -4.4e-298:
                                                                		tmp = math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0)
                                                                	elif F <= 0.15:
                                                                		tmp = -math.sqrt((2.0 * (F * (A + math.hypot(B, A))))) / B
                                                                	else:
                                                                		tmp = math.sqrt(2.0) * -math.sqrt((F / B))
                                                                	return tmp
                                                                
                                                                B = abs(B)
                                                                function code(A, B, C, F)
                                                                	t_0 = Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))
                                                                	tmp = 0.0
                                                                	if (F <= -4.4e-298)
                                                                		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(A + Float64(A + C))))) * Float64(-1.0 / t_0));
                                                                	elseif (F <= 0.15)
                                                                		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(F * Float64(A + hypot(B, A)))))) / B);
                                                                	else
                                                                		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                B = abs(B)
                                                                function tmp_2 = code(A, B, C, F)
                                                                	t_0 = (B * B) + (-4.0 * (A * C));
                                                                	tmp = 0.0;
                                                                	if (F <= -4.4e-298)
                                                                		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                	elseif (F <= 0.15)
                                                                		tmp = -sqrt((2.0 * (F * (A + hypot(B, A))))) / B;
                                                                	else
                                                                		tmp = sqrt(2.0) * -sqrt((F / B));
                                                                	end
                                                                	tmp_2 = tmp;
                                                                end
                                                                
                                                                NOTE: B should be positive before calling this function
                                                                code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -4.4e-298], N[(N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.15], N[((-N[Sqrt[N[(2.0 * N[(F * N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / B), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]
                                                                
                                                                \begin{array}{l}
                                                                B = |B|\\
                                                                \\
                                                                \begin{array}{l}
                                                                t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\
                                                                \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\
                                                                \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                                                                
                                                                \mathbf{elif}\;F \leq 0.15:\\
                                                                \;\;\;\;\frac{-\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)}}{B}\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 3 regimes
                                                                2. if F < -4.4e-298

                                                                  1. Initial program 52.0%

                                                                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                  2. Step-by-step derivation
                                                                    1. associate-*l*52.0%

                                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                    2. unpow252.0%

                                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                    3. +-commutative52.0%

                                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                    4. unpow252.0%

                                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                    5. associate-*l*52.0%

                                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                    6. unpow252.0%

                                                                      \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                  3. Simplified52.0%

                                                                    \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                  4. Taylor expanded in A around inf 44.8%

                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                  5. Step-by-step derivation
                                                                    1. div-inv44.9%

                                                                      \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + A\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                    2. associate-*l*44.9%

                                                                      \[\leadsto \left(-\sqrt{\color{blue}{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + A\right)\right)}}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                    3. *-commutative44.9%

                                                                      \[\leadsto \left(-\sqrt{2 \cdot \left(\color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                    4. cancel-sign-sub-inv44.9%

                                                                      \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                    5. metadata-eval44.9%

                                                                      \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                    6. *-commutative44.9%

                                                                      \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                    7. associate-+l+44.9%

                                                                      \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \color{blue}{\left(A + \left(C + A\right)\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                    8. cancel-sign-sub-inv44.9%

                                                                      \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
                                                                    9. metadata-eval44.9%

                                                                      \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
                                                                  6. Applied egg-rr44.9%

                                                                    \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + -4 \cdot \left(C \cdot A\right)}} \]

                                                                  if -4.4e-298 < F < 0.149999999999999994

                                                                  1. Initial program 23.6%

                                                                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                  2. Step-by-step derivation
                                                                    1. Simplified28.1%

                                                                      \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                    2. Taylor expanded in C around 0 14.7%

                                                                      \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                    3. Step-by-step derivation
                                                                      1. mul-1-neg14.7%

                                                                        \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                      2. unpow214.7%

                                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                      3. unpow214.7%

                                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                    4. Simplified14.7%

                                                                      \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                    5. Step-by-step derivation
                                                                      1. sqrt-prod14.7%

                                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                      2. hypot-udef23.9%

                                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                                    6. Applied egg-rr23.9%

                                                                      \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                                    7. Step-by-step derivation
                                                                      1. associate-*l/24.0%

                                                                        \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)}{B}} \]
                                                                      2. sqrt-unprod24.0%

                                                                        \[\leadsto -\frac{\sqrt{2} \cdot \color{blue}{\sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}}{B} \]
                                                                    8. Applied egg-rr24.0%

                                                                      \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}{B}} \]
                                                                    9. Step-by-step derivation
                                                                      1. sqrt-unprod24.0%

                                                                        \[\leadsto -\frac{\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)}}}{B} \]
                                                                    10. Applied egg-rr24.0%

                                                                      \[\leadsto -\frac{\color{blue}{\sqrt{2 \cdot \left(\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F\right)}}}{B} \]

                                                                    if 0.149999999999999994 < F

                                                                    1. Initial program 14.5%

                                                                      \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                    2. Step-by-step derivation
                                                                      1. Simplified16.3%

                                                                        \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                      2. Taylor expanded in C around 0 7.8%

                                                                        \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                      3. Step-by-step derivation
                                                                        1. mul-1-neg7.8%

                                                                          \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                        2. unpow27.8%

                                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                        3. unpow27.8%

                                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                      4. Simplified7.8%

                                                                        \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                      5. Step-by-step derivation
                                                                        1. sqrt-prod9.3%

                                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                        2. hypot-udef27.0%

                                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                                      6. Applied egg-rr27.0%

                                                                        \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                                      7. Taylor expanded in A around 0 23.5%

                                                                        \[\leadsto -\color{blue}{\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                                                    3. Recombined 3 regimes into one program.
                                                                    4. Final simplification26.6%

                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 0.15:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(B, A\right)\right)\right)}}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                                                    Alternative 19: 37.7% accurate, 3.0× speedup?

                                                                    \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{elif}\;F \leq 1.4 \cdot 10^{-22}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \end{array} \]
                                                                    NOTE: B should be positive before calling this function
                                                                    (FPCore (A B C F)
                                                                     :precision binary64
                                                                     (let* ((t_0 (+ (* B B) (* -4.0 (* A C)))))
                                                                       (if (<= F -4.4e-298)
                                                                         (* (sqrt (* 2.0 (* (* F t_0) (+ A (+ A C))))) (/ -1.0 t_0))
                                                                         (if (<= F 1.4e-22)
                                                                           (* (/ (sqrt 2.0) B) (- (sqrt (* B F))))
                                                                           (* (sqrt 2.0) (- (sqrt (/ F B))))))))
                                                                    B = abs(B);
                                                                    double code(double A, double B, double C, double F) {
                                                                    	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                    	double tmp;
                                                                    	if (F <= -4.4e-298) {
                                                                    		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                    	} else if (F <= 1.4e-22) {
                                                                    		tmp = (sqrt(2.0) / B) * -sqrt((B * F));
                                                                    	} else {
                                                                    		tmp = sqrt(2.0) * -sqrt((F / B));
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    NOTE: B should be positive before calling this function
                                                                    real(8) function code(a, b, c, f)
                                                                        real(8), intent (in) :: a
                                                                        real(8), intent (in) :: b
                                                                        real(8), intent (in) :: c
                                                                        real(8), intent (in) :: f
                                                                        real(8) :: t_0
                                                                        real(8) :: tmp
                                                                        t_0 = (b * b) + ((-4.0d0) * (a * c))
                                                                        if (f <= (-4.4d-298)) then
                                                                            tmp = sqrt((2.0d0 * ((f * t_0) * (a + (a + c))))) * ((-1.0d0) / t_0)
                                                                        else if (f <= 1.4d-22) then
                                                                            tmp = (sqrt(2.0d0) / b) * -sqrt((b * f))
                                                                        else
                                                                            tmp = sqrt(2.0d0) * -sqrt((f / b))
                                                                        end if
                                                                        code = tmp
                                                                    end function
                                                                    
                                                                    B = Math.abs(B);
                                                                    public static double code(double A, double B, double C, double F) {
                                                                    	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                    	double tmp;
                                                                    	if (F <= -4.4e-298) {
                                                                    		tmp = Math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                    	} else if (F <= 1.4e-22) {
                                                                    		tmp = (Math.sqrt(2.0) / B) * -Math.sqrt((B * F));
                                                                    	} else {
                                                                    		tmp = Math.sqrt(2.0) * -Math.sqrt((F / B));
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    B = abs(B)
                                                                    def code(A, B, C, F):
                                                                    	t_0 = (B * B) + (-4.0 * (A * C))
                                                                    	tmp = 0
                                                                    	if F <= -4.4e-298:
                                                                    		tmp = math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0)
                                                                    	elif F <= 1.4e-22:
                                                                    		tmp = (math.sqrt(2.0) / B) * -math.sqrt((B * F))
                                                                    	else:
                                                                    		tmp = math.sqrt(2.0) * -math.sqrt((F / B))
                                                                    	return tmp
                                                                    
                                                                    B = abs(B)
                                                                    function code(A, B, C, F)
                                                                    	t_0 = Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))
                                                                    	tmp = 0.0
                                                                    	if (F <= -4.4e-298)
                                                                    		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(A + Float64(A + C))))) * Float64(-1.0 / t_0));
                                                                    	elseif (F <= 1.4e-22)
                                                                    		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(-sqrt(Float64(B * F))));
                                                                    	else
                                                                    		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
                                                                    	end
                                                                    	return tmp
                                                                    end
                                                                    
                                                                    B = abs(B)
                                                                    function tmp_2 = code(A, B, C, F)
                                                                    	t_0 = (B * B) + (-4.0 * (A * C));
                                                                    	tmp = 0.0;
                                                                    	if (F <= -4.4e-298)
                                                                    		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                    	elseif (F <= 1.4e-22)
                                                                    		tmp = (sqrt(2.0) / B) * -sqrt((B * F));
                                                                    	else
                                                                    		tmp = sqrt(2.0) * -sqrt((F / B));
                                                                    	end
                                                                    	tmp_2 = tmp;
                                                                    end
                                                                    
                                                                    NOTE: B should be positive before calling this function
                                                                    code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -4.4e-298], N[(N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.4e-22], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * (-N[Sqrt[N[(B * F), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    B = |B|\\
                                                                    \\
                                                                    \begin{array}{l}
                                                                    t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\
                                                                    \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\
                                                                    \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                                                                    
                                                                    \mathbf{elif}\;F \leq 1.4 \cdot 10^{-22}:\\
                                                                    \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Split input into 3 regimes
                                                                    2. if F < -4.4e-298

                                                                      1. Initial program 52.0%

                                                                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                      2. Step-by-step derivation
                                                                        1. associate-*l*52.0%

                                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                        2. unpow252.0%

                                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                        3. +-commutative52.0%

                                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                        4. unpow252.0%

                                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                        5. associate-*l*52.0%

                                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                        6. unpow252.0%

                                                                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                      3. Simplified52.0%

                                                                        \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                      4. Taylor expanded in A around inf 44.8%

                                                                        \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                      5. Step-by-step derivation
                                                                        1. div-inv44.9%

                                                                          \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + A\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                        2. associate-*l*44.9%

                                                                          \[\leadsto \left(-\sqrt{\color{blue}{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + A\right)\right)}}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                        3. *-commutative44.9%

                                                                          \[\leadsto \left(-\sqrt{2 \cdot \left(\color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                        4. cancel-sign-sub-inv44.9%

                                                                          \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                        5. metadata-eval44.9%

                                                                          \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                        6. *-commutative44.9%

                                                                          \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                        7. associate-+l+44.9%

                                                                          \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \color{blue}{\left(A + \left(C + A\right)\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                        8. cancel-sign-sub-inv44.9%

                                                                          \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
                                                                        9. metadata-eval44.9%

                                                                          \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
                                                                      6. Applied egg-rr44.9%

                                                                        \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + -4 \cdot \left(C \cdot A\right)}} \]

                                                                      if -4.4e-298 < F < 1.39999999999999997e-22

                                                                      1. Initial program 24.2%

                                                                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                      2. Step-by-step derivation
                                                                        1. Simplified28.8%

                                                                          \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                        2. Taylor expanded in C around 0 15.1%

                                                                          \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                        3. Step-by-step derivation
                                                                          1. mul-1-neg15.1%

                                                                            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                          2. unpow215.1%

                                                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                          3. unpow215.1%

                                                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                        4. Simplified15.1%

                                                                          \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                        5. Taylor expanded in A around 0 22.7%

                                                                          \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\sqrt{F \cdot B}} \]

                                                                        if 1.39999999999999997e-22 < F

                                                                        1. Initial program 14.9%

                                                                          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                        2. Step-by-step derivation
                                                                          1. Simplified16.7%

                                                                            \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                          2. Taylor expanded in C around 0 8.1%

                                                                            \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                          3. Step-by-step derivation
                                                                            1. mul-1-neg8.1%

                                                                              \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                            2. unpow28.1%

                                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                            3. unpow28.1%

                                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                          4. Simplified8.1%

                                                                            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                          5. Step-by-step derivation
                                                                            1. sqrt-prod9.5%

                                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                            2. hypot-udef25.6%

                                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                                          6. Applied egg-rr25.6%

                                                                            \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                                          7. Taylor expanded in A around 0 21.5%

                                                                            \[\leadsto -\color{blue}{\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                                                        3. Recombined 3 regimes into one program.
                                                                        4. Final simplification25.2%

                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 1.4 \cdot 10^{-22}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                                                        Alternative 20: 37.7% accurate, 3.0× speedup?

                                                                        \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{elif}\;F \leq 1.85 \cdot 10^{-23}:\\ \;\;\;\;\frac{\sqrt{B \cdot F} \cdot \left(-\sqrt{2}\right)}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \end{array} \]
                                                                        NOTE: B should be positive before calling this function
                                                                        (FPCore (A B C F)
                                                                         :precision binary64
                                                                         (let* ((t_0 (+ (* B B) (* -4.0 (* A C)))))
                                                                           (if (<= F -4.4e-298)
                                                                             (* (sqrt (* 2.0 (* (* F t_0) (+ A (+ A C))))) (/ -1.0 t_0))
                                                                             (if (<= F 1.85e-23)
                                                                               (/ (* (sqrt (* B F)) (- (sqrt 2.0))) B)
                                                                               (* (sqrt 2.0) (- (sqrt (/ F B))))))))
                                                                        B = abs(B);
                                                                        double code(double A, double B, double C, double F) {
                                                                        	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                        	double tmp;
                                                                        	if (F <= -4.4e-298) {
                                                                        		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                        	} else if (F <= 1.85e-23) {
                                                                        		tmp = (sqrt((B * F)) * -sqrt(2.0)) / B;
                                                                        	} else {
                                                                        		tmp = sqrt(2.0) * -sqrt((F / B));
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        NOTE: B should be positive before calling this function
                                                                        real(8) function code(a, b, c, f)
                                                                            real(8), intent (in) :: a
                                                                            real(8), intent (in) :: b
                                                                            real(8), intent (in) :: c
                                                                            real(8), intent (in) :: f
                                                                            real(8) :: t_0
                                                                            real(8) :: tmp
                                                                            t_0 = (b * b) + ((-4.0d0) * (a * c))
                                                                            if (f <= (-4.4d-298)) then
                                                                                tmp = sqrt((2.0d0 * ((f * t_0) * (a + (a + c))))) * ((-1.0d0) / t_0)
                                                                            else if (f <= 1.85d-23) then
                                                                                tmp = (sqrt((b * f)) * -sqrt(2.0d0)) / b
                                                                            else
                                                                                tmp = sqrt(2.0d0) * -sqrt((f / b))
                                                                            end if
                                                                            code = tmp
                                                                        end function
                                                                        
                                                                        B = Math.abs(B);
                                                                        public static double code(double A, double B, double C, double F) {
                                                                        	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                        	double tmp;
                                                                        	if (F <= -4.4e-298) {
                                                                        		tmp = Math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                        	} else if (F <= 1.85e-23) {
                                                                        		tmp = (Math.sqrt((B * F)) * -Math.sqrt(2.0)) / B;
                                                                        	} else {
                                                                        		tmp = Math.sqrt(2.0) * -Math.sqrt((F / B));
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        B = abs(B)
                                                                        def code(A, B, C, F):
                                                                        	t_0 = (B * B) + (-4.0 * (A * C))
                                                                        	tmp = 0
                                                                        	if F <= -4.4e-298:
                                                                        		tmp = math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0)
                                                                        	elif F <= 1.85e-23:
                                                                        		tmp = (math.sqrt((B * F)) * -math.sqrt(2.0)) / B
                                                                        	else:
                                                                        		tmp = math.sqrt(2.0) * -math.sqrt((F / B))
                                                                        	return tmp
                                                                        
                                                                        B = abs(B)
                                                                        function code(A, B, C, F)
                                                                        	t_0 = Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))
                                                                        	tmp = 0.0
                                                                        	if (F <= -4.4e-298)
                                                                        		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(A + Float64(A + C))))) * Float64(-1.0 / t_0));
                                                                        	elseif (F <= 1.85e-23)
                                                                        		tmp = Float64(Float64(sqrt(Float64(B * F)) * Float64(-sqrt(2.0))) / B);
                                                                        	else
                                                                        		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
                                                                        	end
                                                                        	return tmp
                                                                        end
                                                                        
                                                                        B = abs(B)
                                                                        function tmp_2 = code(A, B, C, F)
                                                                        	t_0 = (B * B) + (-4.0 * (A * C));
                                                                        	tmp = 0.0;
                                                                        	if (F <= -4.4e-298)
                                                                        		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                        	elseif (F <= 1.85e-23)
                                                                        		tmp = (sqrt((B * F)) * -sqrt(2.0)) / B;
                                                                        	else
                                                                        		tmp = sqrt(2.0) * -sqrt((F / B));
                                                                        	end
                                                                        	tmp_2 = tmp;
                                                                        end
                                                                        
                                                                        NOTE: B should be positive before calling this function
                                                                        code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -4.4e-298], N[(N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.85e-23], N[(N[(N[Sqrt[N[(B * F), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[2.0], $MachinePrecision])), $MachinePrecision] / B), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]
                                                                        
                                                                        \begin{array}{l}
                                                                        B = |B|\\
                                                                        \\
                                                                        \begin{array}{l}
                                                                        t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\
                                                                        \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\
                                                                        \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                                                                        
                                                                        \mathbf{elif}\;F \leq 1.85 \cdot 10^{-23}:\\
                                                                        \;\;\;\;\frac{\sqrt{B \cdot F} \cdot \left(-\sqrt{2}\right)}{B}\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 3 regimes
                                                                        2. if F < -4.4e-298

                                                                          1. Initial program 52.0%

                                                                            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                          2. Step-by-step derivation
                                                                            1. associate-*l*52.0%

                                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                            2. unpow252.0%

                                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                            3. +-commutative52.0%

                                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                            4. unpow252.0%

                                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                            5. associate-*l*52.0%

                                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                            6. unpow252.0%

                                                                              \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                          3. Simplified52.0%

                                                                            \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                          4. Taylor expanded in A around inf 44.8%

                                                                            \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                          5. Step-by-step derivation
                                                                            1. div-inv44.9%

                                                                              \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + A\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                            2. associate-*l*44.9%

                                                                              \[\leadsto \left(-\sqrt{\color{blue}{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + A\right)\right)}}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                            3. *-commutative44.9%

                                                                              \[\leadsto \left(-\sqrt{2 \cdot \left(\color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                            4. cancel-sign-sub-inv44.9%

                                                                              \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                            5. metadata-eval44.9%

                                                                              \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                            6. *-commutative44.9%

                                                                              \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                            7. associate-+l+44.9%

                                                                              \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \color{blue}{\left(A + \left(C + A\right)\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                            8. cancel-sign-sub-inv44.9%

                                                                              \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
                                                                            9. metadata-eval44.9%

                                                                              \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
                                                                          6. Applied egg-rr44.9%

                                                                            \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + -4 \cdot \left(C \cdot A\right)}} \]

                                                                          if -4.4e-298 < F < 1.8500000000000001e-23

                                                                          1. Initial program 24.2%

                                                                            \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                          2. Step-by-step derivation
                                                                            1. Simplified28.8%

                                                                              \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                            2. Taylor expanded in C around 0 15.1%

                                                                              \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                            3. Step-by-step derivation
                                                                              1. mul-1-neg15.1%

                                                                                \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                              2. unpow215.1%

                                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                              3. unpow215.1%

                                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                            4. Simplified15.1%

                                                                              \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                            5. Step-by-step derivation
                                                                              1. sqrt-prod15.1%

                                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                              2. hypot-udef25.2%

                                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                                            6. Applied egg-rr25.2%

                                                                              \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                                            7. Step-by-step derivation
                                                                              1. associate-*l/25.3%

                                                                                \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)}{B}} \]
                                                                              2. sqrt-unprod25.3%

                                                                                \[\leadsto -\frac{\sqrt{2} \cdot \color{blue}{\sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}}{B} \]
                                                                            8. Applied egg-rr25.3%

                                                                              \[\leadsto -\color{blue}{\frac{\sqrt{2} \cdot \sqrt{\left(A + \mathsf{hypot}\left(B, A\right)\right) \cdot F}}{B}} \]
                                                                            9. Taylor expanded in A around 0 22.7%

                                                                              \[\leadsto -\frac{\sqrt{2} \cdot \color{blue}{\sqrt{F \cdot B}}}{B} \]

                                                                            if 1.8500000000000001e-23 < F

                                                                            1. Initial program 14.9%

                                                                              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                            2. Step-by-step derivation
                                                                              1. Simplified16.7%

                                                                                \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                              2. Taylor expanded in C around 0 8.1%

                                                                                \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                              3. Step-by-step derivation
                                                                                1. mul-1-neg8.1%

                                                                                  \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                                2. unpow28.1%

                                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                                3. unpow28.1%

                                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                              4. Simplified8.1%

                                                                                \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                              5. Step-by-step derivation
                                                                                1. sqrt-prod9.5%

                                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                                2. hypot-udef25.6%

                                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                                              6. Applied egg-rr25.6%

                                                                                \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                                              7. Taylor expanded in A around 0 21.5%

                                                                                \[\leadsto -\color{blue}{\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                                                            3. Recombined 3 regimes into one program.
                                                                            4. Final simplification25.2%

                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 1.85 \cdot 10^{-23}:\\ \;\;\;\;\frac{\sqrt{B \cdot F} \cdot \left(-\sqrt{2}\right)}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                                                            Alternative 21: 30.1% accurate, 3.0× speedup?

                                                                            \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \end{array} \]
                                                                            NOTE: B should be positive before calling this function
                                                                            (FPCore (A B C F)
                                                                             :precision binary64
                                                                             (let* ((t_0 (+ (* B B) (* -4.0 (* A C)))))
                                                                               (if (<= F -4.4e-298)
                                                                                 (* (sqrt (* 2.0 (* (* F t_0) (+ A (+ A C))))) (/ -1.0 t_0))
                                                                                 (* (sqrt 2.0) (- (sqrt (/ F B)))))))
                                                                            B = abs(B);
                                                                            double code(double A, double B, double C, double F) {
                                                                            	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                            	double tmp;
                                                                            	if (F <= -4.4e-298) {
                                                                            		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                            	} else {
                                                                            		tmp = sqrt(2.0) * -sqrt((F / B));
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            NOTE: B should be positive before calling this function
                                                                            real(8) function code(a, b, c, f)
                                                                                real(8), intent (in) :: a
                                                                                real(8), intent (in) :: b
                                                                                real(8), intent (in) :: c
                                                                                real(8), intent (in) :: f
                                                                                real(8) :: t_0
                                                                                real(8) :: tmp
                                                                                t_0 = (b * b) + ((-4.0d0) * (a * c))
                                                                                if (f <= (-4.4d-298)) then
                                                                                    tmp = sqrt((2.0d0 * ((f * t_0) * (a + (a + c))))) * ((-1.0d0) / t_0)
                                                                                else
                                                                                    tmp = sqrt(2.0d0) * -sqrt((f / b))
                                                                                end if
                                                                                code = tmp
                                                                            end function
                                                                            
                                                                            B = Math.abs(B);
                                                                            public static double code(double A, double B, double C, double F) {
                                                                            	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                            	double tmp;
                                                                            	if (F <= -4.4e-298) {
                                                                            		tmp = Math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                            	} else {
                                                                            		tmp = Math.sqrt(2.0) * -Math.sqrt((F / B));
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            B = abs(B)
                                                                            def code(A, B, C, F):
                                                                            	t_0 = (B * B) + (-4.0 * (A * C))
                                                                            	tmp = 0
                                                                            	if F <= -4.4e-298:
                                                                            		tmp = math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0)
                                                                            	else:
                                                                            		tmp = math.sqrt(2.0) * -math.sqrt((F / B))
                                                                            	return tmp
                                                                            
                                                                            B = abs(B)
                                                                            function code(A, B, C, F)
                                                                            	t_0 = Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))
                                                                            	tmp = 0.0
                                                                            	if (F <= -4.4e-298)
                                                                            		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(A + Float64(A + C))))) * Float64(-1.0 / t_0));
                                                                            	else
                                                                            		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
                                                                            	end
                                                                            	return tmp
                                                                            end
                                                                            
                                                                            B = abs(B)
                                                                            function tmp_2 = code(A, B, C, F)
                                                                            	t_0 = (B * B) + (-4.0 * (A * C));
                                                                            	tmp = 0.0;
                                                                            	if (F <= -4.4e-298)
                                                                            		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                            	else
                                                                            		tmp = sqrt(2.0) * -sqrt((F / B));
                                                                            	end
                                                                            	tmp_2 = tmp;
                                                                            end
                                                                            
                                                                            NOTE: B should be positive before calling this function
                                                                            code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -4.4e-298], N[(N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]
                                                                            
                                                                            \begin{array}{l}
                                                                            B = |B|\\
                                                                            \\
                                                                            \begin{array}{l}
                                                                            t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\
                                                                            \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\
                                                                            \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                                                                            
                                                                            \mathbf{else}:\\
                                                                            \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
                                                                            
                                                                            
                                                                            \end{array}
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Split input into 2 regimes
                                                                            2. if F < -4.4e-298

                                                                              1. Initial program 52.0%

                                                                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                              2. Step-by-step derivation
                                                                                1. associate-*l*52.0%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. unpow252.0%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                3. +-commutative52.0%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                4. unpow252.0%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                5. associate-*l*52.0%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                6. unpow252.0%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                              3. Simplified52.0%

                                                                                \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                              4. Taylor expanded in A around inf 44.8%

                                                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                              5. Step-by-step derivation
                                                                                1. div-inv44.9%

                                                                                  \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + A\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                2. associate-*l*44.9%

                                                                                  \[\leadsto \left(-\sqrt{\color{blue}{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + A\right)\right)}}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. *-commutative44.9%

                                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                4. cancel-sign-sub-inv44.9%

                                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. metadata-eval44.9%

                                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. *-commutative44.9%

                                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. associate-+l+44.9%

                                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \color{blue}{\left(A + \left(C + A\right)\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                8. cancel-sign-sub-inv44.9%

                                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
                                                                                9. metadata-eval44.9%

                                                                                  \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
                                                                              6. Applied egg-rr44.9%

                                                                                \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + -4 \cdot \left(C \cdot A\right)}} \]

                                                                              if -4.4e-298 < F

                                                                              1. Initial program 19.2%

                                                                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                              2. Step-by-step derivation
                                                                                1. Simplified22.4%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right) \cdot F\right) \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}} \]
                                                                                2. Taylor expanded in C around 0 11.4%

                                                                                  \[\leadsto \color{blue}{-1 \cdot \left(\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}\right)} \]
                                                                                3. Step-by-step derivation
                                                                                  1. mul-1-neg11.4%

                                                                                    \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{{B}^{2} + {A}^{2}}\right) \cdot F}} \]
                                                                                  2. unpow211.4%

                                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right) \cdot F} \]
                                                                                  3. unpow211.4%

                                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right) \cdot F} \]
                                                                                4. Simplified11.4%

                                                                                  \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(A + \sqrt{B \cdot B + A \cdot A}\right) \cdot F}} \]
                                                                                5. Step-by-step derivation
                                                                                  1. sqrt-prod12.1%

                                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \sqrt{B \cdot B + A \cdot A}} \cdot \sqrt{F}\right)} \]
                                                                                  2. hypot-udef25.4%

                                                                                    \[\leadsto -\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \color{blue}{\mathsf{hypot}\left(B, A\right)}} \cdot \sqrt{F}\right) \]
                                                                                6. Applied egg-rr25.4%

                                                                                  \[\leadsto -\frac{\sqrt{2}}{B} \cdot \color{blue}{\left(\sqrt{A + \mathsf{hypot}\left(B, A\right)} \cdot \sqrt{F}\right)} \]
                                                                                7. Taylor expanded in A around 0 17.0%

                                                                                  \[\leadsto -\color{blue}{\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                                                              3. Recombined 2 regimes into one program.
                                                                              4. Final simplification20.8%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -4.4 \cdot 10^{-298}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                                                              Alternative 22: 18.7% accurate, 4.6× speedup?

                                                                              \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_1 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;C \leq -3.5 \cdot 10^{+40}:\\ \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;C \leq 1.56 \cdot 10^{-161}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{t_0}\\ \mathbf{elif}\;C \leq 3.1 \cdot 10^{-16}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_1\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\left(A + C\right) + \left(C - A\right)\right)}}{t_0}\\ \end{array} \end{array} \]
                                                                              NOTE: B should be positive before calling this function
                                                                              (FPCore (A B C F)
                                                                               :precision binary64
                                                                               (let* ((t_0 (- (* B B) (* 4.0 (* A C)))) (t_1 (+ (* B B) (* -4.0 (* A C)))))
                                                                                 (if (<= C -3.5e+40)
                                                                                   (/ (- (sqrt (* (* C F) (* -16.0 (* A A))))) t_0)
                                                                                   (if (<= C 1.56e-161)
                                                                                     (/ (- (sqrt (* (* 2.0 (+ B C)) (* F (* B B))))) t_0)
                                                                                     (if (<= C 3.1e-16)
                                                                                       (* (sqrt (* 2.0 (* (* F t_1) (+ A (+ A C))))) (/ -1.0 t_1))
                                                                                       (/ (- (sqrt (* (* 2.0 (* F t_0)) (+ (+ A C) (- C A))))) t_0))))))
                                                                              B = abs(B);
                                                                              double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                                                              	double t_1 = (B * B) + (-4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (C <= -3.5e+40) {
                                                                              		tmp = -sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	} else if (C <= 1.56e-161) {
                                                                              		tmp = -sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	} else if (C <= 3.1e-16) {
                                                                              		tmp = sqrt((2.0 * ((F * t_1) * (A + (A + C))))) * (-1.0 / t_1);
                                                                              	} else {
                                                                              		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              real(8) function code(a, b, c, f)
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: f
                                                                                  real(8) :: t_0
                                                                                  real(8) :: t_1
                                                                                  real(8) :: tmp
                                                                                  t_0 = (b * b) - (4.0d0 * (a * c))
                                                                                  t_1 = (b * b) + ((-4.0d0) * (a * c))
                                                                                  if (c <= (-3.5d+40)) then
                                                                                      tmp = -sqrt(((c * f) * ((-16.0d0) * (a * a)))) / t_0
                                                                                  else if (c <= 1.56d-161) then
                                                                                      tmp = -sqrt(((2.0d0 * (b + c)) * (f * (b * b)))) / t_0
                                                                                  else if (c <= 3.1d-16) then
                                                                                      tmp = sqrt((2.0d0 * ((f * t_1) * (a + (a + c))))) * ((-1.0d0) / t_1)
                                                                                  else
                                                                                      tmp = -sqrt(((2.0d0 * (f * t_0)) * ((a + c) + (c - a)))) / t_0
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              B = Math.abs(B);
                                                                              public static double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                                                              	double t_1 = (B * B) + (-4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (C <= -3.5e+40) {
                                                                              		tmp = -Math.sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	} else if (C <= 1.56e-161) {
                                                                              		tmp = -Math.sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	} else if (C <= 3.1e-16) {
                                                                              		tmp = Math.sqrt((2.0 * ((F * t_1) * (A + (A + C))))) * (-1.0 / t_1);
                                                                              	} else {
                                                                              		tmp = -Math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              B = abs(B)
                                                                              def code(A, B, C, F):
                                                                              	t_0 = (B * B) - (4.0 * (A * C))
                                                                              	t_1 = (B * B) + (-4.0 * (A * C))
                                                                              	tmp = 0
                                                                              	if C <= -3.5e+40:
                                                                              		tmp = -math.sqrt(((C * F) * (-16.0 * (A * A)))) / t_0
                                                                              	elif C <= 1.56e-161:
                                                                              		tmp = -math.sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0
                                                                              	elif C <= 3.1e-16:
                                                                              		tmp = math.sqrt((2.0 * ((F * t_1) * (A + (A + C))))) * (-1.0 / t_1)
                                                                              	else:
                                                                              		tmp = -math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0
                                                                              	return tmp
                                                                              
                                                                              B = abs(B)
                                                                              function code(A, B, C, F)
                                                                              	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                                                              	t_1 = Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))
                                                                              	tmp = 0.0
                                                                              	if (C <= -3.5e+40)
                                                                              		tmp = Float64(Float64(-sqrt(Float64(Float64(C * F) * Float64(-16.0 * Float64(A * A))))) / t_0);
                                                                              	elseif (C <= 1.56e-161)
                                                                              		tmp = Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(B + C)) * Float64(F * Float64(B * B))))) / t_0);
                                                                              	elseif (C <= 3.1e-16)
                                                                              		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(F * t_1) * Float64(A + Float64(A + C))))) * Float64(-1.0 / t_1));
                                                                              	else
                                                                              		tmp = Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(F * t_0)) * Float64(Float64(A + C) + Float64(C - A))))) / t_0);
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              B = abs(B)
                                                                              function tmp_2 = code(A, B, C, F)
                                                                              	t_0 = (B * B) - (4.0 * (A * C));
                                                                              	t_1 = (B * B) + (-4.0 * (A * C));
                                                                              	tmp = 0.0;
                                                                              	if (C <= -3.5e+40)
                                                                              		tmp = -sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	elseif (C <= 1.56e-161)
                                                                              		tmp = -sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	elseif (C <= 3.1e-16)
                                                                              		tmp = sqrt((2.0 * ((F * t_1) * (A + (A + C))))) * (-1.0 / t_1);
                                                                              	else
                                                                              		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[C, -3.5e+40], N[((-N[Sqrt[N[(N[(C * F), $MachinePrecision] * N[(-16.0 * N[(A * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[C, 1.56e-161], N[((-N[Sqrt[N[(N[(2.0 * N[(B + C), $MachinePrecision]), $MachinePrecision] * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[C, 3.1e-16], N[(N[Sqrt[N[(2.0 * N[(N[(F * t$95$1), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$1), $MachinePrecision]), $MachinePrecision], N[((-N[Sqrt[N[(N[(2.0 * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision] * N[(N[(A + C), $MachinePrecision] + N[(C - A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision]]]]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              B = |B|\\
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                                                              t_1 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\
                                                                              \mathbf{if}\;C \leq -3.5 \cdot 10^{+40}:\\
                                                                              \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{t_0}\\
                                                                              
                                                                              \mathbf{elif}\;C \leq 1.56 \cdot 10^{-161}:\\
                                                                              \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{t_0}\\
                                                                              
                                                                              \mathbf{elif}\;C \leq 3.1 \cdot 10^{-16}:\\
                                                                              \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_1\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_1}\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\left(A + C\right) + \left(C - A\right)\right)}}{t_0}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 4 regimes
                                                                              2. if C < -3.4999999999999999e40

                                                                                1. Initial program 7.0%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*7.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow27.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative7.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow27.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*7.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow27.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified7.0%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in A around inf 2.9%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Taylor expanded in A around inf 20.0%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{-16 \cdot \left({A}^{2} \cdot \left(C \cdot F\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Step-by-step derivation
                                                                                  1. associate-*r*20.0%

                                                                                    \[\leadsto \frac{-\sqrt{\color{blue}{\left(-16 \cdot {A}^{2}\right) \cdot \left(C \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow220.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(-16 \cdot \color{blue}{\left(A \cdot A\right)}\right) \cdot \left(C \cdot F\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Simplified20.0%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{\left(-16 \cdot \left(A \cdot A\right)\right) \cdot \left(C \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                                                                if -3.4999999999999999e40 < C < 1.56e-161

                                                                                1. Initial program 29.6%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*29.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow229.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative29.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow229.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*29.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow229.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified29.6%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in C around 0 29.5%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\sqrt{{B}^{2} + {A}^{2}}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Step-by-step derivation
                                                                                  1. unpow229.5%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow229.5%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. hypot-def32.7%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Simplified32.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Taylor expanded in A around 0 10.5%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{2 \cdot \left(\left(C + B\right) \cdot \left(F \cdot {B}^{2}\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                8. Step-by-step derivation
                                                                                  1. associate-*r*10.5%

                                                                                    \[\leadsto \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot {B}^{2}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow210.5%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot \color{blue}{\left(B \cdot B\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                9. Simplified10.5%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                                                                if 1.56e-161 < C < 3.1000000000000001e-16

                                                                                1. Initial program 47.4%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*47.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow247.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative47.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow247.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*47.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow247.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified47.4%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in A around inf 35.5%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Step-by-step derivation
                                                                                  1. div-inv35.5%

                                                                                    \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + A\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                  2. associate-*l*35.5%

                                                                                    \[\leadsto \left(-\sqrt{\color{blue}{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + A\right)\right)}}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. *-commutative35.5%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  4. cancel-sign-sub-inv35.5%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  5. metadata-eval35.5%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  6. *-commutative35.5%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  7. associate-+l+35.5%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \color{blue}{\left(A + \left(C + A\right)\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  8. cancel-sign-sub-inv35.5%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
                                                                                  9. metadata-eval35.5%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
                                                                                6. Applied egg-rr35.5%

                                                                                  \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + -4 \cdot \left(C \cdot A\right)}} \]

                                                                                if 3.1000000000000001e-16 < C

                                                                                1. Initial program 19.2%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*19.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow219.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative19.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow219.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*19.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow219.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified19.2%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in A around -inf 23.3%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\left(C + -1 \cdot A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Step-by-step derivation
                                                                                  1. mul-1-neg23.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \left(C + \color{blue}{\left(-A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. sub-neg23.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Simplified23.3%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                              3. Recombined 4 regimes into one program.
                                                                              4. Final simplification19.1%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -3.5 \cdot 10^{+40}:\\ \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;C \leq 1.56 \cdot 10^{-161}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;C \leq 3.1 \cdot 10^{-16}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right) \cdot \left(\left(A + C\right) + \left(C - A\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \end{array} \]

                                                                              Alternative 23: 15.5% accurate, 4.8× speedup?

                                                                              \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;A \leq 2.4 \cdot 10^{-75}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \end{array} \end{array} \]
                                                                              NOTE: B should be positive before calling this function
                                                                              (FPCore (A B C F)
                                                                               :precision binary64
                                                                               (let* ((t_0 (+ (* B B) (* -4.0 (* A C)))))
                                                                                 (if (<= A 2.4e-75)
                                                                                   (/
                                                                                    (- (sqrt (* (* 2.0 (+ B C)) (* F (* B B)))))
                                                                                    (- (* B B) (* 4.0 (* A C))))
                                                                                   (* (sqrt (* 2.0 (* (* F t_0) (+ A (+ A C))))) (/ -1.0 t_0)))))
                                                                              B = abs(B);
                                                                              double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (A <= 2.4e-75) {
                                                                              		tmp = -sqrt(((2.0 * (B + C)) * (F * (B * B)))) / ((B * B) - (4.0 * (A * C)));
                                                                              	} else {
                                                                              		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              real(8) function code(a, b, c, f)
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: f
                                                                                  real(8) :: t_0
                                                                                  real(8) :: tmp
                                                                                  t_0 = (b * b) + ((-4.0d0) * (a * c))
                                                                                  if (a <= 2.4d-75) then
                                                                                      tmp = -sqrt(((2.0d0 * (b + c)) * (f * (b * b)))) / ((b * b) - (4.0d0 * (a * c)))
                                                                                  else
                                                                                      tmp = sqrt((2.0d0 * ((f * t_0) * (a + (a + c))))) * ((-1.0d0) / t_0)
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              B = Math.abs(B);
                                                                              public static double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) + (-4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (A <= 2.4e-75) {
                                                                              		tmp = -Math.sqrt(((2.0 * (B + C)) * (F * (B * B)))) / ((B * B) - (4.0 * (A * C)));
                                                                              	} else {
                                                                              		tmp = Math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              B = abs(B)
                                                                              def code(A, B, C, F):
                                                                              	t_0 = (B * B) + (-4.0 * (A * C))
                                                                              	tmp = 0
                                                                              	if A <= 2.4e-75:
                                                                              		tmp = -math.sqrt(((2.0 * (B + C)) * (F * (B * B)))) / ((B * B) - (4.0 * (A * C)))
                                                                              	else:
                                                                              		tmp = math.sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0)
                                                                              	return tmp
                                                                              
                                                                              B = abs(B)
                                                                              function code(A, B, C, F)
                                                                              	t_0 = Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))
                                                                              	tmp = 0.0
                                                                              	if (A <= 2.4e-75)
                                                                              		tmp = Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(B + C)) * Float64(F * Float64(B * B))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
                                                                              	else
                                                                              		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(A + Float64(A + C))))) * Float64(-1.0 / t_0));
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              B = abs(B)
                                                                              function tmp_2 = code(A, B, C, F)
                                                                              	t_0 = (B * B) + (-4.0 * (A * C));
                                                                              	tmp = 0.0;
                                                                              	if (A <= 2.4e-75)
                                                                              		tmp = -sqrt(((2.0 * (B + C)) * (F * (B * B)))) / ((B * B) - (4.0 * (A * C)));
                                                                              	else
                                                                              		tmp = sqrt((2.0 * ((F * t_0) * (A + (A + C))))) * (-1.0 / t_0);
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, 2.4e-75], N[((-N[Sqrt[N[(N[(2.0 * N[(B + C), $MachinePrecision]), $MachinePrecision] * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              B = |B|\\
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_0 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\
                                                                              \mathbf{if}\;A \leq 2.4 \cdot 10^{-75}:\\
                                                                              \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if A < 2.40000000000000019e-75

                                                                                1. Initial program 20.8%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*20.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow220.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative20.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow220.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*20.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow220.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified20.8%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in C around 0 16.0%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\sqrt{{B}^{2} + {A}^{2}}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Step-by-step derivation
                                                                                  1. unpow216.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow216.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. hypot-def16.1%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Simplified16.1%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Taylor expanded in A around 0 8.9%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{2 \cdot \left(\left(C + B\right) \cdot \left(F \cdot {B}^{2}\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                8. Step-by-step derivation
                                                                                  1. associate-*r*8.9%

                                                                                    \[\leadsto \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot {B}^{2}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow28.9%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot \color{blue}{\left(B \cdot B\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                9. Simplified8.9%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                                                                if 2.40000000000000019e-75 < A

                                                                                1. Initial program 29.3%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*29.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow229.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative29.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow229.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*29.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow229.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified29.3%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in A around inf 27.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Step-by-step derivation
                                                                                  1. div-inv27.7%

                                                                                    \[\leadsto \color{blue}{\left(-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + A\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                  2. associate-*l*27.7%

                                                                                    \[\leadsto \left(-\sqrt{\color{blue}{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + A\right)\right)}}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. *-commutative27.7%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)} \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  4. cancel-sign-sub-inv27.7%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \color{blue}{\left(B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)\right)}\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  5. metadata-eval27.7%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  6. *-commutative27.7%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right) \cdot \left(\left(A + C\right) + A\right)\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  7. associate-+l+27.7%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \color{blue}{\left(A + \left(C + A\right)\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  8. cancel-sign-sub-inv27.7%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{\color{blue}{B \cdot B + \left(-4\right) \cdot \left(A \cdot C\right)}} \]
                                                                                  9. metadata-eval27.7%

                                                                                    \[\leadsto \left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + \color{blue}{-4} \cdot \left(A \cdot C\right)} \]
                                                                                6. Applied egg-rr27.7%

                                                                                  \[\leadsto \color{blue}{\left(-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right) \cdot \left(A + \left(C + A\right)\right)\right)}\right) \cdot \frac{1}{B \cdot B + -4 \cdot \left(C \cdot A\right)}} \]
                                                                              3. Recombined 2 regimes into one program.
                                                                              4. Final simplification15.4%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq 2.4 \cdot 10^{-75}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)} \cdot \frac{-1}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \end{array} \]

                                                                              Alternative 24: 15.5% accurate, 4.8× speedup?

                                                                              \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;A \leq 2.6 \cdot 10^{-75}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;-\frac{\sqrt{\left(A + \left(A + C\right)\right) \cdot \left(2 \cdot \left(F \cdot t_0\right)\right)}}{t_0}\\ \end{array} \end{array} \]
                                                                              NOTE: B should be positive before calling this function
                                                                              (FPCore (A B C F)
                                                                               :precision binary64
                                                                               (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                                                                                 (if (<= A 2.6e-75)
                                                                                   (/ (- (sqrt (* (* 2.0 (+ B C)) (* F (* B B))))) t_0)
                                                                                   (- (/ (sqrt (* (+ A (+ A C)) (* 2.0 (* F t_0)))) t_0)))))
                                                                              B = abs(B);
                                                                              double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (A <= 2.6e-75) {
                                                                              		tmp = -sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	} else {
                                                                              		tmp = -(sqrt(((A + (A + C)) * (2.0 * (F * t_0)))) / t_0);
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              real(8) function code(a, b, c, f)
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: f
                                                                                  real(8) :: t_0
                                                                                  real(8) :: tmp
                                                                                  t_0 = (b * b) - (4.0d0 * (a * c))
                                                                                  if (a <= 2.6d-75) then
                                                                                      tmp = -sqrt(((2.0d0 * (b + c)) * (f * (b * b)))) / t_0
                                                                                  else
                                                                                      tmp = -(sqrt(((a + (a + c)) * (2.0d0 * (f * t_0)))) / t_0)
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              B = Math.abs(B);
                                                                              public static double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (A <= 2.6e-75) {
                                                                              		tmp = -Math.sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	} else {
                                                                              		tmp = -(Math.sqrt(((A + (A + C)) * (2.0 * (F * t_0)))) / t_0);
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              B = abs(B)
                                                                              def code(A, B, C, F):
                                                                              	t_0 = (B * B) - (4.0 * (A * C))
                                                                              	tmp = 0
                                                                              	if A <= 2.6e-75:
                                                                              		tmp = -math.sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0
                                                                              	else:
                                                                              		tmp = -(math.sqrt(((A + (A + C)) * (2.0 * (F * t_0)))) / t_0)
                                                                              	return tmp
                                                                              
                                                                              B = abs(B)
                                                                              function code(A, B, C, F)
                                                                              	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                                                              	tmp = 0.0
                                                                              	if (A <= 2.6e-75)
                                                                              		tmp = Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(B + C)) * Float64(F * Float64(B * B))))) / t_0);
                                                                              	else
                                                                              		tmp = Float64(-Float64(sqrt(Float64(Float64(A + Float64(A + C)) * Float64(2.0 * Float64(F * t_0)))) / t_0));
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              B = abs(B)
                                                                              function tmp_2 = code(A, B, C, F)
                                                                              	t_0 = (B * B) - (4.0 * (A * C));
                                                                              	tmp = 0.0;
                                                                              	if (A <= 2.6e-75)
                                                                              		tmp = -sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	else
                                                                              		tmp = -(sqrt(((A + (A + C)) * (2.0 * (F * t_0)))) / t_0);
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, 2.6e-75], N[((-N[Sqrt[N[(N[(2.0 * N[(B + C), $MachinePrecision]), $MachinePrecision] * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], (-N[(N[Sqrt[N[(N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$0), $MachinePrecision])]]
                                                                              
                                                                              \begin{array}{l}
                                                                              B = |B|\\
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                                                              \mathbf{if}\;A \leq 2.6 \cdot 10^{-75}:\\
                                                                              \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{t_0}\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;-\frac{\sqrt{\left(A + \left(A + C\right)\right) \cdot \left(2 \cdot \left(F \cdot t_0\right)\right)}}{t_0}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if A < 2.6e-75

                                                                                1. Initial program 20.8%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*20.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow220.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative20.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow220.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*20.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow220.8%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified20.8%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in C around 0 16.0%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\sqrt{{B}^{2} + {A}^{2}}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Step-by-step derivation
                                                                                  1. unpow216.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow216.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. hypot-def16.1%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Simplified16.1%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Taylor expanded in A around 0 8.9%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{2 \cdot \left(\left(C + B\right) \cdot \left(F \cdot {B}^{2}\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                8. Step-by-step derivation
                                                                                  1. associate-*r*8.9%

                                                                                    \[\leadsto \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot {B}^{2}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow28.9%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot \color{blue}{\left(B \cdot B\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                9. Simplified8.9%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                                                                if 2.6e-75 < A

                                                                                1. Initial program 29.3%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*29.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow229.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative29.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow229.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*29.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow229.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified29.3%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in A around inf 27.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                              3. Recombined 2 regimes into one program.
                                                                              4. Final simplification15.4%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq 2.6 \cdot 10^{-75}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;-\frac{\sqrt{\left(A + \left(A + C\right)\right) \cdot \left(2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \end{array} \]

                                                                              Alternative 25: 14.1% accurate, 5.1× speedup?

                                                                              \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;B \leq 9.8 \cdot 10^{-33}:\\ \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{t_0}\\ \end{array} \end{array} \]
                                                                              NOTE: B should be positive before calling this function
                                                                              (FPCore (A B C F)
                                                                               :precision binary64
                                                                               (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                                                                                 (if (<= B 9.8e-33)
                                                                                   (/ (- (sqrt (* (* C F) (* -16.0 (* A A))))) t_0)
                                                                                   (/ (- (sqrt (* (* 2.0 (+ B C)) (* F (* B B))))) t_0))))
                                                                              B = abs(B);
                                                                              double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (B <= 9.8e-33) {
                                                                              		tmp = -sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	} else {
                                                                              		tmp = -sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              real(8) function code(a, b, c, f)
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: f
                                                                                  real(8) :: t_0
                                                                                  real(8) :: tmp
                                                                                  t_0 = (b * b) - (4.0d0 * (a * c))
                                                                                  if (b <= 9.8d-33) then
                                                                                      tmp = -sqrt(((c * f) * ((-16.0d0) * (a * a)))) / t_0
                                                                                  else
                                                                                      tmp = -sqrt(((2.0d0 * (b + c)) * (f * (b * b)))) / t_0
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              B = Math.abs(B);
                                                                              public static double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (B <= 9.8e-33) {
                                                                              		tmp = -Math.sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	} else {
                                                                              		tmp = -Math.sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              B = abs(B)
                                                                              def code(A, B, C, F):
                                                                              	t_0 = (B * B) - (4.0 * (A * C))
                                                                              	tmp = 0
                                                                              	if B <= 9.8e-33:
                                                                              		tmp = -math.sqrt(((C * F) * (-16.0 * (A * A)))) / t_0
                                                                              	else:
                                                                              		tmp = -math.sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0
                                                                              	return tmp
                                                                              
                                                                              B = abs(B)
                                                                              function code(A, B, C, F)
                                                                              	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                                                              	tmp = 0.0
                                                                              	if (B <= 9.8e-33)
                                                                              		tmp = Float64(Float64(-sqrt(Float64(Float64(C * F) * Float64(-16.0 * Float64(A * A))))) / t_0);
                                                                              	else
                                                                              		tmp = Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(B + C)) * Float64(F * Float64(B * B))))) / t_0);
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              B = abs(B)
                                                                              function tmp_2 = code(A, B, C, F)
                                                                              	t_0 = (B * B) - (4.0 * (A * C));
                                                                              	tmp = 0.0;
                                                                              	if (B <= 9.8e-33)
                                                                              		tmp = -sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	else
                                                                              		tmp = -sqrt(((2.0 * (B + C)) * (F * (B * B)))) / t_0;
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 9.8e-33], N[((-N[Sqrt[N[(N[(C * F), $MachinePrecision] * N[(-16.0 * N[(A * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], N[((-N[Sqrt[N[(N[(2.0 * N[(B + C), $MachinePrecision]), $MachinePrecision] * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              B = |B|\\
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                                                              \mathbf{if}\;B \leq 9.8 \cdot 10^{-33}:\\
                                                                              \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{t_0}\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{t_0}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if B < 9.7999999999999996e-33

                                                                                1. Initial program 23.4%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*23.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow223.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative23.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow223.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*23.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow223.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified23.4%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in A around inf 14.2%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Taylor expanded in A around inf 13.6%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{-16 \cdot \left({A}^{2} \cdot \left(C \cdot F\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Step-by-step derivation
                                                                                  1. associate-*r*13.6%

                                                                                    \[\leadsto \frac{-\sqrt{\color{blue}{\left(-16 \cdot {A}^{2}\right) \cdot \left(C \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow213.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(-16 \cdot \color{blue}{\left(A \cdot A\right)}\right) \cdot \left(C \cdot F\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Simplified13.6%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{\left(-16 \cdot \left(A \cdot A\right)\right) \cdot \left(C \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                                                                if 9.7999999999999996e-33 < B

                                                                                1. Initial program 24.6%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*24.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow224.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative24.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow224.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*24.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow224.6%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified24.6%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in C around 0 23.4%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\sqrt{{B}^{2} + {A}^{2}}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Step-by-step derivation
                                                                                  1. unpow223.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow223.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. hypot-def23.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Simplified23.4%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Taylor expanded in A around 0 22.0%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{2 \cdot \left(\left(C + B\right) \cdot \left(F \cdot {B}^{2}\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                8. Step-by-step derivation
                                                                                  1. associate-*r*22.0%

                                                                                    \[\leadsto \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot {B}^{2}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow222.0%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot \color{blue}{\left(B \cdot B\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                9. Simplified22.0%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(C + B\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                              3. Recombined 2 regimes into one program.
                                                                              4. Final simplification15.7%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 9.8 \cdot 10^{-33}:\\ \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B + C\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \end{array} \]

                                                                              Alternative 26: 10.9% accurate, 5.2× speedup?

                                                                              \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;C \leq 2.5 \cdot 10^{-16}:\\ \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{2 \cdot \left(B \cdot \left(-\sqrt{C \cdot F}\right)\right)}{t_0}\\ \end{array} \end{array} \]
                                                                              NOTE: B should be positive before calling this function
                                                                              (FPCore (A B C F)
                                                                               :precision binary64
                                                                               (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                                                                                 (if (<= C 2.5e-16)
                                                                                   (/ (- (sqrt (* (* C F) (* -16.0 (* A A))))) t_0)
                                                                                   (/ (* 2.0 (* B (- (sqrt (* C F))))) t_0))))
                                                                              B = abs(B);
                                                                              double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (C <= 2.5e-16) {
                                                                              		tmp = -sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	} else {
                                                                              		tmp = (2.0 * (B * -sqrt((C * F)))) / t_0;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              real(8) function code(a, b, c, f)
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: f
                                                                                  real(8) :: t_0
                                                                                  real(8) :: tmp
                                                                                  t_0 = (b * b) - (4.0d0 * (a * c))
                                                                                  if (c <= 2.5d-16) then
                                                                                      tmp = -sqrt(((c * f) * ((-16.0d0) * (a * a)))) / t_0
                                                                                  else
                                                                                      tmp = (2.0d0 * (b * -sqrt((c * f)))) / t_0
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              B = Math.abs(B);
                                                                              public static double code(double A, double B, double C, double F) {
                                                                              	double t_0 = (B * B) - (4.0 * (A * C));
                                                                              	double tmp;
                                                                              	if (C <= 2.5e-16) {
                                                                              		tmp = -Math.sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	} else {
                                                                              		tmp = (2.0 * (B * -Math.sqrt((C * F)))) / t_0;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              B = abs(B)
                                                                              def code(A, B, C, F):
                                                                              	t_0 = (B * B) - (4.0 * (A * C))
                                                                              	tmp = 0
                                                                              	if C <= 2.5e-16:
                                                                              		tmp = -math.sqrt(((C * F) * (-16.0 * (A * A)))) / t_0
                                                                              	else:
                                                                              		tmp = (2.0 * (B * -math.sqrt((C * F)))) / t_0
                                                                              	return tmp
                                                                              
                                                                              B = abs(B)
                                                                              function code(A, B, C, F)
                                                                              	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                                                                              	tmp = 0.0
                                                                              	if (C <= 2.5e-16)
                                                                              		tmp = Float64(Float64(-sqrt(Float64(Float64(C * F) * Float64(-16.0 * Float64(A * A))))) / t_0);
                                                                              	else
                                                                              		tmp = Float64(Float64(2.0 * Float64(B * Float64(-sqrt(Float64(C * F))))) / t_0);
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              B = abs(B)
                                                                              function tmp_2 = code(A, B, C, F)
                                                                              	t_0 = (B * B) - (4.0 * (A * C));
                                                                              	tmp = 0.0;
                                                                              	if (C <= 2.5e-16)
                                                                              		tmp = -sqrt(((C * F) * (-16.0 * (A * A)))) / t_0;
                                                                              	else
                                                                              		tmp = (2.0 * (B * -sqrt((C * F)))) / t_0;
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[C, 2.5e-16], N[((-N[Sqrt[N[(N[(C * F), $MachinePrecision] * N[(-16.0 * N[(A * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], N[(N[(2.0 * N[(B * (-N[Sqrt[N[(C * F), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              B = |B|\\
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                                                                              \mathbf{if}\;C \leq 2.5 \cdot 10^{-16}:\\
                                                                              \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{t_0}\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;\frac{2 \cdot \left(B \cdot \left(-\sqrt{C \cdot F}\right)\right)}{t_0}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if C < 2.5000000000000002e-16

                                                                                1. Initial program 25.4%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*25.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow225.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative25.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow225.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*25.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow225.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified25.4%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in A around inf 13.8%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Taylor expanded in A around inf 14.4%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{-16 \cdot \left({A}^{2} \cdot \left(C \cdot F\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Step-by-step derivation
                                                                                  1. associate-*r*14.4%

                                                                                    \[\leadsto \frac{-\sqrt{\color{blue}{\left(-16 \cdot {A}^{2}\right) \cdot \left(C \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow214.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(-16 \cdot \color{blue}{\left(A \cdot A\right)}\right) \cdot \left(C \cdot F\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Simplified14.4%

                                                                                  \[\leadsto \frac{-\sqrt{\color{blue}{\left(-16 \cdot \left(A \cdot A\right)\right) \cdot \left(C \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                                                                if 2.5000000000000002e-16 < C

                                                                                1. Initial program 19.2%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*19.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow219.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative19.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow219.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*19.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow219.2%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified19.2%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Step-by-step derivation
                                                                                  1. sqrt-prod23.2%

                                                                                    \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. *-commutative23.2%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. *-commutative23.2%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  4. associate-+l+23.2%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  5. unpow223.2%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  6. hypot-udef38.3%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  7. associate-+r+38.3%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  8. +-commutative38.3%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  9. associate-+r+38.4%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Applied egg-rr38.4%

                                                                                  \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Taylor expanded in B around inf 11.6%

                                                                                  \[\leadsto \frac{-\color{blue}{\left(\left(\sqrt{2} \cdot B\right) \cdot \sqrt{F}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Step-by-step derivation
                                                                                  1. associate-*l*11.6%

                                                                                    \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                8. Simplified11.6%

                                                                                  \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                9. Taylor expanded in A around -inf 6.5%

                                                                                  \[\leadsto \frac{-\color{blue}{\left({\left(\sqrt{2}\right)}^{2} \cdot B\right) \cdot \sqrt{C \cdot F}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                10. Step-by-step derivation
                                                                                  1. associate-*l*6.5%

                                                                                    \[\leadsto \frac{-\color{blue}{{\left(\sqrt{2}\right)}^{2} \cdot \left(B \cdot \sqrt{C \cdot F}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow26.5%

                                                                                    \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{2}\right)} \cdot \left(B \cdot \sqrt{C \cdot F}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. rem-square-sqrt6.5%

                                                                                    \[\leadsto \frac{-\color{blue}{2} \cdot \left(B \cdot \sqrt{C \cdot F}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                11. Simplified6.5%

                                                                                  \[\leadsto \frac{-\color{blue}{2 \cdot \left(B \cdot \sqrt{C \cdot F}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                              3. Recombined 2 regimes into one program.
                                                                              4. Final simplification12.3%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq 2.5 \cdot 10^{-16}:\\ \;\;\;\;\frac{-\sqrt{\left(C \cdot F\right) \cdot \left(-16 \cdot \left(A \cdot A\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2 \cdot \left(B \cdot \left(-\sqrt{C \cdot F}\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \end{array} \]

                                                                              Alternative 27: 6.6% accurate, 5.3× speedup?

                                                                              \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} \mathbf{if}\;C \leq -2.9 \cdot 10^{-293}:\\ \;\;\;\;\frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2 \cdot \left(B \cdot \left(-\sqrt{C \cdot F}\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \end{array} \end{array} \]
                                                                              NOTE: B should be positive before calling this function
                                                                              (FPCore (A B C F)
                                                                               :precision binary64
                                                                               (if (<= C -2.9e-293)
                                                                                 (* (/ 2.0 B) (- (pow (* A F) 0.5)))
                                                                                 (/ (* 2.0 (* B (- (sqrt (* C F))))) (- (* B B) (* 4.0 (* A C))))))
                                                                              B = abs(B);
                                                                              double code(double A, double B, double C, double F) {
                                                                              	double tmp;
                                                                              	if (C <= -2.9e-293) {
                                                                              		tmp = (2.0 / B) * -pow((A * F), 0.5);
                                                                              	} else {
                                                                              		tmp = (2.0 * (B * -sqrt((C * F)))) / ((B * B) - (4.0 * (A * C)));
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              real(8) function code(a, b, c, f)
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: f
                                                                                  real(8) :: tmp
                                                                                  if (c <= (-2.9d-293)) then
                                                                                      tmp = (2.0d0 / b) * -((a * f) ** 0.5d0)
                                                                                  else
                                                                                      tmp = (2.0d0 * (b * -sqrt((c * f)))) / ((b * b) - (4.0d0 * (a * c)))
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              B = Math.abs(B);
                                                                              public static double code(double A, double B, double C, double F) {
                                                                              	double tmp;
                                                                              	if (C <= -2.9e-293) {
                                                                              		tmp = (2.0 / B) * -Math.pow((A * F), 0.5);
                                                                              	} else {
                                                                              		tmp = (2.0 * (B * -Math.sqrt((C * F)))) / ((B * B) - (4.0 * (A * C)));
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              B = abs(B)
                                                                              def code(A, B, C, F):
                                                                              	tmp = 0
                                                                              	if C <= -2.9e-293:
                                                                              		tmp = (2.0 / B) * -math.pow((A * F), 0.5)
                                                                              	else:
                                                                              		tmp = (2.0 * (B * -math.sqrt((C * F)))) / ((B * B) - (4.0 * (A * C)))
                                                                              	return tmp
                                                                              
                                                                              B = abs(B)
                                                                              function code(A, B, C, F)
                                                                              	tmp = 0.0
                                                                              	if (C <= -2.9e-293)
                                                                              		tmp = Float64(Float64(2.0 / B) * Float64(-(Float64(A * F) ^ 0.5)));
                                                                              	else
                                                                              		tmp = Float64(Float64(2.0 * Float64(B * Float64(-sqrt(Float64(C * F))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              B = abs(B)
                                                                              function tmp_2 = code(A, B, C, F)
                                                                              	tmp = 0.0;
                                                                              	if (C <= -2.9e-293)
                                                                              		tmp = (2.0 / B) * -((A * F) ^ 0.5);
                                                                              	else
                                                                              		tmp = (2.0 * (B * -sqrt((C * F)))) / ((B * B) - (4.0 * (A * C)));
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              code[A_, B_, C_, F_] := If[LessEqual[C, -2.9e-293], N[(N[(2.0 / B), $MachinePrecision] * (-N[Power[N[(A * F), $MachinePrecision], 0.5], $MachinePrecision])), $MachinePrecision], N[(N[(2.0 * N[(B * (-N[Sqrt[N[(C * F), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision] / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                                                                              
                                                                              \begin{array}{l}
                                                                              B = |B|\\
                                                                              \\
                                                                              \begin{array}{l}
                                                                              \mathbf{if}\;C \leq -2.9 \cdot 10^{-293}:\\
                                                                              \;\;\;\;\frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right)\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;\frac{2 \cdot \left(B \cdot \left(-\sqrt{C \cdot F}\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if C < -2.8999999999999999e-293

                                                                                1. Initial program 17.3%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*17.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow217.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative17.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow217.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*17.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow217.3%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified17.3%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Taylor expanded in A around inf 8.9%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Taylor expanded in C around 0 4.0%

                                                                                  \[\leadsto \color{blue}{-1 \cdot \left(\frac{{\left(\sqrt{2}\right)}^{2}}{B} \cdot \sqrt{A \cdot F}\right)} \]
                                                                                6. Step-by-step derivation
                                                                                  1. mul-1-neg4.0%

                                                                                    \[\leadsto \color{blue}{-\frac{{\left(\sqrt{2}\right)}^{2}}{B} \cdot \sqrt{A \cdot F}} \]
                                                                                  2. unpow24.0%

                                                                                    \[\leadsto -\frac{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}{B} \cdot \sqrt{A \cdot F} \]
                                                                                  3. rem-square-sqrt4.0%

                                                                                    \[\leadsto -\frac{\color{blue}{2}}{B} \cdot \sqrt{A \cdot F} \]
                                                                                7. Simplified4.0%

                                                                                  \[\leadsto \color{blue}{-\frac{2}{B} \cdot \sqrt{A \cdot F}} \]
                                                                                8. Step-by-step derivation
                                                                                  1. pow1/24.1%

                                                                                    \[\leadsto -\frac{2}{B} \cdot \color{blue}{{\left(A \cdot F\right)}^{0.5}} \]
                                                                                9. Applied egg-rr4.1%

                                                                                  \[\leadsto -\frac{2}{B} \cdot \color{blue}{{\left(A \cdot F\right)}^{0.5}} \]

                                                                                if -2.8999999999999999e-293 < C

                                                                                1. Initial program 29.4%

                                                                                  \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. Step-by-step derivation
                                                                                  1. associate-*l*29.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  2. unpow229.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  3. +-commutative29.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  4. unpow229.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                  5. associate-*l*29.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                  6. unpow229.4%

                                                                                    \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                                3. Simplified29.4%

                                                                                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                                4. Step-by-step derivation
                                                                                  1. sqrt-prod33.6%

                                                                                    \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. *-commutative33.6%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \color{blue}{\left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. *-commutative33.6%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \color{blue}{\left(C \cdot A\right)}\right)\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  4. associate-+l+33.6%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  5. unpow233.6%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  6. hypot-udef43.5%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  7. associate-+r+43.5%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  8. +-commutative43.5%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  9. associate-+r+44.6%

                                                                                    \[\leadsto \frac{-\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{\color{blue}{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                5. Applied egg-rr44.6%

                                                                                  \[\leadsto \frac{-\color{blue}{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(C \cdot A\right)\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                6. Taylor expanded in B around inf 12.6%

                                                                                  \[\leadsto \frac{-\color{blue}{\left(\left(\sqrt{2} \cdot B\right) \cdot \sqrt{F}\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                7. Step-by-step derivation
                                                                                  1. associate-*l*12.6%

                                                                                    \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                8. Simplified12.6%

                                                                                  \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)} \cdot \sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                9. Taylor expanded in A around -inf 4.9%

                                                                                  \[\leadsto \frac{-\color{blue}{\left({\left(\sqrt{2}\right)}^{2} \cdot B\right) \cdot \sqrt{C \cdot F}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                10. Step-by-step derivation
                                                                                  1. associate-*l*4.9%

                                                                                    \[\leadsto \frac{-\color{blue}{{\left(\sqrt{2}\right)}^{2} \cdot \left(B \cdot \sqrt{C \cdot F}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  2. unpow24.9%

                                                                                    \[\leadsto \frac{-\color{blue}{\left(\sqrt{2} \cdot \sqrt{2}\right)} \cdot \left(B \cdot \sqrt{C \cdot F}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                  3. rem-square-sqrt5.0%

                                                                                    \[\leadsto \frac{-\color{blue}{2} \cdot \left(B \cdot \sqrt{C \cdot F}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                                11. Simplified5.0%

                                                                                  \[\leadsto \frac{-\color{blue}{2 \cdot \left(B \cdot \sqrt{C \cdot F}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                              3. Recombined 2 regimes into one program.
                                                                              4. Final simplification4.5%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -2.9 \cdot 10^{-293}:\\ \;\;\;\;\frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2 \cdot \left(B \cdot \left(-\sqrt{C \cdot F}\right)\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \end{array} \]

                                                                              Alternative 28: 5.2% accurate, 5.8× speedup?

                                                                              \[\begin{array}{l} B = |B|\\ \\ \frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right) \end{array} \]
                                                                              NOTE: B should be positive before calling this function
                                                                              (FPCore (A B C F) :precision binary64 (* (/ 2.0 B) (- (pow (* A F) 0.5))))
                                                                              B = abs(B);
                                                                              double code(double A, double B, double C, double F) {
                                                                              	return (2.0 / B) * -pow((A * F), 0.5);
                                                                              }
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              real(8) function code(a, b, c, f)
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: f
                                                                                  code = (2.0d0 / b) * -((a * f) ** 0.5d0)
                                                                              end function
                                                                              
                                                                              B = Math.abs(B);
                                                                              public static double code(double A, double B, double C, double F) {
                                                                              	return (2.0 / B) * -Math.pow((A * F), 0.5);
                                                                              }
                                                                              
                                                                              B = abs(B)
                                                                              def code(A, B, C, F):
                                                                              	return (2.0 / B) * -math.pow((A * F), 0.5)
                                                                              
                                                                              B = abs(B)
                                                                              function code(A, B, C, F)
                                                                              	return Float64(Float64(2.0 / B) * Float64(-(Float64(A * F) ^ 0.5)))
                                                                              end
                                                                              
                                                                              B = abs(B)
                                                                              function tmp = code(A, B, C, F)
                                                                              	tmp = (2.0 / B) * -((A * F) ^ 0.5);
                                                                              end
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              code[A_, B_, C_, F_] := N[(N[(2.0 / B), $MachinePrecision] * (-N[Power[N[(A * F), $MachinePrecision], 0.5], $MachinePrecision])), $MachinePrecision]
                                                                              
                                                                              \begin{array}{l}
                                                                              B = |B|\\
                                                                              \\
                                                                              \frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right)
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Initial program 23.7%

                                                                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                              2. Step-by-step derivation
                                                                                1. associate-*l*23.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. unpow223.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                3. +-commutative23.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                4. unpow223.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                5. associate-*l*23.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                6. unpow223.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                              3. Simplified23.7%

                                                                                \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                              4. Taylor expanded in A around inf 11.6%

                                                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                              5. Taylor expanded in C around 0 2.5%

                                                                                \[\leadsto \color{blue}{-1 \cdot \left(\frac{{\left(\sqrt{2}\right)}^{2}}{B} \cdot \sqrt{A \cdot F}\right)} \]
                                                                              6. Step-by-step derivation
                                                                                1. mul-1-neg2.5%

                                                                                  \[\leadsto \color{blue}{-\frac{{\left(\sqrt{2}\right)}^{2}}{B} \cdot \sqrt{A \cdot F}} \]
                                                                                2. unpow22.5%

                                                                                  \[\leadsto -\frac{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}{B} \cdot \sqrt{A \cdot F} \]
                                                                                3. rem-square-sqrt2.5%

                                                                                  \[\leadsto -\frac{\color{blue}{2}}{B} \cdot \sqrt{A \cdot F} \]
                                                                              7. Simplified2.5%

                                                                                \[\leadsto \color{blue}{-\frac{2}{B} \cdot \sqrt{A \cdot F}} \]
                                                                              8. Step-by-step derivation
                                                                                1. pow1/22.6%

                                                                                  \[\leadsto -\frac{2}{B} \cdot \color{blue}{{\left(A \cdot F\right)}^{0.5}} \]
                                                                              9. Applied egg-rr2.6%

                                                                                \[\leadsto -\frac{2}{B} \cdot \color{blue}{{\left(A \cdot F\right)}^{0.5}} \]
                                                                              10. Final simplification2.6%

                                                                                \[\leadsto \frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right) \]

                                                                              Alternative 29: 5.1% accurate, 5.9× speedup?

                                                                              \[\begin{array}{l} B = |B|\\ \\ \frac{2}{B} \cdot \left(-\sqrt{A \cdot F}\right) \end{array} \]
                                                                              NOTE: B should be positive before calling this function
                                                                              (FPCore (A B C F) :precision binary64 (* (/ 2.0 B) (- (sqrt (* A F)))))
                                                                              B = abs(B);
                                                                              double code(double A, double B, double C, double F) {
                                                                              	return (2.0 / B) * -sqrt((A * F));
                                                                              }
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              real(8) function code(a, b, c, f)
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: f
                                                                                  code = (2.0d0 / b) * -sqrt((a * f))
                                                                              end function
                                                                              
                                                                              B = Math.abs(B);
                                                                              public static double code(double A, double B, double C, double F) {
                                                                              	return (2.0 / B) * -Math.sqrt((A * F));
                                                                              }
                                                                              
                                                                              B = abs(B)
                                                                              def code(A, B, C, F):
                                                                              	return (2.0 / B) * -math.sqrt((A * F))
                                                                              
                                                                              B = abs(B)
                                                                              function code(A, B, C, F)
                                                                              	return Float64(Float64(2.0 / B) * Float64(-sqrt(Float64(A * F))))
                                                                              end
                                                                              
                                                                              B = abs(B)
                                                                              function tmp = code(A, B, C, F)
                                                                              	tmp = (2.0 / B) * -sqrt((A * F));
                                                                              end
                                                                              
                                                                              NOTE: B should be positive before calling this function
                                                                              code[A_, B_, C_, F_] := N[(N[(2.0 / B), $MachinePrecision] * (-N[Sqrt[N[(A * F), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]
                                                                              
                                                                              \begin{array}{l}
                                                                              B = |B|\\
                                                                              \\
                                                                              \frac{2}{B} \cdot \left(-\sqrt{A \cdot F}\right)
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Initial program 23.7%

                                                                                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                              2. Step-by-step derivation
                                                                                1. associate-*l*23.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                2. unpow223.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                3. +-commutative23.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                4. unpow223.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                                                                5. associate-*l*23.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                                                                                6. unpow223.7%

                                                                                  \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
                                                                              3. Simplified23.7%

                                                                                \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                                                              4. Taylor expanded in A around inf 11.6%

                                                                                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                                                              5. Taylor expanded in C around 0 2.5%

                                                                                \[\leadsto \color{blue}{-1 \cdot \left(\frac{{\left(\sqrt{2}\right)}^{2}}{B} \cdot \sqrt{A \cdot F}\right)} \]
                                                                              6. Step-by-step derivation
                                                                                1. mul-1-neg2.5%

                                                                                  \[\leadsto \color{blue}{-\frac{{\left(\sqrt{2}\right)}^{2}}{B} \cdot \sqrt{A \cdot F}} \]
                                                                                2. unpow22.5%

                                                                                  \[\leadsto -\frac{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}{B} \cdot \sqrt{A \cdot F} \]
                                                                                3. rem-square-sqrt2.5%

                                                                                  \[\leadsto -\frac{\color{blue}{2}}{B} \cdot \sqrt{A \cdot F} \]
                                                                              7. Simplified2.5%

                                                                                \[\leadsto \color{blue}{-\frac{2}{B} \cdot \sqrt{A \cdot F}} \]
                                                                              8. Final simplification2.5%

                                                                                \[\leadsto \frac{2}{B} \cdot \left(-\sqrt{A \cdot F}\right) \]

                                                                              Reproduce

                                                                              ?
                                                                              herbie shell --seed 2023214 
                                                                              (FPCore (A B C F)
                                                                                :name "ABCF->ab-angle a"
                                                                                :precision binary64
                                                                                (/ (- (sqrt (* (* 2.0 (* (- (pow B 2.0) (* (* 4.0 A) C)) F)) (+ (+ A C) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0))))))) (- (pow B 2.0) (* (* 4.0 A) C))))