ABCF->ab-angle a

Percentage Accurate: 19.7% → 53.2%
Time: 28.4s
Alternatives: 14
Speedup: 3.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 14 alternatives:

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

Initial Program: 19.7% accurate, 1.0× speedup?

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

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

Alternative 1: 53.2% accurate, 1.2× speedup?

\[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\\ \mathbf{if}\;B \leq 5.7 \cdot 10^{+65}:\\ \;\;\;\;\frac{\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{t_0}{-\sqrt{2 \cdot \left(t_0 \cdot F\right)}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{A + \mathsf{hypot}\left(B, A\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 (fma B B (* -4.0 (* A C)))))
   (if (<= B 5.7e+65)
     (/
      (sqrt (+ A (+ C (hypot B (- A C)))))
      (/ t_0 (- (sqrt (* 2.0 (* t_0 F))))))
     (* (/ (sqrt 2.0) B) (* (sqrt (+ A (hypot B A))) (- (sqrt F)))))))
B = abs(B);
double code(double A, double B, double C, double F) {
	double t_0 = fma(B, B, (-4.0 * (A * C)));
	double tmp;
	if (B <= 5.7e+65) {
		tmp = sqrt((A + (C + hypot(B, (A - C))))) / (t_0 / -sqrt((2.0 * (t_0 * F))));
	} else {
		tmp = (sqrt(2.0) / B) * (sqrt((A + hypot(B, A))) * -sqrt(F));
	}
	return tmp;
}
B = abs(B)
function code(A, B, C, F)
	t_0 = fma(B, B, Float64(-4.0 * Float64(A * C)))
	tmp = 0.0
	if (B <= 5.7e+65)
		tmp = Float64(sqrt(Float64(A + Float64(C + hypot(B, Float64(A - C))))) / Float64(t_0 / Float64(-sqrt(Float64(2.0 * Float64(t_0 * F))))));
	else
		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(sqrt(Float64(A + hypot(B, A))) * 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[(B * B + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, 5.7e+65], N[(N[Sqrt[N[(A + N[(C + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(t$95$0 / (-N[Sqrt[N[(2.0 * N[(t$95$0 * F), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * N[(N[Sqrt[N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[F], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
B = |B|\\
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\\
\mathbf{if}\;B \leq 5.7 \cdot 10^{+65}:\\
\;\;\;\;\frac{\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{t_0}{-\sqrt{2 \cdot \left(t_0 \cdot F\right)}}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if B < 5.6999999999999999e65

    1. Initial program 23.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*23.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. unpow223.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. +-commutative23.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. unpow223.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*23.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. unpow223.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. Simplified23.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{-\sqrt{\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)} \cdot \left(\left(\sqrt[3]{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}} \cdot \sqrt[3]{\sqrt{2 \cdot \left(F \cdot \color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}\right)}}\right) \cdot \sqrt[3]{\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)} \]
    9. Applied egg-rr37.8%

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

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

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

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

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

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

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

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

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

    if 5.6999999999999999e65 < B

    1. Initial program 11.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. Simplified15.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 19.0%

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

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

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

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

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

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

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

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

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

    Alternative 2: 52.7% accurate, 1.5× speedup?

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

      1. Initial program 23.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*23.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. unpow223.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. +-commutative23.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. unpow223.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*23.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. unpow223.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. Simplified23.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 3.10000000000000019e66 < B

      1. Initial program 11.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. Simplified15.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 19.0%

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

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

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

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

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

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

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

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

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

      Alternative 3: 42.7% accurate, 1.9× speedup?

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

        1. Initial program 35.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*35.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. unpow235.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. +-commutative35.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. unpow235.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*35.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. unpow235.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. Simplified35.2%

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

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

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

            \[\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+35.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 1.7999999999999999e-234 < F < 8.2e17

        1. Initial program 20.8%

          \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
        2. Step-by-step derivation
          1. Simplified29.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 13.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-neg13.8%

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

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

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

              \[\leadsto \frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \sqrt{\color{blue}{B \cdot B} + {C}^{2}}\right)}\right) \]
            5. unpow213.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-def33.5%

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

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

          if 8.2e17 < F

          1. Initial program 12.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. Simplified13.9%

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

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

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

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

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

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

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

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

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

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

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

          Alternative 4: 35.3% accurate, 1.9× speedup?

          \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - \left(A \cdot C\right) \cdot 4\\ \mathbf{if}\;A \leq -1.2 \cdot 10^{-48}:\\ \;\;\;\;-0.5 \cdot \left(\sqrt{2} \cdot \sqrt{\frac{F}{\frac{A}{\mathsf{fma}\left(0.5, \frac{B \cdot B}{A \cdot A}, -2\right)}}}\right)\\ \mathbf{elif}\;A \leq 6.6 \cdot 10^{-244}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \mathbf{elif}\;A \leq 4.2 \cdot 10^{+89}:\\ \;\;\;\;\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}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + A\right)} \cdot \left(-\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}\right)}{t_0}\\ \end{array} \end{array} \]
          NOTE: B should be positive before calling this function
          (FPCore (A B C F)
           :precision binary64
           (let* ((t_0 (- (* B B) (* (* A C) 4.0))))
             (if (<= A -1.2e-48)
               (*
                -0.5
                (* (sqrt 2.0) (sqrt (/ F (/ A (fma 0.5 (/ (* B B) (* A A)) -2.0))))))
               (if (<= A 6.6e-244)
                 (* (sqrt 2.0) (- (sqrt (/ F B))))
                 (if (<= A 4.2e+89)
                   (/ (- (sqrt (* 2.0 (* (+ C (+ A (hypot B (- A C)))) (* F t_0))))) t_0)
                   (/
                    (*
                     (sqrt (+ C (+ A A)))
                     (- (sqrt (* (fma B B (* -4.0 (* A C))) (* 2.0 F)))))
                    t_0))))))
          B = abs(B);
          double code(double A, double B, double C, double F) {
          	double t_0 = (B * B) - ((A * C) * 4.0);
          	double tmp;
          	if (A <= -1.2e-48) {
          		tmp = -0.5 * (sqrt(2.0) * sqrt((F / (A / fma(0.5, ((B * B) / (A * A)), -2.0)))));
          	} else if (A <= 6.6e-244) {
          		tmp = sqrt(2.0) * -sqrt((F / B));
          	} else if (A <= 4.2e+89) {
          		tmp = -sqrt((2.0 * ((C + (A + hypot(B, (A - C)))) * (F * t_0)))) / t_0;
          	} else {
          		tmp = (sqrt((C + (A + A))) * -sqrt((fma(B, B, (-4.0 * (A * C))) * (2.0 * F)))) / t_0;
          	}
          	return tmp;
          }
          
          B = abs(B)
          function code(A, B, C, F)
          	t_0 = Float64(Float64(B * B) - Float64(Float64(A * C) * 4.0))
          	tmp = 0.0
          	if (A <= -1.2e-48)
          		tmp = Float64(-0.5 * Float64(sqrt(2.0) * sqrt(Float64(F / Float64(A / fma(0.5, Float64(Float64(B * B) / Float64(A * A)), -2.0))))));
          	elseif (A <= 6.6e-244)
          		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
          	elseif (A <= 4.2e+89)
          		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(Float64(sqrt(Float64(C + Float64(A + A))) * Float64(-sqrt(Float64(fma(B, B, Float64(-4.0 * Float64(A * C))) * Float64(2.0 * F))))) / t_0);
          	end
          	return 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[(N[(A * C), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -1.2e-48], N[(-0.5 * N[(N[Sqrt[2.0], $MachinePrecision] * N[Sqrt[N[(F / N[(A / N[(0.5 * N[(N[(B * B), $MachinePrecision] / N[(A * A), $MachinePrecision]), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[A, 6.6e-244], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], If[LessEqual[A, 4.2e+89], 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[(N[Sqrt[N[(C + N[(A + A), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(N[(B * B + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 * F), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$0), $MachinePrecision]]]]]
          
          \begin{array}{l}
          B = |B|\\
          \\
          \begin{array}{l}
          t_0 := B \cdot B - \left(A \cdot C\right) \cdot 4\\
          \mathbf{if}\;A \leq -1.2 \cdot 10^{-48}:\\
          \;\;\;\;-0.5 \cdot \left(\sqrt{2} \cdot \sqrt{\frac{F}{\frac{A}{\mathsf{fma}\left(0.5, \frac{B \cdot B}{A \cdot A}, -2\right)}}}\right)\\
          
          \mathbf{elif}\;A \leq 6.6 \cdot 10^{-244}:\\
          \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\
          
          \mathbf{elif}\;A \leq 4.2 \cdot 10^{+89}:\\
          \;\;\;\;\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}:\\
          \;\;\;\;\frac{\sqrt{C + \left(A + A\right)} \cdot \left(-\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}\right)}{t_0}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if A < -1.2e-48

            1. Initial program 3.8%

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
            4. Taylor expanded in A around -inf 3.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}{\left(C + \left(-0.5 \cdot \frac{C \cdot {B}^{2}}{{A}^{2}} + \left(-0.5 \cdot \frac{{B}^{2}}{A} + -1 \cdot A\right)\right)\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            5. Step-by-step derivation
              1. associate-+r+3.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) + \left(C + \color{blue}{\left(\left(-0.5 \cdot \frac{C \cdot {B}^{2}}{{A}^{2}} + -0.5 \cdot \frac{{B}^{2}}{A}\right) + -1 \cdot A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              2. mul-1-neg3.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) + \left(C + \left(\left(-0.5 \cdot \frac{C \cdot {B}^{2}}{{A}^{2}} + -0.5 \cdot \frac{{B}^{2}}{A}\right) + \color{blue}{\left(-A\right)}\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              3. unsub-neg3.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) + \left(C + \color{blue}{\left(\left(-0.5 \cdot \frac{C \cdot {B}^{2}}{{A}^{2}} + -0.5 \cdot \frac{{B}^{2}}{A}\right) - A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              4. distribute-lft-out3.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) + \left(C + \left(\color{blue}{-0.5 \cdot \left(\frac{C \cdot {B}^{2}}{{A}^{2}} + \frac{{B}^{2}}{A}\right)} - A\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              5. *-commutative3.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) + \left(C + \left(-0.5 \cdot \left(\frac{\color{blue}{{B}^{2} \cdot C}}{{A}^{2}} + \frac{{B}^{2}}{A}\right) - A\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              6. unpow23.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) + \left(C + \left(-0.5 \cdot \left(\frac{{B}^{2} \cdot C}{\color{blue}{A \cdot A}} + \frac{{B}^{2}}{A}\right) - A\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              7. times-frac3.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) + \left(C + \left(-0.5 \cdot \left(\color{blue}{\frac{{B}^{2}}{A} \cdot \frac{C}{A}} + \frac{{B}^{2}}{A}\right) - A\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              8. unpow23.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) + \left(C + \left(-0.5 \cdot \left(\frac{\color{blue}{B \cdot B}}{A} \cdot \frac{C}{A} + \frac{{B}^{2}}{A}\right) - A\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              9. unpow23.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) + \left(C + \left(-0.5 \cdot \left(\frac{B \cdot B}{A} \cdot \frac{C}{A} + \frac{\color{blue}{B \cdot B}}{A}\right) - A\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
            6. Simplified3.0%

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

              \[\leadsto \color{blue}{-0.5 \cdot \left(\sqrt{\frac{F \cdot \left(0.5 \cdot \frac{{B}^{2}}{{A}^{2}} - 2\right)}{A}} \cdot \sqrt{2}\right)} \]
            8. Step-by-step derivation
              1. associate-/l*32.8%

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

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

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

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

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

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

            if -1.2e-48 < A < 6.60000000000000052e-244

            1. Initial program 25.9%

              \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
            2. Step-by-step derivation
              1. Simplified32.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 17.0%

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

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

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

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

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

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

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

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

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

              if 6.60000000000000052e-244 < A < 4.19999999999999972e89

              1. Initial program 42.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*42.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. unpow242.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. +-commutative42.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. unpow242.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*42.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. unpow242.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. Simplified42.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-neg42.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-rr43.5%

                \[\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.19999999999999972e89 < A

              1. Initial program 12.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*12.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. unpow212.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. +-commutative12.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. unpow212.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*12.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. unpow212.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. Simplified12.5%

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

                \[\leadsto \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \color{blue}{A}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
              5. Step-by-step derivation
                1. sqrt-prod53.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. *-commutative53.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. cancel-sign-sub-inv53.1%

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

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

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

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

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

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -1.2 \cdot 10^{-48}:\\ \;\;\;\;-0.5 \cdot \left(\sqrt{2} \cdot \sqrt{\frac{F}{\frac{A}{\mathsf{fma}\left(0.5, \frac{B \cdot B}{A \cdot A}, -2\right)}}}\right)\\ \mathbf{elif}\;A \leq 6.6 \cdot 10^{-244}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \mathbf{elif}\;A \leq 4.2 \cdot 10^{+89}:\\ \;\;\;\;\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 - \left(A \cdot C\right) \cdot 4\right)\right)\right)}}{B \cdot B - \left(A \cdot C\right) \cdot 4}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{C + \left(A + A\right)} \cdot \left(-\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}\right)}{B \cdot B - \left(A \cdot C\right) \cdot 4}\\ \end{array} \]

            Alternative 5: 41.9% accurate, 1.9× speedup?

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

              1. Initial program 39.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*39.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. unpow239.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. +-commutative39.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. unpow239.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*39.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. unpow239.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. Simplified39.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. sqrt-prod40.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. *-commutative40.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. *-commutative40.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+40.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -2.79999999999999997e-180 < F < 1.04999999999999996e-234

              1. Initial program 30.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*30.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. unpow230.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. +-commutative30.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. unpow230.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*30.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. unpow230.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. Simplified30.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-neg30.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-rr44.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 1.04999999999999996e-234 < F < 3.2e19

              1. Initial program 20.8%

                \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
              2. Step-by-step derivation
                1. Simplified29.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 13.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-neg13.8%

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

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

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

                    \[\leadsto \frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \sqrt{\color{blue}{B \cdot B} + {C}^{2}}\right)}\right) \]
                  5. unpow213.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-def33.5%

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

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

                if 3.2e19 < F

                1. Initial program 12.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. Simplified13.9%

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -2.8 \cdot 10^{-180}:\\ \;\;\;\;\frac{\sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)} \cdot \left(-\sqrt{2 \cdot \left(-4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)}\right)}{B \cdot B - \left(A \cdot C\right) \cdot 4}\\ \mathbf{elif}\;F \leq 1.05 \cdot 10^{-234}:\\ \;\;\;\;\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 - \left(A \cdot C\right) \cdot 4\right)\right)\right)}}{B \cdot B - \left(A \cdot C\right) \cdot 4}\\ \mathbf{elif}\;F \leq 3.2 \cdot 10^{+19}:\\ \;\;\;\;\sqrt{F \cdot \left(C + \mathsf{hypot}\left(B, C\right)\right)} \cdot \frac{-\sqrt{2}}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                Alternative 6: 40.7% accurate, 2.0× speedup?

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

                  1. Initial program 35.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*35.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. unpow235.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. +-commutative35.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. unpow235.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*35.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. unpow235.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. Simplified35.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-neg35.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-rr45.6%

                    \[\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.8999999999999997e-235 < F < 3.2e18

                  1. Initial program 20.8%

                    \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                  2. Step-by-step derivation
                    1. Simplified29.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 13.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-neg13.8%

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

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

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

                        \[\leadsto \frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \sqrt{\color{blue}{B \cdot B} + {C}^{2}}\right)}\right) \]
                      5. unpow213.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-def33.5%

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

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

                    if 3.2e18 < F

                    1. Initial program 12.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. Simplified13.9%

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 7: 35.9% accurate, 2.7× speedup?

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

                      1. Initial program 61.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*61.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. unpow261.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. +-commutative61.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. unpow261.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*61.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. unpow261.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. Simplified61.0%

                        \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                      4. Taylor expanded in A around -inf 50.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}{\left(C + -1 \cdot A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      5. Step-by-step derivation
                        1. mul-1-neg50.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) + \left(C + \color{blue}{\left(-A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                        2. sub-neg50.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                      6. Simplified50.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                      if -2.7500000000000001e137 < F < 3.8000000000000001e-232

                      1. Initial program 23.6%

                        \[\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C} \]
                      2. Step-by-step derivation
                        1. associate-*l*23.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. unpow223.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. +-commutative23.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. unpow223.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*23.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. unpow223.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. Simplified23.6%

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

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

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

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

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

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

                      if 3.8000000000000001e-232 < F < 2.9999999999999999e-30

                      1. Initial program 25.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. Simplified34.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 15.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-neg15.6%

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

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

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

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

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

                        if 2.9999999999999999e-30 < F

                        1. Initial program 11.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. Simplified13.9%

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 8: 39.0% accurate, 2.7× speedup?

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

                          1. Initial program 35.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*35.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. unpow235.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. +-commutative35.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. unpow235.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*35.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. unpow235.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. Simplified35.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-neg35.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-rr45.6%

                            \[\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.2000000000000001e-235 < F < 5e-31

                          1. Initial program 24.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. Simplified33.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 15.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-neg15.2%

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

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

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

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

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

                            if 5e-31 < F

                            1. Initial program 11.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. Simplified13.9%

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq 3.2 \cdot 10^{-235}:\\ \;\;\;\;\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 - \left(A \cdot C\right) \cdot 4\right)\right)\right)}}{B \cdot B - \left(A \cdot C\right) \cdot 4}\\ \mathbf{elif}\;F \leq 5 \cdot 10^{-31}:\\ \;\;\;\;\sqrt{B \cdot F} \cdot \frac{-\sqrt{2}}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                            Alternative 9: 35.1% accurate, 3.0× speedup?

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

                              1. Initial program 61.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*61.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. unpow261.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. +-commutative61.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. unpow261.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*61.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. unpow261.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. Simplified61.0%

                                \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                              4. Taylor expanded in A around -inf 50.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}{\left(C + -1 \cdot A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                              5. Step-by-step derivation
                                1. mul-1-neg50.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) + \left(C + \color{blue}{\left(-A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                2. sub-neg50.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                              6. Simplified50.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                              if -6.79999999999999973e137 < F < 2.0499999999999999e-251

                              1. Initial program 22.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*22.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. unpow222.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. +-commutative22.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. unpow222.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*22.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. unpow222.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. Simplified22.0%

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

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

                              if 2.0499999999999999e-251 < F < 5.99999999999999962e-31

                              1. Initial program 26.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. Simplified36.0%

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

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

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

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

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

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

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

                                if 5.99999999999999962e-31 < F

                                1. Initial program 11.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. Simplified13.9%

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -6.8 \cdot 10^{+137}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(A - C\right) - \left(A + C\right)\right) \cdot \left(2 \cdot \left(F \cdot \left(\left(A \cdot C\right) \cdot 4 - B \cdot B\right)\right)\right)}}{B \cdot B - \left(A \cdot C\right) \cdot 4}\\ \mathbf{elif}\;F \leq 2.05 \cdot 10^{-251}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(C - A\right) - \left(A + C\right)\right) \cdot \left(2 \cdot \left(F \cdot \left(\left(A \cdot C\right) \cdot 4 - B \cdot B\right)\right)\right)}}{B \cdot B - \left(A \cdot C\right) \cdot 4}\\ \mathbf{elif}\;F \leq 6 \cdot 10^{-31}:\\ \;\;\;\;\sqrt{B \cdot F} \cdot \frac{-\sqrt{2}}{B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]

                                Alternative 10: 30.3% accurate, 3.0× speedup?

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

                                  1. Initial program 61.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*61.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. unpow261.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. +-commutative61.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. unpow261.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*61.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. unpow261.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. Simplified61.0%

                                    \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                  4. Taylor expanded in A around -inf 50.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}{\left(C + -1 \cdot A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                  5. Step-by-step derivation
                                    1. mul-1-neg50.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) + \left(C + \color{blue}{\left(-A\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    2. sub-neg50.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                  6. Simplified50.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}{\left(C - A\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]

                                  if -1.80000000000000003e136 < F < 1.12e-248

                                  1. Initial program 22.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*22.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. unpow222.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. +-commutative22.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. unpow222.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*22.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. unpow222.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. Simplified22.0%

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

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

                                  if 1.12e-248 < F

                                  1. Initial program 16.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. Simplified21.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 9.6%

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

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

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

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

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

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

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

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

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

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

                                  Alternative 11: 14.2% accurate, 4.3× speedup?

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

                                    1. Initial program 20.4%

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

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

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

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

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

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

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

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

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

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

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

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

                                    if 1.5999999999999999e-35 < A

                                    1. Initial program 22.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*22.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. unpow222.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. +-commutative22.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. unpow222.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*22.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. unpow222.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. Simplified22.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 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) + \color{blue}{\left(A + \left(-1 \cdot C + 0.5 \cdot \frac{\left({B}^{2} + {C}^{2}\right) - {\left(-1 \cdot C\right)}^{2}}{A}\right)\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                    5. Step-by-step derivation
                                      1. +-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) + \left(A + \color{blue}{\left(0.5 \cdot \frac{\left({B}^{2} + {C}^{2}\right) - {\left(-1 \cdot C\right)}^{2}}{A} + -1 \cdot C\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      2. mul-1-neg27.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) + \left(A + \left(0.5 \cdot \frac{\left({B}^{2} + {C}^{2}\right) - {\left(-1 \cdot C\right)}^{2}}{A} + \color{blue}{\left(-C\right)}\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      3. unsub-neg27.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) + \left(A + \color{blue}{\left(0.5 \cdot \frac{\left({B}^{2} + {C}^{2}\right) - {\left(-1 \cdot C\right)}^{2}}{A} - C\right)}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      4. 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) + \left(A + \left(0.5 \cdot \frac{\color{blue}{{B}^{2} + \left({C}^{2} - {\left(-1 \cdot C\right)}^{2}\right)}}{A} - C\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      5. 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) + \left(A + \left(0.5 \cdot \frac{\color{blue}{B \cdot B} + \left({C}^{2} - {\left(-1 \cdot C\right)}^{2}\right)}{A} - C\right)\right)\right)}}{B \cdot B - 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) + \left(A + \left(0.5 \cdot \frac{B \cdot B + \left(\color{blue}{C \cdot C} - {\left(-1 \cdot C\right)}^{2}\right)}{A} - C\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      7. 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) + \left(A + \left(0.5 \cdot \frac{B \cdot B + \left(C \cdot C - \color{blue}{\left(-1 \cdot C\right) \cdot \left(-1 \cdot C\right)}\right)}{A} - C\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)} \]
                                      8. difference-of-squares27.3%

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

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

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

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

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

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

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

                                  Alternative 12: 14.2% accurate, 4.7× speedup?

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

                                    1. Initial program 20.4%

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

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

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

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

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

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

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

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

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

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

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

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

                                    if 2.49999999999999982e-35 < A

                                    1. Initial program 22.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*22.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. unpow222.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. +-commutative22.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. unpow222.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*22.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. unpow222.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. Simplified22.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 B around 0 27.3%

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

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

                                  Alternative 13: 9.5% accurate, 4.9× speedup?

                                  \[\begin{array}{l} B = |B|\\ \\ \begin{array}{l} t_0 := B \cdot B - \left(A \cdot C\right) \cdot 4\\ \frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(A + \left(A + C\right)\right)}}{t_0} \end{array} \end{array} \]
                                  NOTE: B should be positive before calling this function
                                  (FPCore (A B C F)
                                   :precision binary64
                                   (let* ((t_0 (- (* B B) (* (* A C) 4.0))))
                                     (/ (- (sqrt (* (* 2.0 (* F t_0)) (+ A (+ A C))))) t_0)))
                                  B = abs(B);
                                  double code(double A, double B, double C, double F) {
                                  	double t_0 = (B * B) - ((A * C) * 4.0);
                                  	return -sqrt(((2.0 * (F * t_0)) * (A + (A + C)))) / t_0;
                                  }
                                  
                                  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
                                      t_0 = (b * b) - ((a * c) * 4.0d0)
                                      code = -sqrt(((2.0d0 * (f * t_0)) * (a + (a + c)))) / t_0
                                  end function
                                  
                                  B = Math.abs(B);
                                  public static double code(double A, double B, double C, double F) {
                                  	double t_0 = (B * B) - ((A * C) * 4.0);
                                  	return -Math.sqrt(((2.0 * (F * t_0)) * (A + (A + C)))) / t_0;
                                  }
                                  
                                  B = abs(B)
                                  def code(A, B, C, F):
                                  	t_0 = (B * B) - ((A * C) * 4.0)
                                  	return -math.sqrt(((2.0 * (F * t_0)) * (A + (A + C)))) / t_0
                                  
                                  B = abs(B)
                                  function code(A, B, C, F)
                                  	t_0 = Float64(Float64(B * B) - Float64(Float64(A * C) * 4.0))
                                  	return Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(F * t_0)) * Float64(A + Float64(A + C))))) / t_0)
                                  end
                                  
                                  B = abs(B)
                                  function tmp = code(A, B, C, F)
                                  	t_0 = (B * B) - ((A * C) * 4.0);
                                  	tmp = -sqrt(((2.0 * (F * t_0)) * (A + (A + C)))) / t_0;
                                  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[(N[(A * C), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]}, N[((-N[Sqrt[N[(N[(2.0 * N[(F * t$95$0), $MachinePrecision]), $MachinePrecision] * N[(A + N[(A + C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  B = |B|\\
                                  \\
                                  \begin{array}{l}
                                  t_0 := B \cdot B - \left(A \cdot C\right) \cdot 4\\
                                  \frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(A + \left(A + C\right)\right)}}{t_0}
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Initial program 21.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*21.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. unpow221.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. +-commutative21.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. unpow221.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*21.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. unpow221.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. Simplified21.0%

                                    \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                  4. Taylor expanded in A around inf 10.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. Final simplification10.5%

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

                                  Alternative 14: 4.9% accurate, 5.9× speedup?

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

                                    \[\leadsto \color{blue}{\frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}} \]
                                  4. Taylor expanded in A around inf 10.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 C around 0 2.4%

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

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

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

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

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

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

                                  Reproduce

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