ABCF->ab-angle a

Percentage Accurate: 18.6% → 52.6%
Time: 27.8s
Alternatives: 15
Speedup: 6.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 15 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.6% 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: 52.6% accurate, 1.2× speedup?

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (pow.f64 B 2) < 2.00000000000000004e234

    1. Initial program 30.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. Simplified37.3%

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

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

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

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

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

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

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

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

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

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

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

      if 2.00000000000000004e234 < (pow.f64 B 2)

      1. Initial program 0.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. Simplified3.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 2: 52.5% accurate, 1.5× speedup?

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

        1. Initial program 26.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 3.7999999999999998e120 < B

        1. Initial program 0.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. Simplified3.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 3: 45.7% accurate, 1.9× speedup?

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

          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. Step-by-step derivation
            1. distribute-frac-neg26.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)}} \]
          5. Applied egg-rr33.0%

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

          if 4.19999999999999985e-114 < B < 1e-83

          1. Initial program 15.1%

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

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

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

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

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

            if 1e-83 < B < 2.2999999999999998e25

            1. Initial program 39.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*39.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. unpow239.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. +-commutative39.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. unpow239.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*39.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. unpow239.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. Simplified39.0%

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

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

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

            if 2.2999999999999998e25 < B

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto -\sqrt{2} \cdot \color{blue}{\frac{\sqrt{F}}{\sqrt{B}}} \]
              9. Applied egg-rr60.1%

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

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

            Alternative 4: 51.0% accurate, 1.9× speedup?

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

              1. Initial program 26.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 5.49999999999999965e117 < B

              1. Initial program 0.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. Simplified3.2%

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                8. Step-by-step derivation
                  1. sqrt-div77.0%

                    \[\leadsto -\sqrt{2} \cdot \color{blue}{\frac{\sqrt{F}}{\sqrt{B}}} \]
                9. Applied egg-rr77.0%

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

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

              Alternative 5: 45.9% accurate, 1.9× speedup?

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

                1. Initial program 26.6%

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                4. Step-by-step derivation
                  1. distribute-frac-neg26.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)}} \]
                5. Applied egg-rr33.0%

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

                if 3.00000000000000006e-99 < B < 1.6000000000000001e-83

                1. Initial program 3.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. Simplified7.2%

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

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

                  if 1.6000000000000001e-83 < B < 3.8e25

                  1. Initial program 39.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*39.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. unpow239.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. +-commutative39.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. unpow239.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*39.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. unpow239.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. Simplified39.0%

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

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

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

                  if 3.8e25 < B

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto -\sqrt{2} \cdot \color{blue}{\frac{\sqrt{F}}{\sqrt{B}}} \]
                    9. Applied egg-rr60.1%

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

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

                  Alternative 6: 46.1% accurate, 2.1× speedup?

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

                    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. Step-by-step derivation
                      1. distribute-frac-neg27.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)}} \]
                    5. Applied egg-rr33.4%

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

                    if 2.6e20 < B

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto -\sqrt{2} \cdot \color{blue}{\frac{\sqrt{F}}{\sqrt{B}}} \]
                      9. Applied egg-rr60.1%

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

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

                    Alternative 7: 39.0% accurate, 2.7× speedup?

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

                      1. Initial program 27.1%

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

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

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

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

                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \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.1%

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

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

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

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

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

                      if 4.4999999999999998e66 < B

                      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.3%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                        7. Simplified54.1%

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

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

                            \[\leadsto -{\color{blue}{\left(\sqrt{2 \cdot \frac{F}{B}}\right)}}^{1} \]
                        9. Applied egg-rr54.3%

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

                            \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                        11. Simplified54.3%

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

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

                      Alternative 8: 38.6% accurate, 2.7× speedup?

                      \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} \mathbf{if}\;F \leq 3.6 \cdot 10^{-301}:\\ \;\;\;\;\frac{\sqrt{\left(B \cdot B + C \cdot \left(-4 \cdot A\right)\right) \cdot \left(2 \cdot F\right)} \cdot \left(-\sqrt{A + \left(A + C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 2.85 \cdot 10^{-55}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\ \mathbf{else}:\\ \;\;\;\;-\sqrt{2 \cdot \frac{F}{B}}\\ \end{array} \end{array} \]
                      NOTE: B should be positive before calling this function
                      (FPCore (A B C F)
                       :precision binary64
                       (if (<= F 3.6e-301)
                         (/
                          (*
                           (sqrt (* (+ (* B B) (* C (* -4.0 A))) (* 2.0 F)))
                           (- (sqrt (+ A (+ A C)))))
                          (- (* B B) (* 4.0 (* A C))))
                         (if (<= F 2.85e-55)
                           (* (/ (sqrt 2.0) B) (- (sqrt (* B F))))
                           (- (sqrt (* 2.0 (/ F B)))))))
                      B = abs(B);
                      double code(double A, double B, double C, double F) {
                      	double tmp;
                      	if (F <= 3.6e-301) {
                      		tmp = (sqrt((((B * B) + (C * (-4.0 * A))) * (2.0 * F))) * -sqrt((A + (A + C)))) / ((B * B) - (4.0 * (A * C)));
                      	} else if (F <= 2.85e-55) {
                      		tmp = (sqrt(2.0) / B) * -sqrt((B * F));
                      	} else {
                      		tmp = -sqrt((2.0 * (F / B)));
                      	}
                      	return tmp;
                      }
                      
                      NOTE: B should be positive before calling this function
                      real(8) function code(a, b, c, f)
                          real(8), intent (in) :: a
                          real(8), intent (in) :: b
                          real(8), intent (in) :: c
                          real(8), intent (in) :: f
                          real(8) :: tmp
                          if (f <= 3.6d-301) then
                              tmp = (sqrt((((b * b) + (c * ((-4.0d0) * a))) * (2.0d0 * f))) * -sqrt((a + (a + c)))) / ((b * b) - (4.0d0 * (a * c)))
                          else if (f <= 2.85d-55) then
                              tmp = (sqrt(2.0d0) / b) * -sqrt((b * f))
                          else
                              tmp = -sqrt((2.0d0 * (f / b)))
                          end if
                          code = tmp
                      end function
                      
                      B = Math.abs(B);
                      public static double code(double A, double B, double C, double F) {
                      	double tmp;
                      	if (F <= 3.6e-301) {
                      		tmp = (Math.sqrt((((B * B) + (C * (-4.0 * A))) * (2.0 * F))) * -Math.sqrt((A + (A + C)))) / ((B * B) - (4.0 * (A * C)));
                      	} else if (F <= 2.85e-55) {
                      		tmp = (Math.sqrt(2.0) / B) * -Math.sqrt((B * F));
                      	} else {
                      		tmp = -Math.sqrt((2.0 * (F / B)));
                      	}
                      	return tmp;
                      }
                      
                      B = abs(B)
                      def code(A, B, C, F):
                      	tmp = 0
                      	if F <= 3.6e-301:
                      		tmp = (math.sqrt((((B * B) + (C * (-4.0 * A))) * (2.0 * F))) * -math.sqrt((A + (A + C)))) / ((B * B) - (4.0 * (A * C)))
                      	elif F <= 2.85e-55:
                      		tmp = (math.sqrt(2.0) / B) * -math.sqrt((B * F))
                      	else:
                      		tmp = -math.sqrt((2.0 * (F / B)))
                      	return tmp
                      
                      B = abs(B)
                      function code(A, B, C, F)
                      	tmp = 0.0
                      	if (F <= 3.6e-301)
                      		tmp = Float64(Float64(sqrt(Float64(Float64(Float64(B * B) + Float64(C * Float64(-4.0 * A))) * Float64(2.0 * F))) * Float64(-sqrt(Float64(A + Float64(A + C))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
                      	elseif (F <= 2.85e-55)
                      		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(-sqrt(Float64(B * F))));
                      	else
                      		tmp = Float64(-sqrt(Float64(2.0 * Float64(F / B))));
                      	end
                      	return tmp
                      end
                      
                      B = abs(B)
                      function tmp_2 = code(A, B, C, F)
                      	tmp = 0.0;
                      	if (F <= 3.6e-301)
                      		tmp = (sqrt((((B * B) + (C * (-4.0 * A))) * (2.0 * F))) * -sqrt((A + (A + C)))) / ((B * B) - (4.0 * (A * C)));
                      	elseif (F <= 2.85e-55)
                      		tmp = (sqrt(2.0) / B) * -sqrt((B * F));
                      	else
                      		tmp = -sqrt((2.0 * (F / B)));
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      NOTE: B should be positive before calling this function
                      code[A_, B_, C_, F_] := If[LessEqual[F, 3.6e-301], N[(N[(N[Sqrt[N[(N[(N[(B * B), $MachinePrecision] + N[(C * N[(-4.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 * F), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 2.85e-55], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * (-N[Sqrt[N[(B * F), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], (-N[Sqrt[N[(2.0 * N[(F / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])]]
                      
                      \begin{array}{l}
                      B = |B|\\
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;F \leq 3.6 \cdot 10^{-301}:\\
                      \;\;\;\;\frac{\sqrt{\left(B \cdot B + C \cdot \left(-4 \cdot A\right)\right) \cdot \left(2 \cdot F\right)} \cdot \left(-\sqrt{A + \left(A + C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
                      
                      \mathbf{elif}\;F \leq 2.85 \cdot 10^{-55}:\\
                      \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;-\sqrt{2 \cdot \frac{F}{B}}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if F < 3.60000000000000007e-301

                        1. Initial program 37.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*37.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. unpow237.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. +-commutative37.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. unpow237.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*37.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. unpow237.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. Simplified37.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 29.1%

                          \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        5. Step-by-step derivation
                          1. sqrt-prod43.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) + A}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          2. *-commutative43.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) + A}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                          3. fma-neg43.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if 3.60000000000000007e-301 < F < 2.8500000000000001e-55

                        1. Initial program 17.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. Simplified27.3%

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

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

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

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

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

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

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

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

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

                          if 2.8500000000000001e-55 < F

                          1. Initial program 20.1%

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                            7. Simplified22.6%

                              \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                            8. Step-by-step derivation
                              1. pow122.6%

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

                                \[\leadsto -{\color{blue}{\left(\sqrt{2 \cdot \frac{F}{B}}\right)}}^{1} \]
                            9. Applied egg-rr22.7%

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

                                \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                            11. Simplified22.7%

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

                            \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq 3.6 \cdot 10^{-301}:\\ \;\;\;\;\frac{\sqrt{\left(B \cdot B + C \cdot \left(-4 \cdot A\right)\right) \cdot \left(2 \cdot F\right)} \cdot \left(-\sqrt{A + \left(A + C\right)}\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 2.85 \cdot 10^{-55}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\ \mathbf{else}:\\ \;\;\;\;-\sqrt{2 \cdot \frac{F}{B}}\\ \end{array} \]

                          Alternative 9: 37.3% accurate, 3.0× speedup?

                          \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;F \leq 3.6 \cdot 10^{-301}:\\ \;\;\;\;\frac{-\sqrt{\left(A + \left(A + C\right)\right) \cdot \left(2 \cdot \left(F \cdot t_0\right)\right)}}{t_0}\\ \mathbf{elif}\;F \leq 2.85 \cdot 10^{-55}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\ \mathbf{else}:\\ \;\;\;\;-\sqrt{2 \cdot \frac{F}{B}}\\ \end{array} \end{array} \]
                          NOTE: B should be positive before calling this function
                          (FPCore (A B C F)
                           :precision binary64
                           (let* ((t_0 (- (* B B) (* 4.0 (* A C)))))
                             (if (<= F 3.6e-301)
                               (/ (- (sqrt (* (+ A (+ A C)) (* 2.0 (* F t_0))))) t_0)
                               (if (<= F 2.85e-55)
                                 (* (/ (sqrt 2.0) B) (- (sqrt (* B F))))
                                 (- (sqrt (* 2.0 (/ F B))))))))
                          B = abs(B);
                          double code(double A, double B, double C, double F) {
                          	double t_0 = (B * B) - (4.0 * (A * C));
                          	double tmp;
                          	if (F <= 3.6e-301) {
                          		tmp = -sqrt(((A + (A + C)) * (2.0 * (F * t_0)))) / t_0;
                          	} else if (F <= 2.85e-55) {
                          		tmp = (sqrt(2.0) / B) * -sqrt((B * F));
                          	} else {
                          		tmp = -sqrt((2.0 * (F / B)));
                          	}
                          	return tmp;
                          }
                          
                          NOTE: B should be positive before calling this function
                          real(8) function code(a, b, c, f)
                              real(8), intent (in) :: a
                              real(8), intent (in) :: b
                              real(8), intent (in) :: c
                              real(8), intent (in) :: f
                              real(8) :: t_0
                              real(8) :: tmp
                              t_0 = (b * b) - (4.0d0 * (a * c))
                              if (f <= 3.6d-301) then
                                  tmp = -sqrt(((a + (a + c)) * (2.0d0 * (f * t_0)))) / t_0
                              else if (f <= 2.85d-55) then
                                  tmp = (sqrt(2.0d0) / b) * -sqrt((b * f))
                              else
                                  tmp = -sqrt((2.0d0 * (f / b)))
                              end if
                              code = tmp
                          end function
                          
                          B = Math.abs(B);
                          public static double code(double A, double B, double C, double F) {
                          	double t_0 = (B * B) - (4.0 * (A * C));
                          	double tmp;
                          	if (F <= 3.6e-301) {
                          		tmp = -Math.sqrt(((A + (A + C)) * (2.0 * (F * t_0)))) / t_0;
                          	} else if (F <= 2.85e-55) {
                          		tmp = (Math.sqrt(2.0) / B) * -Math.sqrt((B * F));
                          	} else {
                          		tmp = -Math.sqrt((2.0 * (F / B)));
                          	}
                          	return tmp;
                          }
                          
                          B = abs(B)
                          def code(A, B, C, F):
                          	t_0 = (B * B) - (4.0 * (A * C))
                          	tmp = 0
                          	if F <= 3.6e-301:
                          		tmp = -math.sqrt(((A + (A + C)) * (2.0 * (F * t_0)))) / t_0
                          	elif F <= 2.85e-55:
                          		tmp = (math.sqrt(2.0) / B) * -math.sqrt((B * F))
                          	else:
                          		tmp = -math.sqrt((2.0 * (F / B)))
                          	return tmp
                          
                          B = abs(B)
                          function code(A, B, C, F)
                          	t_0 = Float64(Float64(B * B) - Float64(4.0 * Float64(A * C)))
                          	tmp = 0.0
                          	if (F <= 3.6e-301)
                          		tmp = Float64(Float64(-sqrt(Float64(Float64(A + Float64(A + C)) * Float64(2.0 * Float64(F * t_0))))) / t_0);
                          	elseif (F <= 2.85e-55)
                          		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(-sqrt(Float64(B * F))));
                          	else
                          		tmp = Float64(-sqrt(Float64(2.0 * Float64(F / B))));
                          	end
                          	return tmp
                          end
                          
                          B = abs(B)
                          function tmp_2 = code(A, B, C, F)
                          	t_0 = (B * B) - (4.0 * (A * C));
                          	tmp = 0.0;
                          	if (F <= 3.6e-301)
                          		tmp = -sqrt(((A + (A + C)) * (2.0 * (F * t_0)))) / t_0;
                          	elseif (F <= 2.85e-55)
                          		tmp = (sqrt(2.0) / B) * -sqrt((B * F));
                          	else
                          		tmp = -sqrt((2.0 * (F / B)));
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          NOTE: B should be positive before calling this function
                          code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, 3.6e-301], N[((-N[Sqrt[N[(N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[F, 2.85e-55], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * (-N[Sqrt[N[(B * F), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], (-N[Sqrt[N[(2.0 * N[(F / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])]]]
                          
                          \begin{array}{l}
                          B = |B|\\
                          \\
                          \begin{array}{l}
                          t_0 := B \cdot B - 4 \cdot \left(A \cdot C\right)\\
                          \mathbf{if}\;F \leq 3.6 \cdot 10^{-301}:\\
                          \;\;\;\;\frac{-\sqrt{\left(A + \left(A + C\right)\right) \cdot \left(2 \cdot \left(F \cdot t_0\right)\right)}}{t_0}\\
                          
                          \mathbf{elif}\;F \leq 2.85 \cdot 10^{-55}:\\
                          \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;-\sqrt{2 \cdot \frac{F}{B}}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if F < 3.60000000000000007e-301

                            1. Initial program 37.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*37.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. unpow237.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. +-commutative37.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. unpow237.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*37.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. unpow237.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. Simplified37.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 29.1%

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

                            if 3.60000000000000007e-301 < F < 2.8500000000000001e-55

                            1. Initial program 17.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. Simplified27.3%

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

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

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

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

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

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

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

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

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

                              if 2.8500000000000001e-55 < F

                              1. Initial program 20.1%

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                7. Simplified22.6%

                                  \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                8. Step-by-step derivation
                                  1. pow122.6%

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

                                    \[\leadsto -{\color{blue}{\left(\sqrt{2 \cdot \frac{F}{B}}\right)}}^{1} \]
                                9. Applied egg-rr22.7%

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

                                    \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                                11. Simplified22.7%

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

                                \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq 3.6 \cdot 10^{-301}:\\ \;\;\;\;\frac{-\sqrt{\left(A + \left(A + C\right)\right) \cdot \left(2 \cdot \left(F \cdot \left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;F \leq 2.85 \cdot 10^{-55}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{B \cdot F}\right)\\ \mathbf{else}:\\ \;\;\;\;-\sqrt{2 \cdot \frac{F}{B}}\\ \end{array} \]

                              Alternative 10: 29.4% accurate, 4.8× speedup?

                              \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} \mathbf{if}\;F \leq 3.6 \cdot 10^{-239}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(F \cdot \left(\left(B \cdot B + C \cdot \left(-4 \cdot A\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;-\sqrt{2 \cdot \frac{F}{B}}\\ \end{array} \end{array} \]
                              NOTE: B should be positive before calling this function
                              (FPCore (A B C F)
                               :precision binary64
                               (if (<= F 3.6e-239)
                                 (/
                                  (- (sqrt (* 2.0 (* F (* (+ (* B B) (* C (* -4.0 A))) (+ A (+ A C)))))))
                                  (- (* B B) (* 4.0 (* A C))))
                                 (- (sqrt (* 2.0 (/ F B))))))
                              B = abs(B);
                              double code(double A, double B, double C, double F) {
                              	double tmp;
                              	if (F <= 3.6e-239) {
                              		tmp = -sqrt((2.0 * (F * (((B * B) + (C * (-4.0 * A))) * (A + (A + C)))))) / ((B * B) - (4.0 * (A * C)));
                              	} else {
                              		tmp = -sqrt((2.0 * (F / B)));
                              	}
                              	return tmp;
                              }
                              
                              NOTE: B should be positive before calling this function
                              real(8) function code(a, b, c, f)
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  real(8), intent (in) :: c
                                  real(8), intent (in) :: f
                                  real(8) :: tmp
                                  if (f <= 3.6d-239) then
                                      tmp = -sqrt((2.0d0 * (f * (((b * b) + (c * ((-4.0d0) * a))) * (a + (a + c)))))) / ((b * b) - (4.0d0 * (a * c)))
                                  else
                                      tmp = -sqrt((2.0d0 * (f / b)))
                                  end if
                                  code = tmp
                              end function
                              
                              B = Math.abs(B);
                              public static double code(double A, double B, double C, double F) {
                              	double tmp;
                              	if (F <= 3.6e-239) {
                              		tmp = -Math.sqrt((2.0 * (F * (((B * B) + (C * (-4.0 * A))) * (A + (A + C)))))) / ((B * B) - (4.0 * (A * C)));
                              	} else {
                              		tmp = -Math.sqrt((2.0 * (F / B)));
                              	}
                              	return tmp;
                              }
                              
                              B = abs(B)
                              def code(A, B, C, F):
                              	tmp = 0
                              	if F <= 3.6e-239:
                              		tmp = -math.sqrt((2.0 * (F * (((B * B) + (C * (-4.0 * A))) * (A + (A + C)))))) / ((B * B) - (4.0 * (A * C)))
                              	else:
                              		tmp = -math.sqrt((2.0 * (F / B)))
                              	return tmp
                              
                              B = abs(B)
                              function code(A, B, C, F)
                              	tmp = 0.0
                              	if (F <= 3.6e-239)
                              		tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(F * Float64(Float64(Float64(B * B) + Float64(C * Float64(-4.0 * A))) * Float64(A + Float64(A + C))))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
                              	else
                              		tmp = Float64(-sqrt(Float64(2.0 * Float64(F / B))));
                              	end
                              	return tmp
                              end
                              
                              B = abs(B)
                              function tmp_2 = code(A, B, C, F)
                              	tmp = 0.0;
                              	if (F <= 3.6e-239)
                              		tmp = -sqrt((2.0 * (F * (((B * B) + (C * (-4.0 * A))) * (A + (A + C)))))) / ((B * B) - (4.0 * (A * C)));
                              	else
                              		tmp = -sqrt((2.0 * (F / B)));
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              NOTE: B should be positive before calling this function
                              code[A_, B_, C_, F_] := If[LessEqual[F, 3.6e-239], N[((-N[Sqrt[N[(2.0 * N[(F * N[(N[(N[(B * B), $MachinePrecision] + N[(C * N[(-4.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-N[Sqrt[N[(2.0 * N[(F / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])]
                              
                              \begin{array}{l}
                              B = |B|\\
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;F \leq 3.6 \cdot 10^{-239}:\\
                              \;\;\;\;\frac{-\sqrt{2 \cdot \left(F \cdot \left(\left(B \cdot B + C \cdot \left(-4 \cdot A\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;-\sqrt{2 \cdot \frac{F}{B}}\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if F < 3.6000000000000001e-239

                                1. Initial program 31.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*31.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. unpow231.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. +-commutative31.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. unpow231.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*31.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. unpow231.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. Simplified31.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 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) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                5. Step-by-step derivation
                                  1. *-un-lft-identity25.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if 3.6000000000000001e-239 < F

                                1. Initial program 19.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.4%

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                  7. Simplified20.1%

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

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

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

                                    \[\leadsto -\color{blue}{{\left(\sqrt{2 \cdot \frac{F}{B}}\right)}^{1}} \]
                                  10. Step-by-step derivation
                                    1. unpow120.2%

                                      \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                                  11. Simplified20.2%

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

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

                                Alternative 11: 30.2% accurate, 4.8× speedup?

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

                                  1. Initial program 31.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*31.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. unpow231.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. +-commutative31.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. unpow231.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*31.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. unpow231.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. Simplified31.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 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) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                  if 2.24999999999999998e-238 < F

                                  1. Initial program 19.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.4%

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                    7. Simplified20.1%

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

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

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

                                      \[\leadsto -\color{blue}{{\left(\sqrt{2 \cdot \frac{F}{B}}\right)}^{1}} \]
                                    10. Step-by-step derivation
                                      1. unpow120.2%

                                        \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                                    11. Simplified20.2%

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

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

                                  Alternative 12: 31.5% accurate, 5.2× speedup?

                                  \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} \mathbf{if}\;B \leq 2.5 \cdot 10^{-141}:\\ \;\;\;\;\frac{-\sqrt{\left(A \cdot -16\right) \cdot \left(A \cdot \left(C \cdot F\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;-{\left(2 \cdot \frac{F}{B}\right)}^{0.5}\\ \end{array} \end{array} \]
                                  NOTE: B should be positive before calling this function
                                  (FPCore (A B C F)
                                   :precision binary64
                                   (if (<= B 2.5e-141)
                                     (/ (- (sqrt (* (* A -16.0) (* A (* C F))))) (- (* B B) (* 4.0 (* A C))))
                                     (- (pow (* 2.0 (/ F B)) 0.5))))
                                  B = abs(B);
                                  double code(double A, double B, double C, double F) {
                                  	double tmp;
                                  	if (B <= 2.5e-141) {
                                  		tmp = -sqrt(((A * -16.0) * (A * (C * F)))) / ((B * B) - (4.0 * (A * C)));
                                  	} else {
                                  		tmp = -pow((2.0 * (F / B)), 0.5);
                                  	}
                                  	return tmp;
                                  }
                                  
                                  NOTE: B should be positive before calling this function
                                  real(8) function code(a, b, c, f)
                                      real(8), intent (in) :: a
                                      real(8), intent (in) :: b
                                      real(8), intent (in) :: c
                                      real(8), intent (in) :: f
                                      real(8) :: tmp
                                      if (b <= 2.5d-141) then
                                          tmp = -sqrt(((a * (-16.0d0)) * (a * (c * f)))) / ((b * b) - (4.0d0 * (a * c)))
                                      else
                                          tmp = -((2.0d0 * (f / b)) ** 0.5d0)
                                      end if
                                      code = tmp
                                  end function
                                  
                                  B = Math.abs(B);
                                  public static double code(double A, double B, double C, double F) {
                                  	double tmp;
                                  	if (B <= 2.5e-141) {
                                  		tmp = -Math.sqrt(((A * -16.0) * (A * (C * F)))) / ((B * B) - (4.0 * (A * C)));
                                  	} else {
                                  		tmp = -Math.pow((2.0 * (F / B)), 0.5);
                                  	}
                                  	return tmp;
                                  }
                                  
                                  B = abs(B)
                                  def code(A, B, C, F):
                                  	tmp = 0
                                  	if B <= 2.5e-141:
                                  		tmp = -math.sqrt(((A * -16.0) * (A * (C * F)))) / ((B * B) - (4.0 * (A * C)))
                                  	else:
                                  		tmp = -math.pow((2.0 * (F / B)), 0.5)
                                  	return tmp
                                  
                                  B = abs(B)
                                  function code(A, B, C, F)
                                  	tmp = 0.0
                                  	if (B <= 2.5e-141)
                                  		tmp = Float64(Float64(-sqrt(Float64(Float64(A * -16.0) * Float64(A * Float64(C * F))))) / Float64(Float64(B * B) - Float64(4.0 * Float64(A * C))));
                                  	else
                                  		tmp = Float64(-(Float64(2.0 * Float64(F / B)) ^ 0.5));
                                  	end
                                  	return tmp
                                  end
                                  
                                  B = abs(B)
                                  function tmp_2 = code(A, B, C, F)
                                  	tmp = 0.0;
                                  	if (B <= 2.5e-141)
                                  		tmp = -sqrt(((A * -16.0) * (A * (C * F)))) / ((B * B) - (4.0 * (A * C)));
                                  	else
                                  		tmp = -((2.0 * (F / B)) ^ 0.5);
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  NOTE: B should be positive before calling this function
                                  code[A_, B_, C_, F_] := If[LessEqual[B, 2.5e-141], N[((-N[Sqrt[N[(N[(A * -16.0), $MachinePrecision] * N[(A * N[(C * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[(B * B), $MachinePrecision] - N[(4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-N[Power[N[(2.0 * N[(F / B), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision])]
                                  
                                  \begin{array}{l}
                                  B = |B|\\
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;B \leq 2.5 \cdot 10^{-141}:\\
                                  \;\;\;\;\frac{-\sqrt{\left(A \cdot -16\right) \cdot \left(A \cdot \left(C \cdot F\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;-{\left(2 \cdot \frac{F}{B}\right)}^{0.5}\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if B < 2.5e-141

                                    1. Initial program 25.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*25.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. unpow225.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. +-commutative25.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. unpow225.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*25.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. unpow225.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. Simplified25.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 14.5%

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

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

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

                                      \[\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. Step-by-step derivation
                                      1. *-un-lft-identity12.9%

                                        \[\leadsto \frac{-\color{blue}{1 \cdot \sqrt{-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)} \]
                                      2. associate-*l*14.9%

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

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

                                      \[\leadsto \frac{-\color{blue}{1 \cdot \sqrt{-16 \cdot \left(A \cdot \left(A \cdot \left(F \cdot C\right)\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    10. Step-by-step derivation
                                      1. *-lft-identity14.9%

                                        \[\leadsto \frac{-\color{blue}{\sqrt{-16 \cdot \left(A \cdot \left(A \cdot \left(F \cdot C\right)\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      2. associate-*r*14.9%

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

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

                                    if 2.5e-141 < B

                                    1. Initial program 17.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. Simplified19.6%

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                      7. Simplified39.4%

                                        \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                      8. Step-by-step derivation
                                        1. pow139.4%

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

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

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

                                          \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                                      11. Simplified39.5%

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

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

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 2.5 \cdot 10^{-141}:\\ \;\;\;\;\frac{-\sqrt{\left(A \cdot -16\right) \cdot \left(A \cdot \left(C \cdot F\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;-{\left(2 \cdot \frac{F}{B}\right)}^{0.5}\\ \end{array} \]

                                    Alternative 13: 30.0% accurate, 5.4× speedup?

                                    \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} \mathbf{if}\;B \leq 4 \cdot 10^{-179}:\\ \;\;\;\;\frac{-\sqrt{-16 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)}}{-4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;-{\left(2 \cdot \frac{F}{B}\right)}^{0.5}\\ \end{array} \end{array} \]
                                    NOTE: B should be positive before calling this function
                                    (FPCore (A B C F)
                                     :precision binary64
                                     (if (<= B 4e-179)
                                       (/ (- (sqrt (* -16.0 (* (* A A) (* C F))))) (* -4.0 (* A C)))
                                       (- (pow (* 2.0 (/ F B)) 0.5))))
                                    B = abs(B);
                                    double code(double A, double B, double C, double F) {
                                    	double tmp;
                                    	if (B <= 4e-179) {
                                    		tmp = -sqrt((-16.0 * ((A * A) * (C * F)))) / (-4.0 * (A * C));
                                    	} else {
                                    		tmp = -pow((2.0 * (F / B)), 0.5);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    NOTE: B should be positive before calling this function
                                    real(8) function code(a, b, c, f)
                                        real(8), intent (in) :: a
                                        real(8), intent (in) :: b
                                        real(8), intent (in) :: c
                                        real(8), intent (in) :: f
                                        real(8) :: tmp
                                        if (b <= 4d-179) then
                                            tmp = -sqrt(((-16.0d0) * ((a * a) * (c * f)))) / ((-4.0d0) * (a * c))
                                        else
                                            tmp = -((2.0d0 * (f / b)) ** 0.5d0)
                                        end if
                                        code = tmp
                                    end function
                                    
                                    B = Math.abs(B);
                                    public static double code(double A, double B, double C, double F) {
                                    	double tmp;
                                    	if (B <= 4e-179) {
                                    		tmp = -Math.sqrt((-16.0 * ((A * A) * (C * F)))) / (-4.0 * (A * C));
                                    	} else {
                                    		tmp = -Math.pow((2.0 * (F / B)), 0.5);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    B = abs(B)
                                    def code(A, B, C, F):
                                    	tmp = 0
                                    	if B <= 4e-179:
                                    		tmp = -math.sqrt((-16.0 * ((A * A) * (C * F)))) / (-4.0 * (A * C))
                                    	else:
                                    		tmp = -math.pow((2.0 * (F / B)), 0.5)
                                    	return tmp
                                    
                                    B = abs(B)
                                    function code(A, B, C, F)
                                    	tmp = 0.0
                                    	if (B <= 4e-179)
                                    		tmp = Float64(Float64(-sqrt(Float64(-16.0 * Float64(Float64(A * A) * Float64(C * F))))) / Float64(-4.0 * Float64(A * C)));
                                    	else
                                    		tmp = Float64(-(Float64(2.0 * Float64(F / B)) ^ 0.5));
                                    	end
                                    	return tmp
                                    end
                                    
                                    B = abs(B)
                                    function tmp_2 = code(A, B, C, F)
                                    	tmp = 0.0;
                                    	if (B <= 4e-179)
                                    		tmp = -sqrt((-16.0 * ((A * A) * (C * F)))) / (-4.0 * (A * C));
                                    	else
                                    		tmp = -((2.0 * (F / B)) ^ 0.5);
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    NOTE: B should be positive before calling this function
                                    code[A_, B_, C_, F_] := If[LessEqual[B, 4e-179], N[((-N[Sqrt[N[(-16.0 * N[(N[(A * A), $MachinePrecision] * N[(C * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-N[Power[N[(2.0 * N[(F / B), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision])]
                                    
                                    \begin{array}{l}
                                    B = |B|\\
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;B \leq 4 \cdot 10^{-179}:\\
                                    \;\;\;\;\frac{-\sqrt{-16 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)}}{-4 \cdot \left(A \cdot C\right)}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;-{\left(2 \cdot \frac{F}{B}\right)}^{0.5}\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if B < 4.0000000000000001e-179

                                      1. Initial program 24.2%

                                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                                      2. Step-by-step derivation
                                        1. associate-*l*24.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. unpow224.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. +-commutative24.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. unpow224.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*24.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. unpow224.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. Simplified24.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 13.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 13.6%

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

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

                                        \[\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. Taylor expanded in B around 0 13.7%

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

                                      if 4.0000000000000001e-179 < B

                                      1. Initial program 20.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. Simplified23.6%

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                        7. Simplified36.3%

                                          \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                        8. Step-by-step derivation
                                          1. pow136.3%

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

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

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

                                            \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                                        11. Simplified36.4%

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

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

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

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq 4 \cdot 10^{-179}:\\ \;\;\;\;\frac{-\sqrt{-16 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)}}{-4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;-{\left(2 \cdot \frac{F}{B}\right)}^{0.5}\\ \end{array} \]

                                      Alternative 14: 27.4% accurate, 5.9× speedup?

                                      \[\begin{array}{l} B = |B|\\ \\ -{\left(2 \cdot \frac{F}{B}\right)}^{0.5} \end{array} \]
                                      NOTE: B should be positive before calling this function
                                      (FPCore (A B C F) :precision binary64 (- (pow (* 2.0 (/ F B)) 0.5)))
                                      B = abs(B);
                                      double code(double A, double B, double C, double F) {
                                      	return -pow((2.0 * (F / B)), 0.5);
                                      }
                                      
                                      NOTE: B should be positive before calling this function
                                      real(8) function code(a, b, c, f)
                                          real(8), intent (in) :: a
                                          real(8), intent (in) :: b
                                          real(8), intent (in) :: c
                                          real(8), intent (in) :: f
                                          code = -((2.0d0 * (f / b)) ** 0.5d0)
                                      end function
                                      
                                      B = Math.abs(B);
                                      public static double code(double A, double B, double C, double F) {
                                      	return -Math.pow((2.0 * (F / B)), 0.5);
                                      }
                                      
                                      B = abs(B)
                                      def code(A, B, C, F):
                                      	return -math.pow((2.0 * (F / B)), 0.5)
                                      
                                      B = abs(B)
                                      function code(A, B, C, F)
                                      	return Float64(-(Float64(2.0 * Float64(F / B)) ^ 0.5))
                                      end
                                      
                                      B = abs(B)
                                      function tmp = code(A, B, C, F)
                                      	tmp = -((2.0 * (F / B)) ^ 0.5);
                                      end
                                      
                                      NOTE: B should be positive before calling this function
                                      code[A_, B_, C_, F_] := (-N[Power[N[(2.0 * N[(F / B), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision])
                                      
                                      \begin{array}{l}
                                      B = |B|\\
                                      \\
                                      -{\left(2 \cdot \frac{F}{B}\right)}^{0.5}
                                      \end{array}
                                      
                                      Derivation
                                      1. Initial program 22.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. Simplified27.8%

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                        7. Simplified15.1%

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

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

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

                                          \[\leadsto -\color{blue}{{\left(\sqrt{2 \cdot \frac{F}{B}}\right)}^{1}} \]
                                        10. Step-by-step derivation
                                          1. unpow115.2%

                                            \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                                        11. Simplified15.2%

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

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

                                          \[\leadsto -\color{blue}{{\left(2 \cdot \frac{F}{B}\right)}^{0.5}} \]
                                        14. Final simplification15.3%

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

                                        Alternative 15: 27.4% accurate, 6.0× speedup?

                                        \[\begin{array}{l} B = |B|\\ \\ -\sqrt{2 \cdot \frac{F}{B}} \end{array} \]
                                        NOTE: B should be positive before calling this function
                                        (FPCore (A B C F) :precision binary64 (- (sqrt (* 2.0 (/ F B)))))
                                        B = abs(B);
                                        double code(double A, double B, double C, double F) {
                                        	return -sqrt((2.0 * (F / B)));
                                        }
                                        
                                        NOTE: B should be positive before calling this function
                                        real(8) function code(a, b, c, f)
                                            real(8), intent (in) :: a
                                            real(8), intent (in) :: b
                                            real(8), intent (in) :: c
                                            real(8), intent (in) :: f
                                            code = -sqrt((2.0d0 * (f / b)))
                                        end function
                                        
                                        B = Math.abs(B);
                                        public static double code(double A, double B, double C, double F) {
                                        	return -Math.sqrt((2.0 * (F / B)));
                                        }
                                        
                                        B = abs(B)
                                        def code(A, B, C, F):
                                        	return -math.sqrt((2.0 * (F / B)))
                                        
                                        B = abs(B)
                                        function code(A, B, C, F)
                                        	return Float64(-sqrt(Float64(2.0 * Float64(F / B))))
                                        end
                                        
                                        B = abs(B)
                                        function tmp = code(A, B, C, F)
                                        	tmp = -sqrt((2.0 * (F / B)));
                                        end
                                        
                                        NOTE: B should be positive before calling this function
                                        code[A_, B_, C_, F_] := (-N[Sqrt[N[(2.0 * N[(F / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])
                                        
                                        \begin{array}{l}
                                        B = |B|\\
                                        \\
                                        -\sqrt{2 \cdot \frac{F}{B}}
                                        \end{array}
                                        
                                        Derivation
                                        1. Initial program 22.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. Simplified27.8%

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}} \]
                                          7. Simplified15.1%

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

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

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

                                            \[\leadsto -\color{blue}{{\left(\sqrt{2 \cdot \frac{F}{B}}\right)}^{1}} \]
                                          10. Step-by-step derivation
                                            1. unpow115.2%

                                              \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                                          11. Simplified15.2%

                                            \[\leadsto -\color{blue}{\sqrt{2 \cdot \frac{F}{B}}} \]
                                          12. Final simplification15.2%

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

                                          Reproduce

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