ABCF->ab-angle a

Percentage Accurate: 18.5% → 44.3%
Time: 33.2s
Alternatives: 19
Speedup: 2.8×

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 19 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: 18.5% 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: 44.3% accurate, 1.2× speedup?

\[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right)\\ t_1 := -\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\\ t_2 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_3 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\ \mathbf{if}\;A \leq -0.0013:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_3 \cdot F\right) \cdot \mathsf{fma}\left(2, C, -0.5 \cdot \frac{B \cdot B}{A}\right)\right)}}{t_3}\\ \mathbf{elif}\;A \leq 7.2 \cdot 10^{-299}:\\ \;\;\;\;\frac{\left(\sqrt{2 \cdot F} \cdot \sqrt{\mathsf{fma}\left(B, B, t_0\right)}\right) \cdot t_1}{t_2}\\ \mathbf{else}:\\ \;\;\;\;\frac{{\left(\left(2 \cdot F\right) \cdot \left(B \cdot B + t_0\right)\right)}^{0.5} \cdot t_1}{t_2}\\ \end{array} \end{array} \]
NOTE: A and C should be sorted in increasing order before calling this function.
(FPCore (A B C F)
 :precision binary64
 (let* ((t_0 (* -4.0 (* A C)))
        (t_1 (- (sqrt (+ (+ A C) (hypot B (- A C))))))
        (t_2 (- (* B B) (* 4.0 (* A C))))
        (t_3 (fma B B (* A (* C -4.0)))))
   (if (<= A -0.0013)
     (/
      (- (sqrt (* 2.0 (* (* t_3 F) (fma 2.0 C (* -0.5 (/ (* B B) A)))))))
      t_3)
     (if (<= A 7.2e-299)
       (/ (* (* (sqrt (* 2.0 F)) (sqrt (fma B B t_0))) t_1) t_2)
       (/ (* (pow (* (* 2.0 F) (+ (* B B) t_0)) 0.5) t_1) t_2)))))
assert(A < C);
double code(double A, double B, double C, double F) {
	double t_0 = -4.0 * (A * C);
	double t_1 = -sqrt(((A + C) + hypot(B, (A - C))));
	double t_2 = (B * B) - (4.0 * (A * C));
	double t_3 = fma(B, B, (A * (C * -4.0)));
	double tmp;
	if (A <= -0.0013) {
		tmp = -sqrt((2.0 * ((t_3 * F) * fma(2.0, C, (-0.5 * ((B * B) / A)))))) / t_3;
	} else if (A <= 7.2e-299) {
		tmp = ((sqrt((2.0 * F)) * sqrt(fma(B, B, t_0))) * t_1) / t_2;
	} else {
		tmp = (pow(((2.0 * F) * ((B * B) + t_0)), 0.5) * t_1) / t_2;
	}
	return tmp;
}
A, C = sort([A, C])
function code(A, B, C, F)
	t_0 = Float64(-4.0 * Float64(A * C))
	t_1 = Float64(-sqrt(Float64(Float64(A + C) + hypot(B, Float64(A - C)))))
	t_2 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
	t_3 = fma(B, B, Float64(A * Float64(C * -4.0)))
	tmp = 0.0
	if (A <= -0.0013)
		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(t_3 * F) * fma(2.0, C, Float64(-0.5 * Float64(Float64(B * B) / A))))))) / t_3);
	elseif (A <= 7.2e-299)
		tmp = Float64(Float64(Float64(sqrt(Float64(2.0 * F)) * sqrt(fma(B, B, t_0))) * t_1) / t_2);
	else
		tmp = Float64(Float64((Float64(Float64(2.0 * F) * Float64(Float64(B * B) + t_0)) ^ 0.5) * t_1) / t_2);
	end
	return tmp
end
NOTE: A and C should be sorted in increasing order before calling this function.
code[A_, B_, C_, F_] := Block[{t$95$0 = N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = (-N[Sqrt[N[(N[(A + C), $MachinePrecision] + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision])}, Block[{t$95$2 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(B * B + N[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -0.0013], N[((-N[Sqrt[N[(2.0 * N[(N[(t$95$3 * F), $MachinePrecision] * N[(2.0 * C + N[(-0.5 * N[(N[(B * B), $MachinePrecision] / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$3), $MachinePrecision], If[LessEqual[A, 7.2e-299], N[(N[(N[(N[Sqrt[N[(2.0 * F), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(B * B + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$2), $MachinePrecision], N[(N[(N[Power[N[(N[(2.0 * F), $MachinePrecision] * N[(N[(B * B), $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
[A, C] = \mathsf{sort}([A, C])\\
\\
\begin{array}{l}
t_0 := -4 \cdot \left(A \cdot C\right)\\
t_1 := -\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\\
t_2 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
t_3 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\
\mathbf{if}\;A \leq -0.0013:\\
\;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_3 \cdot F\right) \cdot \mathsf{fma}\left(2, C, -0.5 \cdot \frac{B \cdot B}{A}\right)\right)}}{t_3}\\

\mathbf{elif}\;A \leq 7.2 \cdot 10^{-299}:\\
\;\;\;\;\frac{\left(\sqrt{2 \cdot F} \cdot \sqrt{\mathsf{fma}\left(B, B, t_0\right)}\right) \cdot t_1}{t_2}\\

\mathbf{else}:\\
\;\;\;\;\frac{{\left(\left(2 \cdot F\right) \cdot \left(B \cdot B + t_0\right)\right)}^{0.5} \cdot t_1}{t_2}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if A < -0.0012999999999999999

    1. Initial program 3.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. Simplified5.0%

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

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

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

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

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

      if -0.0012999999999999999 < A < 7.2e-299

      1. Initial program 29.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*29.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. unpow229.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. +-commutative29.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. 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} + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        5. associate-*l*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) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
        6. 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 + {\left(A - C\right)}^{2}}\right)}}{\color{blue}{B \cdot B} - 4 \cdot \left(A \cdot C\right)} \]
      3. Simplified29.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-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. unpow228.4%

          \[\leadsto \frac{-\sqrt{2 \cdot \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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        4. hypot-udef34.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 7.2e-299 < A

      1. Initial program 24.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*24.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. unpow224.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. +-commutative24.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. unpow224.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*24.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. unpow224.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. Simplified24.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-prod30.1%

          \[\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. *-commutative30.1%

          \[\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. unpow230.1%

          \[\leadsto \frac{-\sqrt{2 \cdot \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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
        4. hypot-udef41.8%

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

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

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

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

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

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

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

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

    Alternative 2: 41.7% accurate, 1.5× speedup?

    \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\ \mathbf{if}\;A \leq -0.0014:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_0 \cdot F\right) \cdot \mathsf{fma}\left(2, C, -0.5 \cdot \frac{B \cdot B}{A}\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{{\left(\left(2 \cdot F\right) \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right)}^{0.5} \cdot \left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \end{array} \end{array} \]
    NOTE: A and C should be sorted in increasing order before calling this function.
    (FPCore (A B C F)
     :precision binary64
     (let* ((t_0 (fma B B (* A (* C -4.0)))))
       (if (<= A -0.0014)
         (/
          (- (sqrt (* 2.0 (* (* t_0 F) (fma 2.0 C (* -0.5 (/ (* B B) A)))))))
          t_0)
         (/
          (*
           (pow (* (* 2.0 F) (+ (* B B) (* -4.0 (* A C)))) 0.5)
           (- (sqrt (+ (+ A C) (hypot B (- A C))))))
          (- (* B B) (* 4.0 (* A C)))))))
    assert(A < C);
    double code(double A, double B, double C, double F) {
    	double t_0 = fma(B, B, (A * (C * -4.0)));
    	double tmp;
    	if (A <= -0.0014) {
    		tmp = -sqrt((2.0 * ((t_0 * F) * fma(2.0, C, (-0.5 * ((B * B) / A)))))) / t_0;
    	} else {
    		tmp = (pow(((2.0 * F) * ((B * B) + (-4.0 * (A * C)))), 0.5) * -sqrt(((A + C) + hypot(B, (A - C))))) / ((B * B) - (4.0 * (A * C)));
    	}
    	return tmp;
    }
    
    A, C = sort([A, C])
    function code(A, B, C, F)
    	t_0 = fma(B, B, Float64(A * Float64(C * -4.0)))
    	tmp = 0.0
    	if (A <= -0.0014)
    		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(t_0 * F) * fma(2.0, C, Float64(-0.5 * Float64(Float64(B * B) / A))))))) / t_0);
    	else
    		tmp = Float64(Float64((Float64(Float64(2.0 * F) * Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))) ^ 0.5) * Float64(-sqrt(Float64(Float64(A + C) + hypot(B, Float64(A - C)))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
    	end
    	return tmp
    end
    
    NOTE: A and C should be sorted in increasing order before calling this function.
    code[A_, B_, C_, F_] := Block[{t$95$0 = N[(B * B + N[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -0.0014], N[((-N[Sqrt[N[(2.0 * N[(N[(t$95$0 * F), $MachinePrecision] * N[(2.0 * C + N[(-0.5 * N[(N[(B * B), $MachinePrecision] / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], N[(N[(N[Power[N[(N[(2.0 * F), $MachinePrecision] * N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision] * (-N[Sqrt[N[(N[(A + C), $MachinePrecision] + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    [A, C] = \mathsf{sort}([A, C])\\
    \\
    \begin{array}{l}
    t_0 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\
    \mathbf{if}\;A \leq -0.0014:\\
    \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_0 \cdot F\right) \cdot \mathsf{fma}\left(2, C, -0.5 \cdot \frac{B \cdot B}{A}\right)\right)}}{t_0}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{{\left(\left(2 \cdot F\right) \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right)}^{0.5} \cdot \left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\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 A < -0.00139999999999999999

      1. Initial program 3.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. Simplified5.0%

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

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

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

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

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

        if -0.00139999999999999999 < A

        1. Initial program 26.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*26.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. unpow226.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. +-commutative26.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. unpow226.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*26.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. unpow226.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. Simplified26.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. sqrt-prod29.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. *-commutative29.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. unpow229.5%

            \[\leadsto \frac{-\sqrt{2 \cdot \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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
          4. hypot-udef39.5%

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

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

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

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

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

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

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

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

      Alternative 3: 41.7% accurate, 1.9× speedup?

      \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ \mathbf{if}\;A \leq -0.0058:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(C + \left(C + -0.5 \cdot \frac{B \cdot B}{A}\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{{\left(\left(2 \cdot F\right) \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right)}^{0.5} \cdot \left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \end{array} \end{array} \]
      NOTE: A and C should be sorted in increasing order before calling this function.
      (FPCore (A B C F)
       :precision binary64
       (let* ((t_0 (fma C (* A -4.0) (* B B))))
         (if (<= A -0.0058)
           (/
            (- (sqrt (* 2.0 (* (* F t_0) (+ C (+ C (* -0.5 (/ (* B B) A))))))))
            t_0)
           (/
            (*
             (pow (* (* 2.0 F) (+ (* B B) (* -4.0 (* A C)))) 0.5)
             (- (sqrt (+ (+ A C) (hypot B (- A C))))))
            (- (* B B) (* 4.0 (* A C)))))))
      assert(A < C);
      double code(double A, double B, double C, double F) {
      	double t_0 = fma(C, (A * -4.0), (B * B));
      	double tmp;
      	if (A <= -0.0058) {
      		tmp = -sqrt((2.0 * ((F * t_0) * (C + (C + (-0.5 * ((B * B) / A))))))) / t_0;
      	} else {
      		tmp = (pow(((2.0 * F) * ((B * B) + (-4.0 * (A * C)))), 0.5) * -sqrt(((A + C) + hypot(B, (A - C))))) / ((B * B) - (4.0 * (A * C)));
      	}
      	return tmp;
      }
      
      A, C = sort([A, C])
      function code(A, B, C, F)
      	t_0 = fma(C, Float64(A * -4.0), Float64(B * B))
      	tmp = 0.0
      	if (A <= -0.0058)
      		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(C + Float64(C + Float64(-0.5 * Float64(Float64(B * B) / A)))))))) / t_0);
      	else
      		tmp = Float64(Float64((Float64(Float64(2.0 * F) * Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))) ^ 0.5) * Float64(-sqrt(Float64(Float64(A + C) + hypot(B, Float64(A - C)))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
      	end
      	return tmp
      end
      
      NOTE: A and C should be sorted in increasing order 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]}, If[LessEqual[A, -0.0058], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(C + N[(C + N[(-0.5 * N[(N[(B * B), $MachinePrecision] / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], N[(N[(N[Power[N[(N[(2.0 * F), $MachinePrecision] * N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision] * (-N[Sqrt[N[(N[(A + C), $MachinePrecision] + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      [A, C] = \mathsf{sort}([A, C])\\
      \\
      \begin{array}{l}
      t_0 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\
      \mathbf{if}\;A \leq -0.0058:\\
      \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(C + \left(C + -0.5 \cdot \frac{B \cdot B}{A}\right)\right)\right)}}{t_0}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{{\left(\left(2 \cdot F\right) \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right)}^{0.5} \cdot \left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\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 A < -0.0058

        1. Initial program 3.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. Simplified8.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 A around -inf 31.5%

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

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

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

          if -0.0058 < A

          1. Initial program 26.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*26.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. unpow226.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. +-commutative26.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. unpow226.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*26.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. unpow226.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. Simplified26.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. sqrt-prod29.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. *-commutative29.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. unpow229.5%

              \[\leadsto \frac{-\sqrt{2 \cdot \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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            4. hypot-udef39.5%

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

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

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

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

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

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

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

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

        Alternative 4: 41.7% accurate, 1.9× speedup?

        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \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}\;A \leq -0.0024:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(C + \left(C + -0.5 \cdot \frac{B \cdot B}{A}\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\ \end{array} \end{array} \]
        NOTE: A and C should be sorted in increasing order 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 (<= A -0.0024)
             (/
              (- (sqrt (* 2.0 (* (* F t_0) (+ C (+ C (* -0.5 (/ (* B B) A))))))))
              t_0)
             (/
              (* (sqrt (+ (+ A C) (hypot B (- A C)))) (- (sqrt (* 2.0 (* F t_1)))))
              t_1))))
        assert(A < C);
        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 (A <= -0.0024) {
        		tmp = -sqrt((2.0 * ((F * t_0) * (C + (C + (-0.5 * ((B * B) / A))))))) / t_0;
        	} else {
        		tmp = (sqrt(((A + C) + hypot(B, (A - C)))) * -sqrt((2.0 * (F * t_1)))) / t_1;
        	}
        	return tmp;
        }
        
        A, C = sort([A, C])
        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 (A <= -0.0024)
        		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(F * t_0) * Float64(C + Float64(C + Float64(-0.5 * Float64(Float64(B * B) / A)))))))) / t_0);
        	else
        		tmp = Float64(Float64(sqrt(Float64(Float64(A + C) + hypot(B, Float64(A - C)))) * Float64(-sqrt(Float64(2.0 * Float64(F * t_1))))) / t_1);
        	end
        	return tmp
        end
        
        NOTE: A and C should be sorted in increasing order 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[A, -0.0024], N[((-N[Sqrt[N[(2.0 * N[(N[(F * t$95$0), $MachinePrecision] * N[(C + N[(C + N[(-0.5 * N[(N[(B * B), $MachinePrecision] / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], N[(N[(N[Sqrt[N[(N[(A + C), $MachinePrecision] + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$1), $MachinePrecision]]]]
        
        \begin{array}{l}
        [A, C] = \mathsf{sort}([A, C])\\
        \\
        \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}\;A \leq -0.0024:\\
        \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(C + \left(C + -0.5 \cdot \frac{B \cdot B}{A}\right)\right)\right)}}{t_0}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot t_1\right)}\right)}{t_1}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if A < -0.00239999999999999979

          1. Initial program 3.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. Simplified8.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 A around -inf 31.5%

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

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

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

            if -0.00239999999999999979 < A

            1. Initial program 26.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*26.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. unpow226.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. +-commutative26.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. unpow226.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*26.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. unpow226.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. Simplified26.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. sqrt-prod29.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. *-commutative29.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. unpow229.5%

                \[\leadsto \frac{-\sqrt{2 \cdot \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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              4. hypot-udef39.5%

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -0.0024:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\right) \cdot \left(C + \left(C + -0.5 \cdot \frac{B \cdot B}{A}\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\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)}\\ \end{array} \]

          Alternative 5: 40.0% accurate, 1.9× speedup?

          \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\ \mathbf{if}\;B \leq -1.25 \cdot 10^{-13}:\\ \;\;\;\;\frac{{\left(F \cdot \left(2 \cdot \left(B \cdot B\right)\right)\right)}^{0.5} \cdot \left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 3700000000000:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_0 \cdot F\right) \cdot \left(2 \cdot C\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right)\\ \end{array} \end{array} \]
          NOTE: A and C should be sorted in increasing order before calling this function.
          (FPCore (A B C F)
           :precision binary64
           (let* ((t_0 (fma B B (* A (* C -4.0)))))
             (if (<= B -1.25e-13)
               (/
                (*
                 (pow (* F (* 2.0 (* B B))) 0.5)
                 (- (sqrt (+ (+ A C) (hypot B (- A C))))))
                (- (* B B) (* 4.0 (* A C))))
               (if (<= B 3700000000000.0)
                 (/ (- (sqrt (* 2.0 (* (* t_0 F) (* 2.0 C))))) t_0)
                 (* (/ (sqrt 2.0) B) (- (sqrt (* F (+ C (hypot C B))))))))))
          assert(A < C);
          double code(double A, double B, double C, double F) {
          	double t_0 = fma(B, B, (A * (C * -4.0)));
          	double tmp;
          	if (B <= -1.25e-13) {
          		tmp = (pow((F * (2.0 * (B * B))), 0.5) * -sqrt(((A + C) + hypot(B, (A - C))))) / ((B * B) - (4.0 * (A * C)));
          	} else if (B <= 3700000000000.0) {
          		tmp = -sqrt((2.0 * ((t_0 * F) * (2.0 * C)))) / t_0;
          	} else {
          		tmp = (sqrt(2.0) / B) * -sqrt((F * (C + hypot(C, B))));
          	}
          	return tmp;
          }
          
          A, C = sort([A, C])
          function code(A, B, C, F)
          	t_0 = fma(B, B, Float64(A * Float64(C * -4.0)))
          	tmp = 0.0
          	if (B <= -1.25e-13)
          		tmp = Float64(Float64((Float64(F * Float64(2.0 * Float64(B * B))) ^ 0.5) * Float64(-sqrt(Float64(Float64(A + C) + hypot(B, Float64(A - C)))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
          	elseif (B <= 3700000000000.0)
          		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(t_0 * F) * Float64(2.0 * C))))) / t_0);
          	else
          		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(-sqrt(Float64(F * Float64(C + hypot(C, B))))));
          	end
          	return tmp
          end
          
          NOTE: A and C should be sorted in increasing order before calling this function.
          code[A_, B_, C_, F_] := Block[{t$95$0 = N[(B * B + N[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -1.25e-13], N[(N[(N[Power[N[(F * N[(2.0 * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision] * (-N[Sqrt[N[(N[(A + C), $MachinePrecision] + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 3700000000000.0], N[((-N[Sqrt[N[(2.0 * N[(N[(t$95$0 * F), $MachinePrecision] * N[(2.0 * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * (-N[Sqrt[N[(F * N[(C + N[Sqrt[C ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]
          
          \begin{array}{l}
          [A, C] = \mathsf{sort}([A, C])\\
          \\
          \begin{array}{l}
          t_0 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\
          \mathbf{if}\;B \leq -1.25 \cdot 10^{-13}:\\
          \;\;\;\;\frac{{\left(F \cdot \left(2 \cdot \left(B \cdot B\right)\right)\right)}^{0.5} \cdot \left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
          
          \mathbf{elif}\;B \leq 3700000000000:\\
          \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_0 \cdot F\right) \cdot \left(2 \cdot C\right)\right)}}{t_0}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if B < -1.24999999999999997e-13

            1. Initial program 13.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*13.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. unpow213.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. +-commutative13.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. unpow213.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*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) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
              6. unpow213.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. Simplified13.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. Step-by-step derivation
              1. sqrt-prod19.0%

                \[\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. *-commutative19.0%

                \[\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. unpow219.0%

                \[\leadsto \frac{-\sqrt{2 \cdot \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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              4. hypot-udef20.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -1.24999999999999997e-13 < B < 3.7e12

            1. Initial program 22.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. Simplified29.8%

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

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

              if 3.7e12 < B

              1. Initial program 18.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. Simplified22.1%

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

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

                    \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(C + \sqrt{{B}^{2} + {C}^{2}}\right) \cdot F}} \]
                  2. distribute-rgt-neg-in25.0%

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

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

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

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

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

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

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

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

              Alternative 6: 40.0% accurate, 1.9× speedup?

              \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\ \mathbf{if}\;B \leq -1.1 \cdot 10^{-15}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B\right)\right)} \cdot \left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 10000000000:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_0 \cdot F\right) \cdot \left(2 \cdot C\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right)\\ \end{array} \end{array} \]
              NOTE: A and C should be sorted in increasing order before calling this function.
              (FPCore (A B C F)
               :precision binary64
               (let* ((t_0 (fma B B (* A (* C -4.0)))))
                 (if (<= B -1.1e-15)
                   (/
                    (* (sqrt (* 2.0 (* F (* B B)))) (- (sqrt (+ (+ A C) (hypot B (- A C))))))
                    (- (* B B) (* 4.0 (* A C))))
                   (if (<= B 10000000000.0)
                     (/ (- (sqrt (* 2.0 (* (* t_0 F) (* 2.0 C))))) t_0)
                     (* (/ (sqrt 2.0) B) (- (sqrt (* F (+ C (hypot C B))))))))))
              assert(A < C);
              double code(double A, double B, double C, double F) {
              	double t_0 = fma(B, B, (A * (C * -4.0)));
              	double tmp;
              	if (B <= -1.1e-15) {
              		tmp = (sqrt((2.0 * (F * (B * B)))) * -sqrt(((A + C) + hypot(B, (A - C))))) / ((B * B) - (4.0 * (A * C)));
              	} else if (B <= 10000000000.0) {
              		tmp = -sqrt((2.0 * ((t_0 * F) * (2.0 * C)))) / t_0;
              	} else {
              		tmp = (sqrt(2.0) / B) * -sqrt((F * (C + hypot(C, B))));
              	}
              	return tmp;
              }
              
              A, C = sort([A, C])
              function code(A, B, C, F)
              	t_0 = fma(B, B, Float64(A * Float64(C * -4.0)))
              	tmp = 0.0
              	if (B <= -1.1e-15)
              		tmp = Float64(Float64(sqrt(Float64(2.0 * Float64(F * Float64(B * B)))) * Float64(-sqrt(Float64(Float64(A + C) + hypot(B, Float64(A - C)))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
              	elseif (B <= 10000000000.0)
              		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(t_0 * F) * Float64(2.0 * C))))) / t_0);
              	else
              		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(-sqrt(Float64(F * Float64(C + hypot(C, B))))));
              	end
              	return tmp
              end
              
              NOTE: A and C should be sorted in increasing order before calling this function.
              code[A_, B_, C_, F_] := Block[{t$95$0 = N[(B * B + N[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -1.1e-15], N[(N[(N[Sqrt[N[(2.0 * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(N[(A + C), $MachinePrecision] + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 10000000000.0], N[((-N[Sqrt[N[(2.0 * N[(N[(t$95$0 * F), $MachinePrecision] * N[(2.0 * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * (-N[Sqrt[N[(F * N[(C + N[Sqrt[C ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]
              
              \begin{array}{l}
              [A, C] = \mathsf{sort}([A, C])\\
              \\
              \begin{array}{l}
              t_0 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\
              \mathbf{if}\;B \leq -1.1 \cdot 10^{-15}:\\
              \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \left(B \cdot B\right)\right)} \cdot \left(-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
              
              \mathbf{elif}\;B \leq 10000000000:\\
              \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_0 \cdot F\right) \cdot \left(2 \cdot C\right)\right)}}{t_0}\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if B < -1.09999999999999993e-15

                1. Initial program 13.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*13.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. unpow213.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. +-commutative13.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. unpow213.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*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) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                  6. unpow213.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. Simplified13.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. Step-by-step derivation
                  1. sqrt-prod19.0%

                    \[\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. *-commutative19.0%

                    \[\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. unpow219.0%

                    \[\leadsto \frac{-\sqrt{2 \cdot \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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                  4. hypot-udef20.5%

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

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

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

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

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

                if -1.09999999999999993e-15 < B < 1e10

                1. Initial program 22.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. Simplified29.8%

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

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

                  if 1e10 < B

                  1. Initial program 18.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. Simplified22.1%

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

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

                        \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(C + \sqrt{{B}^{2} + {C}^{2}}\right) \cdot F}} \]
                      2. distribute-rgt-neg-in25.0%

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

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

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

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

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

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

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

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

                  Alternative 7: 38.8% accurate, 1.9× speedup?

                  \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\ t_1 := C + \mathsf{hypot}\left(C, B\right)\\ \mathbf{if}\;B \leq -4.4 \cdot 10^{-13}:\\ \;\;\;\;\sqrt{2 \cdot \left(t_1 \cdot \left(F \cdot \left(B \cdot B\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 64000000000000:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_0 \cdot F\right) \cdot \left(2 \cdot C\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot t_1}\right)\\ \end{array} \end{array} \]
                  NOTE: A and C should be sorted in increasing order before calling this function.
                  (FPCore (A B C F)
                   :precision binary64
                   (let* ((t_0 (fma B B (* A (* C -4.0)))) (t_1 (+ C (hypot C B))))
                     (if (<= B -4.4e-13)
                       (*
                        (sqrt (* 2.0 (* t_1 (* F (* B B)))))
                        (/ -1.0 (- (* B B) (* 4.0 (* A C)))))
                       (if (<= B 64000000000000.0)
                         (/ (- (sqrt (* 2.0 (* (* t_0 F) (* 2.0 C))))) t_0)
                         (* (/ (sqrt 2.0) B) (- (sqrt (* F t_1))))))))
                  assert(A < C);
                  double code(double A, double B, double C, double F) {
                  	double t_0 = fma(B, B, (A * (C * -4.0)));
                  	double t_1 = C + hypot(C, B);
                  	double tmp;
                  	if (B <= -4.4e-13) {
                  		tmp = sqrt((2.0 * (t_1 * (F * (B * B))))) * (-1.0 / ((B * B) - (4.0 * (A * C))));
                  	} else if (B <= 64000000000000.0) {
                  		tmp = -sqrt((2.0 * ((t_0 * F) * (2.0 * C)))) / t_0;
                  	} else {
                  		tmp = (sqrt(2.0) / B) * -sqrt((F * t_1));
                  	}
                  	return tmp;
                  }
                  
                  A, C = sort([A, C])
                  function code(A, B, C, F)
                  	t_0 = fma(B, B, Float64(A * Float64(C * -4.0)))
                  	t_1 = Float64(C + hypot(C, B))
                  	tmp = 0.0
                  	if (B <= -4.4e-13)
                  		tmp = Float64(sqrt(Float64(2.0 * Float64(t_1 * Float64(F * Float64(B * B))))) * Float64(-1.0 / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))));
                  	elseif (B <= 64000000000000.0)
                  		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(t_0 * F) * Float64(2.0 * C))))) / t_0);
                  	else
                  		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(-sqrt(Float64(F * t_1))));
                  	end
                  	return tmp
                  end
                  
                  NOTE: A and C should be sorted in increasing order before calling this function.
                  code[A_, B_, C_, F_] := Block[{t$95$0 = N[(B * B + N[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(C + N[Sqrt[C ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -4.4e-13], N[(N[Sqrt[N[(2.0 * N[(t$95$1 * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 64000000000000.0], N[((-N[Sqrt[N[(2.0 * N[(N[(t$95$0 * F), $MachinePrecision] * N[(2.0 * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * (-N[Sqrt[N[(F * t$95$1), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]]
                  
                  \begin{array}{l}
                  [A, C] = \mathsf{sort}([A, C])\\
                  \\
                  \begin{array}{l}
                  t_0 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\
                  t_1 := C + \mathsf{hypot}\left(C, B\right)\\
                  \mathbf{if}\;B \leq -4.4 \cdot 10^{-13}:\\
                  \;\;\;\;\sqrt{2 \cdot \left(t_1 \cdot \left(F \cdot \left(B \cdot B\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
                  
                  \mathbf{elif}\;B \leq 64000000000000:\\
                  \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(t_0 \cdot F\right) \cdot \left(2 \cdot C\right)\right)}}{t_0}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot t_1}\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if B < -4.39999999999999993e-13

                    1. Initial program 13.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*13.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. unpow213.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. +-commutative13.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. unpow213.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*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) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{{B}^{2} - \color{blue}{4 \cdot \left(A \cdot C\right)}} \]
                      6. unpow213.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. Simplified13.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. Step-by-step derivation
                      1. div-inv13.8%

                        \[\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-rr15.2%

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

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

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

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

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

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

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

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

                    if -4.39999999999999993e-13 < B < 6.4e13

                    1. Initial program 22.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. Simplified29.8%

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

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

                      if 6.4e13 < B

                      1. Initial program 18.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. Simplified22.1%

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

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

                            \[\leadsto \color{blue}{-\frac{\sqrt{2}}{B} \cdot \sqrt{\left(C + \sqrt{{B}^{2} + {C}^{2}}\right) \cdot F}} \]
                          2. distribute-rgt-neg-in25.0%

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

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

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

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

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

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

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

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

                      Alternative 8: 32.2% accurate, 2.0× speedup?

                      \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := \left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\\ t_1 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\ t_2 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;B \leq -1.85 \cdot 10^{-125}:\\ \;\;\;\;\frac{1}{\frac{t_1}{-\sqrt{t_0 \cdot \left(\left(2 \cdot F\right) \cdot t_1\right)}}}\\ \mathbf{elif}\;B \leq 3 \cdot 10^{-136}:\\ \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot \frac{-1}{t_2}\\ \mathbf{elif}\;B \leq 4.5 \cdot 10^{+92}:\\ \;\;\;\;\frac{-\sqrt{t_0 \cdot \left(2 \cdot \left(F \cdot t_2\right)\right)}}{t_2}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A + \mathsf{hypot}\left(A, B\right)\right)}\right)\\ \end{array} \end{array} \]
                      NOTE: A and C should be sorted in increasing order before calling this function.
                      (FPCore (A B C F)
                       :precision binary64
                       (let* ((t_0 (+ (+ A C) (hypot B (- A C))))
                              (t_1 (+ (* B B) (* -4.0 (* A C))))
                              (t_2 (- (* B B) (* 4.0 (* A C)))))
                         (if (<= B -1.85e-125)
                           (/ 1.0 (/ t_1 (- (sqrt (* t_0 (* (* 2.0 F) t_1))))))
                           (if (<= B 3e-136)
                             (*
                              (sqrt
                               (* 2.0 (fma -8.0 (* F (* A (* C C))) (* 4.0 (* (* B B) (* C F))))))
                              (/ -1.0 t_2))
                             (if (<= B 4.5e+92)
                               (/ (- (sqrt (* t_0 (* 2.0 (* F t_2))))) t_2)
                               (* (/ (sqrt 2.0) B) (- (sqrt (* F (+ A (hypot A B)))))))))))
                      assert(A < C);
                      double code(double A, double B, double C, double F) {
                      	double t_0 = (A + C) + hypot(B, (A - C));
                      	double t_1 = (B * B) + (-4.0 * (A * C));
                      	double t_2 = (B * B) - (4.0 * (A * C));
                      	double tmp;
                      	if (B <= -1.85e-125) {
                      		tmp = 1.0 / (t_1 / -sqrt((t_0 * ((2.0 * F) * t_1))));
                      	} else if (B <= 3e-136) {
                      		tmp = sqrt((2.0 * fma(-8.0, (F * (A * (C * C))), (4.0 * ((B * B) * (C * F)))))) * (-1.0 / t_2);
                      	} else if (B <= 4.5e+92) {
                      		tmp = -sqrt((t_0 * (2.0 * (F * t_2)))) / t_2;
                      	} else {
                      		tmp = (sqrt(2.0) / B) * -sqrt((F * (A + hypot(A, B))));
                      	}
                      	return tmp;
                      }
                      
                      A, C = sort([A, C])
                      function code(A, B, C, F)
                      	t_0 = Float64(Float64(A + C) + hypot(B, Float64(A - C)))
                      	t_1 = Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C)))
                      	t_2 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                      	tmp = 0.0
                      	if (B <= -1.85e-125)
                      		tmp = Float64(1.0 / Float64(t_1 / Float64(-sqrt(Float64(t_0 * Float64(Float64(2.0 * F) * t_1))))));
                      	elseif (B <= 3e-136)
                      		tmp = Float64(sqrt(Float64(2.0 * fma(-8.0, Float64(F * Float64(A * Float64(C * C))), Float64(4.0 * Float64(Float64(B * B) * Float64(C * F)))))) * Float64(-1.0 / t_2));
                      	elseif (B <= 4.5e+92)
                      		tmp = Float64(Float64(-sqrt(Float64(t_0 * Float64(2.0 * Float64(F * t_2))))) / t_2);
                      	else
                      		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(-sqrt(Float64(F * Float64(A + hypot(A, B))))));
                      	end
                      	return tmp
                      end
                      
                      NOTE: A and C should be sorted in increasing order before calling this function.
                      code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(A + C), $MachinePrecision] + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $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[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -1.85e-125], N[(1.0 / N[(t$95$1 / (-N[Sqrt[N[(t$95$0 * N[(N[(2.0 * F), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 3e-136], N[(N[Sqrt[N[(2.0 * N[(-8.0 * N[(F * N[(A * N[(C * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(N[(B * B), $MachinePrecision] * N[(C * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 4.5e+92], N[((-N[Sqrt[N[(t$95$0 * N[(2.0 * N[(F * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$2), $MachinePrecision], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * (-N[Sqrt[N[(F * N[(A + N[Sqrt[A ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]]]]]]]
                      
                      \begin{array}{l}
                      [A, C] = \mathsf{sort}([A, C])\\
                      \\
                      \begin{array}{l}
                      t_0 := \left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\\
                      t_1 := B \cdot B + -4 \cdot \left(A \cdot C\right)\\
                      t_2 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                      \mathbf{if}\;B \leq -1.85 \cdot 10^{-125}:\\
                      \;\;\;\;\frac{1}{\frac{t_1}{-\sqrt{t_0 \cdot \left(\left(2 \cdot F\right) \cdot t_1\right)}}}\\
                      
                      \mathbf{elif}\;B \leq 3 \cdot 10^{-136}:\\
                      \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot \frac{-1}{t_2}\\
                      
                      \mathbf{elif}\;B \leq 4.5 \cdot 10^{+92}:\\
                      \;\;\;\;\frac{-\sqrt{t_0 \cdot \left(2 \cdot \left(F \cdot t_2\right)\right)}}{t_2}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A + \mathsf{hypot}\left(A, B\right)\right)}\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 4 regimes
                      2. if B < -1.85e-125

                        1. Initial program 18.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*18.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. unpow218.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. +-commutative18.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. unpow218.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*18.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. unpow218.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. Simplified18.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. div-inv18.3%

                            \[\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-rr21.7%

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

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

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

                        if -1.85e-125 < B < 2.9999999999999998e-136

                        1. Initial program 17.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*17.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. unpow217.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. +-commutative17.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. unpow217.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*17.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. unpow217.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. Simplified17.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-inv17.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-rr19.7%

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

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

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

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

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

                            \[\leadsto \left(-\sqrt{2 \cdot \mathsf{fma}\left(-8, \left(A \cdot \left(C \cdot C\right)\right) \cdot F, 4 \cdot \color{blue}{\left(\left(C \cdot F\right) \cdot {B}^{2}\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          5. unpow223.9%

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

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

                        if 2.9999999999999998e-136 < B < 4.4999999999999999e92

                        1. Initial program 29.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*29.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. unpow229.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. +-commutative29.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. unpow229.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*29.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. unpow229.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. Simplified29.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. unpow229.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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          2. hypot-udef44.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}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          3. *-un-lft-identity44.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}{1 \cdot \mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        5. Applied egg-rr44.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}{1 \cdot \mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        6. Step-by-step derivation
                          1. *-lft-identity44.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}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        7. Simplified44.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}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                        if 4.4999999999999999e92 < B

                        1. Initial program 8.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. Simplified8.7%

                            \[\leadsto \color{blue}{\frac{-\sqrt{2 \cdot \left(\left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}} \]
                          2. Taylor expanded in C around 0 18.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-neg18.1%

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

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

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

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

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

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

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

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq -1.85 \cdot 10^{-125}:\\ \;\;\;\;\frac{1}{\frac{B \cdot B + -4 \cdot \left(A \cdot C\right)}{-\sqrt{\left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right) \cdot \left(\left(2 \cdot F\right) \cdot \left(B \cdot B + -4 \cdot \left(A \cdot C\right)\right)\right)}}}\\ \mathbf{elif}\;B \leq 3 \cdot 10^{-136}:\\ \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;B \leq 4.5 \cdot 10^{+92}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(A + C\right) + \mathsf{hypot}\left(B, 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)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A + \mathsf{hypot}\left(A, B\right)\right)}\right)\\ \end{array} \]

                        Alternative 9: 29.4% accurate, 2.7× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;A \leq -0.0155:\\ \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right) \cdot \left(2 \cdot \left(F \cdot t_0\right)\right)}}{t_0}\\ \end{array} \end{array} \]
                        NOTE: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                           (if (<= A -0.0155)
                             (*
                              (sqrt (* 2.0 (fma -8.0 (* F (* A (* C C))) (* 4.0 (* (* B B) (* C F))))))
                              (/ -1.0 t_0))
                             (/ (- (sqrt (* (+ (+ A C) (hypot B (- A C))) (* 2.0 (* F t_0))))) t_0))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	double t_0 = (B * B) - (4.0 * (A * C));
                        	double tmp;
                        	if (A <= -0.0155) {
                        		tmp = sqrt((2.0 * fma(-8.0, (F * (A * (C * C))), (4.0 * ((B * B) * (C * F)))))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -sqrt((((A + C) + hypot(B, (A - C))) * (2.0 * (F * t_0)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                        	tmp = 0.0
                        	if (A <= -0.0155)
                        		tmp = Float64(sqrt(Float64(2.0 * fma(-8.0, Float64(F * Float64(A * Float64(C * C))), Float64(4.0 * Float64(Float64(B * B) * Float64(C * F)))))) * Float64(-1.0 / t_0));
                        	else
                        		tmp = Float64(Float64(-sqrt(Float64(Float64(Float64(A + C) + hypot(B, Float64(A - C))) * Float64(2.0 * Float64(F * t_0))))) / t_0);
                        	end
                        	return tmp
                        end
                        
                        NOTE: A and C should be sorted in increasing order 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, -0.0155], N[(N[Sqrt[N[(2.0 * N[(-8.0 * N[(F * N[(A * N[(C * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(N[(B * B), $MachinePrecision] * N[(C * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], N[((-N[Sqrt[N[(N[(N[(A + C), $MachinePrecision] + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision]]]
                        
                        \begin{array}{l}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \begin{array}{l}
                        t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                        \mathbf{if}\;A \leq -0.0155:\\
                        \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{-\sqrt{\left(\left(A + C\right) + \mathsf{hypot}\left(B, 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 < -0.0155

                          1. Initial program 3.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*3.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. unpow23.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. +-commutative3.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. unpow23.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*3.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. unpow23.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. Simplified3.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. div-inv3.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-rr5.0%

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

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

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

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

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

                              \[\leadsto \left(-\sqrt{2 \cdot \mathsf{fma}\left(-8, \left(A \cdot \left(C \cdot C\right)\right) \cdot F, 4 \cdot \color{blue}{\left(\left(C \cdot F\right) \cdot {B}^{2}\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            5. unpow218.6%

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

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

                          if -0.0155 < A

                          1. Initial program 25.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*25.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. unpow225.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. +-commutative25.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. unpow225.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*25.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. unpow225.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. Simplified25.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. unpow225.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 + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            2. hypot-udef32.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}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            3. *-un-lft-identity32.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}{1 \cdot \mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          5. Applied egg-rr32.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}{1 \cdot \mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          6. Step-by-step derivation
                            1. *-lft-identity32.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}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          7. Simplified32.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}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        3. Recombined 2 regimes into one program.
                        4. Final simplification28.4%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -0.0155:\\ \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(A + C\right) + \mathsf{hypot}\left(B, 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 10: 24.3% accurate, 2.7× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ t_1 := \frac{-1}{t_0}\\ \mathbf{if}\;C \leq -2.35 \cdot 10^{-131}:\\ \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot t_1\\ \mathbf{elif}\;C \leq 1.8 \cdot 10^{-24}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \mathsf{hypot}\left(C, B\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)\right)} \cdot 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: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (let* ((t_0 (- (* B B) (* 4.0 (* A C)))) (t_1 (/ -1.0 t_0)))
                           (if (<= C -2.35e-131)
                             (*
                              (sqrt (* 2.0 (fma -8.0 (* F (* A (* C C))) (* 4.0 (* (* B B) (* C F))))))
                              t_1)
                             (if (<= C 1.8e-24)
                               (* (sqrt (* 2.0 (* (+ C (hypot C B)) (* F (* B B))))) t_1)
                               (/ (- (sqrt (* (* 2.0 (* F t_0)) (+ (+ A C) (- C A))))) t_0)))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	double t_0 = (B * B) - (4.0 * (A * C));
                        	double t_1 = -1.0 / t_0;
                        	double tmp;
                        	if (C <= -2.35e-131) {
                        		tmp = sqrt((2.0 * fma(-8.0, (F * (A * (C * C))), (4.0 * ((B * B) * (C * F)))))) * t_1;
                        	} else if (C <= 1.8e-24) {
                        		tmp = sqrt((2.0 * ((C + hypot(C, B)) * (F * (B * B))))) * t_1;
                        	} else {
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                        	t_1 = Float64(-1.0 / t_0)
                        	tmp = 0.0
                        	if (C <= -2.35e-131)
                        		tmp = Float64(sqrt(Float64(2.0 * fma(-8.0, Float64(F * Float64(A * Float64(C * C))), Float64(4.0 * Float64(Float64(B * B) * Float64(C * F)))))) * t_1);
                        	elseif (C <= 1.8e-24)
                        		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(C + hypot(C, B)) * Float64(F * Float64(B * B))))) * 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
                        
                        NOTE: A and C should be sorted in increasing order 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[(-1.0 / t$95$0), $MachinePrecision]}, If[LessEqual[C, -2.35e-131], N[(N[Sqrt[N[(2.0 * N[(-8.0 * N[(F * N[(A * N[(C * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(N[(B * B), $MachinePrecision] * N[(C * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[C, 1.8e-24], N[(N[Sqrt[N[(2.0 * N[(N[(C + N[Sqrt[C ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision] * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * t$95$1), $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}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \begin{array}{l}
                        t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                        t_1 := \frac{-1}{t_0}\\
                        \mathbf{if}\;C \leq -2.35 \cdot 10^{-131}:\\
                        \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot t_1\\
                        
                        \mathbf{elif}\;C \leq 1.8 \cdot 10^{-24}:\\
                        \;\;\;\;\sqrt{2 \cdot \left(\left(C + \mathsf{hypot}\left(C, B\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)\right)} \cdot 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 3 regimes
                        2. if C < -2.3499999999999998e-131

                          1. Initial program 6.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*6.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. unpow26.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. +-commutative6.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. unpow26.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*6.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. unpow26.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. Simplified6.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. Step-by-step derivation
                            1. div-inv6.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) + \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-rr7.9%

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

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

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

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

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

                              \[\leadsto \left(-\sqrt{2 \cdot \mathsf{fma}\left(-8, \left(A \cdot \left(C \cdot C\right)\right) \cdot F, 4 \cdot \color{blue}{\left(\left(C \cdot F\right) \cdot {B}^{2}\right)}\right)}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            5. unpow26.6%

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

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

                          if -2.3499999999999998e-131 < C < 1.8e-24

                          1. Initial program 30.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*30.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. unpow230.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. +-commutative30.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. unpow230.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*30.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. unpow230.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. Simplified30.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. div-inv30.4%

                              \[\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-rr35.9%

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

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

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

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

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

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

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

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

                          if 1.8e-24 < C

                          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 33.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-neg33.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-neg33.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. Simplified33.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 3 regimes into one program.
                        4. Final simplification18.5%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -2.35 \cdot 10^{-131}:\\ \;\;\;\;\sqrt{2 \cdot \mathsf{fma}\left(-8, F \cdot \left(A \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)} \cdot \frac{-1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;C \leq 1.8 \cdot 10^{-24}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \mathsf{hypot}\left(C, B\right)\right) \cdot \left(F \cdot \left(B \cdot B\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 11: 21.0% accurate, 2.8× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;C \leq 6.8 \cdot 10^{-25}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(B \cdot B\right) \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(A, B\right)\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \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: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                           (if (<= C 6.8e-25)
                             (* (sqrt (* 2.0 (* (* B B) (* F (+ A (hypot A B)))))) (/ -1.0 t_0))
                             (/ (- (sqrt (* (* 2.0 (* F t_0)) (+ (+ A C) (- C A))))) t_0))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	double t_0 = (B * B) - (4.0 * (A * C));
                        	double tmp;
                        	if (C <= 6.8e-25) {
                        		tmp = sqrt((2.0 * ((B * B) * (F * (A + hypot(A, B)))))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        assert A < C;
                        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 <= 6.8e-25) {
                        		tmp = Math.sqrt((2.0 * ((B * B) * (F * (A + Math.hypot(A, B)))))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -Math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	t_0 = (B * B) - (4.0 * (A * C))
                        	tmp = 0
                        	if C <= 6.8e-25:
                        		tmp = math.sqrt((2.0 * ((B * B) * (F * (A + math.hypot(A, B)))))) * (-1.0 / t_0)
                        	else:
                        		tmp = -math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0
                        	return tmp
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                        	tmp = 0.0
                        	if (C <= 6.8e-25)
                        		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(B * B) * Float64(F * Float64(A + hypot(A, B)))))) * Float64(-1.0 / t_0));
                        	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
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp_2 = code(A, B, C, F)
                        	t_0 = (B * B) - (4.0 * (A * C));
                        	tmp = 0.0;
                        	if (C <= 6.8e-25)
                        		tmp = sqrt((2.0 * ((B * B) * (F * (A + hypot(A, B)))))) * (-1.0 / t_0);
                        	else
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        NOTE: A and C should be sorted in increasing order 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, 6.8e-25], N[(N[Sqrt[N[(2.0 * N[(N[(B * B), $MachinePrecision] * N[(F * N[(A + N[Sqrt[A ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $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}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \begin{array}{l}
                        t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                        \mathbf{if}\;C \leq 6.8 \cdot 10^{-25}:\\
                        \;\;\;\;\sqrt{2 \cdot \left(\left(B \cdot B\right) \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(A, B\right)\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                        
                        \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 2 regimes
                        2. if C < 6.80000000000000003e-25

                          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. Step-by-step derivation
                            1. div-inv17.3%

                              \[\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-rr20.5%

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

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

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

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

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

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

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

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

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

                          if 6.80000000000000003e-25 < C

                          1. Initial program 26.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*26.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. unpow226.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. +-commutative26.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. unpow226.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*26.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. unpow226.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. Simplified26.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. Taylor expanded in A around -inf 32.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}{\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-neg32.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) + \left(C + \color{blue}{\left(-A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            2. sub-neg32.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          6. Simplified32.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        3. Recombined 2 regimes into one program.
                        4. Final simplification20.3%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq 6.8 \cdot 10^{-25}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(B \cdot B\right) \cdot \left(F \cdot \left(A + \mathsf{hypot}\left(A, B\right)\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 12: 21.3% accurate, 2.8× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;C \leq 2.3 \cdot 10^{-23}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \mathsf{hypot}\left(C, B\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)\right)} \cdot \frac{-1}{t_0}\\ \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: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                           (if (<= C 2.3e-23)
                             (* (sqrt (* 2.0 (* (+ C (hypot C B)) (* F (* B B))))) (/ -1.0 t_0))
                             (/ (- (sqrt (* (* 2.0 (* F t_0)) (+ (+ A C) (- C A))))) t_0))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	double t_0 = (B * B) - (4.0 * (A * C));
                        	double tmp;
                        	if (C <= 2.3e-23) {
                        		tmp = sqrt((2.0 * ((C + hypot(C, B)) * (F * (B * B))))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        assert A < C;
                        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.3e-23) {
                        		tmp = Math.sqrt((2.0 * ((C + Math.hypot(C, B)) * (F * (B * B))))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -Math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	t_0 = (B * B) - (4.0 * (A * C))
                        	tmp = 0
                        	if C <= 2.3e-23:
                        		tmp = math.sqrt((2.0 * ((C + math.hypot(C, B)) * (F * (B * B))))) * (-1.0 / t_0)
                        	else:
                        		tmp = -math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0
                        	return tmp
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                        	tmp = 0.0
                        	if (C <= 2.3e-23)
                        		tmp = Float64(sqrt(Float64(2.0 * Float64(Float64(C + hypot(C, B)) * Float64(F * Float64(B * B))))) * Float64(-1.0 / t_0));
                        	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
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp_2 = code(A, B, C, F)
                        	t_0 = (B * B) - (4.0 * (A * C));
                        	tmp = 0.0;
                        	if (C <= 2.3e-23)
                        		tmp = sqrt((2.0 * ((C + hypot(C, B)) * (F * (B * B))))) * (-1.0 / t_0);
                        	else
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        NOTE: A and C should be sorted in increasing order 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.3e-23], N[(N[Sqrt[N[(2.0 * N[(N[(C + N[Sqrt[C ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision] * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $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}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \begin{array}{l}
                        t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                        \mathbf{if}\;C \leq 2.3 \cdot 10^{-23}:\\
                        \;\;\;\;\sqrt{2 \cdot \left(\left(C + \mathsf{hypot}\left(C, B\right)\right) \cdot \left(F \cdot \left(B \cdot B\right)\right)\right)} \cdot \frac{-1}{t_0}\\
                        
                        \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 2 regimes
                        2. if C < 2.3000000000000001e-23

                          1. Initial program 17.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*17.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. unpow217.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. +-commutative17.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. unpow217.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*17.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. unpow217.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. Simplified17.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. Step-by-step derivation
                            1. div-inv17.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) + \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-rr20.9%

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

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

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

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

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

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

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

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

                          if 2.3000000000000001e-23 < C

                          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 33.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-neg33.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-neg33.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. Simplified33.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 2 regimes into one program.
                        4. Final simplification18.1%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq 2.3 \cdot 10^{-23}:\\ \;\;\;\;\sqrt{2 \cdot \left(\left(C + \mathsf{hypot}\left(C, B\right)\right) \cdot \left(F \cdot \left(B \cdot B\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 13: 17.1% accurate, 2.9× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;C \leq 7.5 \cdot 10^{-137}:\\ \;\;\;\;\sqrt{2 \cdot \left({B}^{3} \cdot \left(-F\right)\right)} \cdot \frac{-1}{t_0}\\ \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: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                           (if (<= C 7.5e-137)
                             (* (sqrt (* 2.0 (* (pow B 3.0) (- F)))) (/ -1.0 t_0))
                             (/ (- (sqrt (* (* 2.0 (* F t_0)) (+ (+ A C) (- C A))))) t_0))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	double t_0 = (B * B) - (4.0 * (A * C));
                        	double tmp;
                        	if (C <= 7.5e-137) {
                        		tmp = sqrt((2.0 * (pow(B, 3.0) * -F))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        NOTE: A and C should be sorted in increasing order 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 <= 7.5d-137) then
                                tmp = sqrt((2.0d0 * ((b ** 3.0d0) * -f))) * ((-1.0d0) / t_0)
                            else
                                tmp = -sqrt(((2.0d0 * (f * t_0)) * ((a + c) + (c - a)))) / t_0
                            end if
                            code = tmp
                        end function
                        
                        assert A < C;
                        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 <= 7.5e-137) {
                        		tmp = Math.sqrt((2.0 * (Math.pow(B, 3.0) * -F))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -Math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	t_0 = (B * B) - (4.0 * (A * C))
                        	tmp = 0
                        	if C <= 7.5e-137:
                        		tmp = math.sqrt((2.0 * (math.pow(B, 3.0) * -F))) * (-1.0 / t_0)
                        	else:
                        		tmp = -math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0
                        	return tmp
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                        	tmp = 0.0
                        	if (C <= 7.5e-137)
                        		tmp = Float64(sqrt(Float64(2.0 * Float64((B ^ 3.0) * Float64(-F)))) * Float64(-1.0 / t_0));
                        	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
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp_2 = code(A, B, C, F)
                        	t_0 = (B * B) - (4.0 * (A * C));
                        	tmp = 0.0;
                        	if (C <= 7.5e-137)
                        		tmp = sqrt((2.0 * ((B ^ 3.0) * -F))) * (-1.0 / t_0);
                        	else
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        NOTE: A and C should be sorted in increasing order 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, 7.5e-137], N[(N[Sqrt[N[(2.0 * N[(N[Power[B, 3.0], $MachinePrecision] * (-F)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $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}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \begin{array}{l}
                        t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                        \mathbf{if}\;C \leq 7.5 \cdot 10^{-137}:\\
                        \;\;\;\;\sqrt{2 \cdot \left({B}^{3} \cdot \left(-F\right)\right)} \cdot \frac{-1}{t_0}\\
                        
                        \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 2 regimes
                        2. if C < 7.4999999999999995e-137

                          1. Initial program 15.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*15.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. unpow215.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. +-commutative15.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. unpow215.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*15.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. unpow215.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. Simplified15.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. Step-by-step derivation
                            1. div-inv15.8%

                              \[\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-rr18.2%

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

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

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

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

                          if 7.4999999999999995e-137 < C

                          1. Initial program 27.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*27.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. unpow227.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. +-commutative27.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. unpow227.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*27.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. unpow227.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. Simplified27.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 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) + \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-neg26.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) + \left(C + \color{blue}{\left(-A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            2. sub-neg26.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          6. Simplified26.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        3. Recombined 2 regimes into one program.
                        4. Final simplification13.4%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq 7.5 \cdot 10^{-137}:\\ \;\;\;\;\sqrt{2 \cdot \left({B}^{3} \cdot \left(-F\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 14: 16.5% accurate, 2.9× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;C \leq 1.85 \cdot 10^{-25}:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot {B}^{3}\right)} \cdot \frac{-1}{t_0}\\ \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: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                           (if (<= C 1.85e-25)
                             (* (sqrt (* 2.0 (* F (pow B 3.0)))) (/ -1.0 t_0))
                             (/ (- (sqrt (* (* 2.0 (* F t_0)) (+ (+ A C) (- C A))))) t_0))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	double t_0 = (B * B) - (4.0 * (A * C));
                        	double tmp;
                        	if (C <= 1.85e-25) {
                        		tmp = sqrt((2.0 * (F * pow(B, 3.0)))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        NOTE: A and C should be sorted in increasing order 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 <= 1.85d-25) then
                                tmp = sqrt((2.0d0 * (f * (b ** 3.0d0)))) * ((-1.0d0) / t_0)
                            else
                                tmp = -sqrt(((2.0d0 * (f * t_0)) * ((a + c) + (c - a)))) / t_0
                            end if
                            code = tmp
                        end function
                        
                        assert A < C;
                        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 <= 1.85e-25) {
                        		tmp = Math.sqrt((2.0 * (F * Math.pow(B, 3.0)))) * (-1.0 / t_0);
                        	} else {
                        		tmp = -Math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	}
                        	return tmp;
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	t_0 = (B * B) - (4.0 * (A * C))
                        	tmp = 0
                        	if C <= 1.85e-25:
                        		tmp = math.sqrt((2.0 * (F * math.pow(B, 3.0)))) * (-1.0 / t_0)
                        	else:
                        		tmp = -math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0
                        	return tmp
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                        	tmp = 0.0
                        	if (C <= 1.85e-25)
                        		tmp = Float64(sqrt(Float64(2.0 * Float64(F * (B ^ 3.0)))) * Float64(-1.0 / t_0));
                        	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
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp_2 = code(A, B, C, F)
                        	t_0 = (B * B) - (4.0 * (A * C));
                        	tmp = 0.0;
                        	if (C <= 1.85e-25)
                        		tmp = sqrt((2.0 * (F * (B ^ 3.0)))) * (-1.0 / t_0);
                        	else
                        		tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        NOTE: A and C should be sorted in increasing order 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, 1.85e-25], N[(N[Sqrt[N[(2.0 * N[(F * N[Power[B, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / t$95$0), $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}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \begin{array}{l}
                        t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                        \mathbf{if}\;C \leq 1.85 \cdot 10^{-25}:\\
                        \;\;\;\;\sqrt{2 \cdot \left(F \cdot {B}^{3}\right)} \cdot \frac{-1}{t_0}\\
                        
                        \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 2 regimes
                        2. if C < 1.85000000000000004e-25

                          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. Step-by-step derivation
                            1. div-inv17.3%

                              \[\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-rr20.5%

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

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

                          if 1.85000000000000004e-25 < C

                          1. Initial program 26.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*26.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. unpow226.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. +-commutative26.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. unpow226.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*26.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. unpow226.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. Simplified26.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. Taylor expanded in A around -inf 32.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}{\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-neg32.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) + \left(C + \color{blue}{\left(-A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                            2. sub-neg32.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          6. Simplified32.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        3. Recombined 2 regimes into one program.
                        4. Final simplification12.8%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq 1.85 \cdot 10^{-25}:\\ \;\;\;\;\sqrt{2 \cdot \left(F \cdot {B}^{3}\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 15: 15.3% accurate, 4.8× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \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: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                           (/ (- (sqrt (* (* 2.0 (* F t_0)) (+ (+ A C) (- C A))))) t_0)))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	double t_0 = (B * B) - (4.0 * (A * C));
                        	return -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        }
                        
                        NOTE: A and C should be sorted in increasing order 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
                            t_0 = (b * b) - (4.0d0 * (a * c))
                            code = -sqrt(((2.0d0 * (f * t_0)) * ((a + c) + (c - a)))) / t_0
                        end function
                        
                        assert A < C;
                        public static double code(double A, double B, double C, double F) {
                        	double t_0 = (B * B) - (4.0 * (A * C));
                        	return -Math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	t_0 = (B * B) - (4.0 * (A * C))
                        	return -math.sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                        	return Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(F * t_0)) * Float64(Float64(A + C) + Float64(C - A))))) / t_0)
                        end
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp = code(A, B, C, F)
                        	t_0 = (B * B) - (4.0 * (A * C));
                        	tmp = -sqrt(((2.0 * (F * t_0)) * ((A + C) + (C - A)))) / t_0;
                        end
                        
                        NOTE: A and C should be sorted in increasing order 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]}, 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}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \begin{array}{l}
                        t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                        \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. Initial program 19.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*19.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. unpow219.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. +-commutative19.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. unpow219.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*19.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. unpow219.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. Simplified19.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 A around -inf 9.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}{\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-neg9.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) + \left(C + \color{blue}{\left(-A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          2. sub-neg9.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        6. Simplified9.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        7. Final simplification9.9%

                          \[\leadsto \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)} \]

                        Alternative 16: 2.1% accurate, 5.3× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \frac{-\sqrt{-16 \cdot \left(\left(C \cdot F\right) \cdot \left(A \cdot A\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \end{array} \]
                        NOTE: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (/ (- (sqrt (* -16.0 (* (* C F) (* A A))))) (- (* B B) (* 4.0 (* A C)))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	return -sqrt((-16.0 * ((C * F) * (A * A)))) / ((B * B) - (4.0 * (A * C)));
                        }
                        
                        NOTE: A and C should be sorted in increasing order 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 = -sqrt(((-16.0d0) * ((c * f) * (a * a)))) / ((b * b) - (4.0d0 * (a * c)))
                        end function
                        
                        assert A < C;
                        public static double code(double A, double B, double C, double F) {
                        	return -Math.sqrt((-16.0 * ((C * F) * (A * A)))) / ((B * B) - (4.0 * (A * C)));
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	return -math.sqrt((-16.0 * ((C * F) * (A * A)))) / ((B * B) - (4.0 * (A * C)))
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	return Float64(Float64(-sqrt(Float64(-16.0 * Float64(Float64(C * F) * Float64(A * A))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))))
                        end
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp = code(A, B, C, F)
                        	tmp = -sqrt((-16.0 * ((C * F) * (A * A)))) / ((B * B) - (4.0 * (A * C)));
                        end
                        
                        NOTE: A and C should be sorted in increasing order before calling this function.
                        code[A_, B_, C_, F_] := N[((-N[Sqrt[N[(-16.0 * N[(N[(C * F), $MachinePrecision] * N[(A * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                        
                        \begin{array}{l}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \frac{-\sqrt{-16 \cdot \left(\left(C \cdot F\right) \cdot \left(A \cdot A\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
                        \end{array}
                        
                        Derivation
                        1. Initial program 19.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*19.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. unpow219.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. +-commutative19.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. unpow219.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*19.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. unpow219.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. Simplified19.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 A around inf 9.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. Taylor expanded in A around inf 8.1%

                          \[\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. unpow28.1%

                            \[\leadsto \frac{-\sqrt{-16 \cdot \left(\color{blue}{\left(A \cdot A\right)} \cdot \left(C \cdot F\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        7. Simplified8.1%

                          \[\leadsto \frac{-\sqrt{\color{blue}{-16 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        8. Final simplification8.1%

                          \[\leadsto \frac{-\sqrt{-16 \cdot \left(\left(C \cdot F\right) \cdot \left(A \cdot A\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                        Alternative 17: 5.4% accurate, 5.3× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \frac{-\sqrt{-8 \cdot \left(F \cdot \left(A \cdot \left(C \cdot C\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \end{array} \]
                        NOTE: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F)
                         :precision binary64
                         (/ (- (sqrt (* -8.0 (* F (* A (* C C)))))) (- (* B B) (* 4.0 (* A C)))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	return -sqrt((-8.0 * (F * (A * (C * C))))) / ((B * B) - (4.0 * (A * C)));
                        }
                        
                        NOTE: A and C should be sorted in increasing order 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 = -sqrt(((-8.0d0) * (f * (a * (c * c))))) / ((b * b) - (4.0d0 * (a * c)))
                        end function
                        
                        assert A < C;
                        public static double code(double A, double B, double C, double F) {
                        	return -Math.sqrt((-8.0 * (F * (A * (C * C))))) / ((B * B) - (4.0 * (A * C)));
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	return -math.sqrt((-8.0 * (F * (A * (C * C))))) / ((B * B) - (4.0 * (A * C)))
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	return Float64(Float64(-sqrt(Float64(-8.0 * Float64(F * Float64(A * Float64(C * C)))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))))
                        end
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp = code(A, B, C, F)
                        	tmp = -sqrt((-8.0 * (F * (A * (C * C))))) / ((B * B) - (4.0 * (A * C)));
                        end
                        
                        NOTE: A and C should be sorted in increasing order before calling this function.
                        code[A_, B_, C_, F_] := N[((-N[Sqrt[N[(-8.0 * N[(F * N[(A * N[(C * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                        
                        \begin{array}{l}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \frac{-\sqrt{-8 \cdot \left(F \cdot \left(A \cdot \left(C \cdot C\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
                        \end{array}
                        
                        Derivation
                        1. Initial program 19.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*19.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. unpow219.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. +-commutative19.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. unpow219.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*19.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. unpow219.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. Simplified19.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 A around inf 9.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. Taylor expanded in C around inf 4.0%

                          \[\leadsto \frac{-\sqrt{\color{blue}{-8 \cdot \left(A \cdot \left({C}^{2} \cdot F\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        6. Step-by-step derivation
                          1. associate-*r*4.2%

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

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

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

                          \[\leadsto \frac{-\sqrt{-8 \cdot \left(F \cdot \left(A \cdot \left(C \cdot C\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                        Alternative 18: 1.1% accurate, 5.8× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right) \end{array} \]
                        NOTE: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F) :precision binary64 (* (/ 2.0 B) (- (pow (* A F) 0.5))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	return (2.0 / B) * -pow((A * F), 0.5);
                        }
                        
                        NOTE: A and C should be sorted in increasing order 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
                        
                        assert A < C;
                        public static double code(double A, double B, double C, double F) {
                        	return (2.0 / B) * -Math.pow((A * F), 0.5);
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	return (2.0 / B) * -math.pow((A * F), 0.5)
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	return Float64(Float64(2.0 / B) * Float64(-(Float64(A * F) ^ 0.5)))
                        end
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp = code(A, B, C, F)
                        	tmp = (2.0 / B) * -((A * F) ^ 0.5);
                        end
                        
                        NOTE: A and C should be sorted in increasing order 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}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right)
                        \end{array}
                        
                        Derivation
                        1. Initial program 19.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*19.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. unpow219.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. +-commutative19.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. unpow219.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*19.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. unpow219.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. Simplified19.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 A around inf 9.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. Taylor expanded in C around 0 3.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-neg3.0%

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

                            \[\leadsto -\frac{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}{B} \cdot \sqrt{A \cdot F} \]
                          3. rem-square-sqrt3.0%

                            \[\leadsto -\frac{\color{blue}{2}}{B} \cdot \sqrt{A \cdot F} \]
                        7. Simplified3.0%

                          \[\leadsto \color{blue}{-\frac{2}{B} \cdot \sqrt{A \cdot F}} \]
                        8. Step-by-step derivation
                          1. pow1/23.2%

                            \[\leadsto -\frac{2}{B} \cdot \color{blue}{{\left(A \cdot F\right)}^{0.5}} \]
                          2. *-commutative3.2%

                            \[\leadsto -\frac{2}{B} \cdot {\color{blue}{\left(F \cdot A\right)}}^{0.5} \]
                        9. Applied egg-rr3.2%

                          \[\leadsto -\frac{2}{B} \cdot \color{blue}{{\left(F \cdot A\right)}^{0.5}} \]
                        10. Final simplification3.2%

                          \[\leadsto \frac{2}{B} \cdot \left(-{\left(A \cdot F\right)}^{0.5}\right) \]

                        Alternative 19: 0.9% accurate, 5.9× speedup?

                        \[\begin{array}{l} [A, C] = \mathsf{sort}([A, C])\\ \\ \frac{2}{B} \cdot \sqrt{A \cdot F} \end{array} \]
                        NOTE: A and C should be sorted in increasing order before calling this function.
                        (FPCore (A B C F) :precision binary64 (* (/ 2.0 B) (sqrt (* A F))))
                        assert(A < C);
                        double code(double A, double B, double C, double F) {
                        	return (2.0 / B) * sqrt((A * F));
                        }
                        
                        NOTE: A and C should be sorted in increasing order 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
                        
                        assert A < C;
                        public static double code(double A, double B, double C, double F) {
                        	return (2.0 / B) * Math.sqrt((A * F));
                        }
                        
                        [A, C] = sort([A, C])
                        def code(A, B, C, F):
                        	return (2.0 / B) * math.sqrt((A * F))
                        
                        A, C = sort([A, C])
                        function code(A, B, C, F)
                        	return Float64(Float64(2.0 / B) * sqrt(Float64(A * F)))
                        end
                        
                        A, C = num2cell(sort([A, C])){:}
                        function tmp = code(A, B, C, F)
                        	tmp = (2.0 / B) * sqrt((A * F));
                        end
                        
                        NOTE: A and C should be sorted in increasing order 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}
                        [A, C] = \mathsf{sort}([A, C])\\
                        \\
                        \frac{2}{B} \cdot \sqrt{A \cdot F}
                        \end{array}
                        
                        Derivation
                        1. Initial program 19.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*19.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. unpow219.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. +-commutative19.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. unpow219.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*19.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. unpow219.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. Simplified19.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 A around inf 9.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. Taylor expanded in B around -inf 3.3%

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

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

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

                            \[\leadsto \sqrt{F \cdot A} \cdot \frac{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}{B} \]
                          3. rem-square-sqrt3.4%

                            \[\leadsto \sqrt{F \cdot A} \cdot \frac{\color{blue}{2}}{B} \]
                        8. Simplified3.4%

                          \[\leadsto \color{blue}{\sqrt{F \cdot A} \cdot \frac{2}{B}} \]
                        9. Final simplification3.4%

                          \[\leadsto \frac{2}{B} \cdot \sqrt{A \cdot F} \]

                        Reproduce

                        ?
                        herbie shell --seed 2023194 
                        (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))))