?

Average Accuracy: 17.8% → 52.3%
Time: 55.1s
Precision: binary64
Cost: 27916

?

\[ \begin{array}{c}[A, C] = \mathsf{sort}([A, C])\\ \end{array} \]
\[\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} \]
\[\begin{array}{l} t_0 := \frac{\sqrt{2}}{B}\\ t_1 := \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(C \cdot A\right) \cdot -4\right)\right)}\\ t_2 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_3 := \mathsf{fma}\left(2, C, -0.5 \cdot \frac{B \cdot B}{A}\right)\\ t_4 := \sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)}\\ t_5 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;B \leq -40000000:\\ \;\;\;\;t_4 \cdot \left(t_0 \cdot \sqrt{F}\right)\\ \mathbf{elif}\;B \leq 3.1 \cdot 10^{-255}:\\ \;\;\;\;\frac{\sqrt{t_3} \cdot \left(-t_1\right)}{t_5}\\ \mathbf{elif}\;B \leq 7.2 \cdot 10^{-159}:\\ \;\;\;\;\frac{-\sqrt{t_3 \cdot \left(t_2 \cdot \left(2 \cdot F\right)\right)}}{t_2}\\ \mathbf{elif}\;B \leq 7.8 \cdot 10^{+27}:\\ \;\;\;\;\frac{t_1 \cdot \left(-\sqrt{C \cdot 2}\right)}{t_5}\\ \mathbf{else}:\\ \;\;\;\;t_4 \cdot \left(t_0 \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
(FPCore (A B C F)
 :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))))
(FPCore (A B C F)
 :precision binary64
 (let* ((t_0 (/ (sqrt 2.0) B))
        (t_1 (sqrt (* 2.0 (* F (fma B B (* (* C A) -4.0))))))
        (t_2 (fma B B (* C (* A -4.0))))
        (t_3 (fma 2.0 C (* -0.5 (/ (* B B) A))))
        (t_4 (sqrt (+ (hypot B (- A C)) (+ C A))))
        (t_5 (- (* B B) (* (* C A) 4.0))))
   (if (<= B -40000000.0)
     (* t_4 (* t_0 (sqrt F)))
     (if (<= B 3.1e-255)
       (/ (* (sqrt t_3) (- t_1)) t_5)
       (if (<= B 7.2e-159)
         (/ (- (sqrt (* t_3 (* t_2 (* 2.0 F))))) t_2)
         (if (<= B 7.8e+27)
           (/ (* t_1 (- (sqrt (* C 2.0)))) t_5)
           (* t_4 (* t_0 (- (sqrt F))))))))))
double code(double A, double B, double C, double F) {
	return -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));
}
double code(double A, double B, double C, double F) {
	double t_0 = sqrt(2.0) / B;
	double t_1 = sqrt((2.0 * (F * fma(B, B, ((C * A) * -4.0)))));
	double t_2 = fma(B, B, (C * (A * -4.0)));
	double t_3 = fma(2.0, C, (-0.5 * ((B * B) / A)));
	double t_4 = sqrt((hypot(B, (A - C)) + (C + A)));
	double t_5 = (B * B) - ((C * A) * 4.0);
	double tmp;
	if (B <= -40000000.0) {
		tmp = t_4 * (t_0 * sqrt(F));
	} else if (B <= 3.1e-255) {
		tmp = (sqrt(t_3) * -t_1) / t_5;
	} else if (B <= 7.2e-159) {
		tmp = -sqrt((t_3 * (t_2 * (2.0 * F)))) / t_2;
	} else if (B <= 7.8e+27) {
		tmp = (t_1 * -sqrt((C * 2.0))) / t_5;
	} else {
		tmp = t_4 * (t_0 * -sqrt(F));
	}
	return tmp;
}
function code(A, B, C, F)
	return Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C)) * F)) * Float64(Float64(A + C) + sqrt(Float64((Float64(A - C) ^ 2.0) + (B ^ 2.0))))))) / Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C)))
end
function code(A, B, C, F)
	t_0 = Float64(sqrt(2.0) / B)
	t_1 = sqrt(Float64(2.0 * Float64(F * fma(B, B, Float64(Float64(C * A) * -4.0)))))
	t_2 = fma(B, B, Float64(C * Float64(A * -4.0)))
	t_3 = fma(2.0, C, Float64(-0.5 * Float64(Float64(B * B) / A)))
	t_4 = sqrt(Float64(hypot(B, Float64(A - C)) + Float64(C + A)))
	t_5 = Float64(Float64(B * B) - Float64(Float64(C * A) * 4.0))
	tmp = 0.0
	if (B <= -40000000.0)
		tmp = Float64(t_4 * Float64(t_0 * sqrt(F)));
	elseif (B <= 3.1e-255)
		tmp = Float64(Float64(sqrt(t_3) * Float64(-t_1)) / t_5);
	elseif (B <= 7.2e-159)
		tmp = Float64(Float64(-sqrt(Float64(t_3 * Float64(t_2 * Float64(2.0 * F))))) / t_2);
	elseif (B <= 7.8e+27)
		tmp = Float64(Float64(t_1 * Float64(-sqrt(Float64(C * 2.0)))) / t_5);
	else
		tmp = Float64(t_4 * Float64(t_0 * Float64(-sqrt(F))));
	end
	return tmp
end
code[A_, B_, C_, F_] := N[((-N[Sqrt[N[(N[(2.0 * N[(N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision] * 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]) / N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[A_, B_, C_, F_] := Block[{t$95$0 = N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision]}, Block[{t$95$1 = N[Sqrt[N[(2.0 * N[(F * N[(B * B + N[(N[(C * A), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(B * B + N[(C * N[(A * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(2.0 * C + N[(-0.5 * N[(N[(B * B), $MachinePrecision] / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[Sqrt[N[(N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision] + N[(C + A), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$5 = N[(N[(B * B), $MachinePrecision] - N[(N[(C * A), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -40000000.0], N[(t$95$4 * N[(t$95$0 * N[Sqrt[F], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 3.1e-255], N[(N[(N[Sqrt[t$95$3], $MachinePrecision] * (-t$95$1)), $MachinePrecision] / t$95$5), $MachinePrecision], If[LessEqual[B, 7.2e-159], N[((-N[Sqrt[N[(t$95$3 * N[(t$95$2 * N[(2.0 * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$2), $MachinePrecision], If[LessEqual[B, 7.8e+27], N[(N[(t$95$1 * (-N[Sqrt[N[(C * 2.0), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$5), $MachinePrecision], N[(t$95$4 * N[(t$95$0 * (-N[Sqrt[F], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\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}
\begin{array}{l}
t_0 := \frac{\sqrt{2}}{B}\\
t_1 := \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(C \cdot A\right) \cdot -4\right)\right)}\\
t_2 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\
t_3 := \mathsf{fma}\left(2, C, -0.5 \cdot \frac{B \cdot B}{A}\right)\\
t_4 := \sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)}\\
t_5 := B \cdot B - \left(C \cdot A\right) \cdot 4\\
\mathbf{if}\;B \leq -40000000:\\
\;\;\;\;t_4 \cdot \left(t_0 \cdot \sqrt{F}\right)\\

\mathbf{elif}\;B \leq 3.1 \cdot 10^{-255}:\\
\;\;\;\;\frac{\sqrt{t_3} \cdot \left(-t_1\right)}{t_5}\\

\mathbf{elif}\;B \leq 7.2 \cdot 10^{-159}:\\
\;\;\;\;\frac{-\sqrt{t_3 \cdot \left(t_2 \cdot \left(2 \cdot F\right)\right)}}{t_2}\\

\mathbf{elif}\;B \leq 7.8 \cdot 10^{+27}:\\
\;\;\;\;\frac{t_1 \cdot \left(-\sqrt{C \cdot 2}\right)}{t_5}\\

\mathbf{else}:\\
\;\;\;\;t_4 \cdot \left(t_0 \cdot \left(-\sqrt{F}\right)\right)\\


\end{array}

Error?

Derivation?

  1. Split input into 5 regimes
  2. if B < -4e7

    1. Initial program 13.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. Simplified13.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)}} \]
      Proof

      [Start]13.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} \]

      associate-*l* [=>]13.2

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

      unpow2 [=>]13.2

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

      +-commutative [=>]13.2

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      unpow2 [=>]13.2

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      associate-*l* [=>]13.2

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)}} \]

      unpow2 [=>]13.2

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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. Applied egg-rr22.3%

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

      [Start]13.2

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)} \]

      *-commutative [=>]13.2

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

      sqrt-prod [=>]16.6

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

      associate-+l+ [=>]16.6

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

      unpow2 [=>]16.6

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

      hypot-def [=>]22.3

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

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

      [Start]22.3

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

      div-inv [=>]22.3

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

      distribute-rgt-neg-in [=>]22.3

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

      associate-*l* [=>]22.3

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

      *-commutative [=>]22.3

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

      associate-*l* [=>]22.3

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

      fma-neg [=>]22.3

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

      distribute-lft-neg-in [=>]22.3

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

      metadata-eval [=>]22.3

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

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

      [Start]22.3

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

      associate-+r+ [=>]22.3

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

      +-commutative [=>]22.3

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

      associate-*r/ [=>]22.3

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

      *-rgt-identity [=>]22.3

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

      associate-*r* [=>]22.3

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

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

    if -4e7 < B < 3.09999999999999997e-255

    1. Initial program 21.3%

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

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

      [Start]21.3

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

      associate-*l* [=>]21.3

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

      unpow2 [=>]21.3

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

      +-commutative [=>]21.3

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      unpow2 [=>]21.3

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      associate-*l* [=>]21.3

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)}} \]

      unpow2 [=>]21.3

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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. Applied egg-rr35.2%

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

      [Start]21.3

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)} \]

      *-commutative [=>]21.3

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

      sqrt-prod [=>]23.4

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

      associate-+l+ [=>]23.4

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

      unpow2 [=>]23.4

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

      hypot-def [=>]35.2

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

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

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

      [Start]41.2

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

      fma-def [=>]41.2

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

      unpow2 [=>]41.2

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

    if 3.09999999999999997e-255 < B < 7.20000000000000042e-159

    1. Initial program 18.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. Simplified18.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)}} \]
      Proof

      [Start]18.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} \]

      associate-*l* [=>]18.1

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

      unpow2 [=>]18.1

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

      +-commutative [=>]18.1

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      unpow2 [=>]18.1

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      associate-*l* [=>]18.1

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)}} \]

      unpow2 [=>]18.1

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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. Applied egg-rr31.8%

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

      [Start]18.1

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)} \]

      *-commutative [=>]18.1

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

      sqrt-prod [=>]18.8

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

      associate-+l+ [=>]18.8

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

      unpow2 [=>]18.8

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

      hypot-def [=>]31.8

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

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

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

      [Start]47.1

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

      fma-def [=>]47.1

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

      unpow2 [=>]47.1

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

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

      [Start]47.1

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

      distribute-frac-neg [=>]47.1

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

      neg-sub0 [=>]47.1

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

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

      [Start]47.1

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

      neg-sub0 [<=]47.1

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

      distribute-neg-frac [=>]47.1

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

      *-commutative [=>]47.1

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

    if 7.20000000000000042e-159 < B < 7.7999999999999997e27

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

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

      [Start]26.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} \]

      associate-*l* [=>]26.7

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

      unpow2 [=>]26.7

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

      +-commutative [=>]26.7

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      unpow2 [=>]26.7

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      associate-*l* [=>]26.7

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)}} \]

      unpow2 [=>]26.7

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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. Applied egg-rr41.5%

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

      [Start]26.7

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)} \]

      *-commutative [=>]26.7

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

      sqrt-prod [=>]29.2

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

      associate-+l+ [=>]29.2

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

      unpow2 [=>]29.2

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

      hypot-def [=>]41.5

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

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

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

      [Start]40.1

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

      *-commutative [=>]40.1

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

    if 7.7999999999999997e27 < B

    1. Initial program 12.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. Simplified12.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)}} \]
      Proof

      [Start]12.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} \]

      associate-*l* [=>]12.2

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

      unpow2 [=>]12.2

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

      +-commutative [=>]12.2

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      unpow2 [=>]12.2

      \[ \frac{-\sqrt{\left(2 \cdot \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} \]

      associate-*l* [=>]12.2

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)}} \]

      unpow2 [=>]12.2

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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. Applied egg-rr20.2%

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

      [Start]12.2

      \[ \frac{-\sqrt{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \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)} \]

      *-commutative [=>]12.2

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

      sqrt-prod [=>]16.2

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

      associate-+l+ [=>]16.2

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

      unpow2 [=>]16.2

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

      hypot-def [=>]20.2

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

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

      [Start]20.2

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

      div-inv [=>]20.2

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

      distribute-rgt-neg-in [=>]20.2

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

      associate-*l* [=>]20.1

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

      *-commutative [=>]20.1

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

      associate-*l* [=>]20.1

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

      fma-neg [=>]20.1

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

      distribute-lft-neg-in [=>]20.1

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

      metadata-eval [=>]20.1

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

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

      [Start]20.1

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

      associate-+r+ [=>]20.1

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

      +-commutative [=>]20.1

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

      associate-*r/ [=>]20.2

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

      *-rgt-identity [=>]20.2

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

      associate-*r* [=>]20.2

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

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

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

      [Start]65.8

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

      mul-1-neg [=>]65.8

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

      distribute-rgt-neg-in [=>]65.8

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

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

Alternatives

Alternative 1
Accuracy52.6%
Cost27916
\[\begin{array}{l} t_0 := \frac{\sqrt{2}}{B}\\ t_1 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_2 := \sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)}\\ t_3 := \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(C \cdot A\right) \cdot -4\right)\right)} \cdot \left(-\sqrt{C \cdot 2}\right)}{B \cdot B - \left(C \cdot A\right) \cdot 4}\\ \mathbf{if}\;B \leq -2.15 \cdot 10^{-14}:\\ \;\;\;\;t_2 \cdot \left(t_0 \cdot \sqrt{F}\right)\\ \mathbf{elif}\;B \leq 3 \cdot 10^{-255}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;B \leq 2.15 \cdot 10^{-157}:\\ \;\;\;\;\frac{-\sqrt{\mathsf{fma}\left(2, C, -0.5 \cdot \frac{B \cdot B}{A}\right) \cdot \left(t_1 \cdot \left(2 \cdot F\right)\right)}}{t_1}\\ \mathbf{elif}\;B \leq 8 \cdot 10^{+27}:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;t_2 \cdot \left(t_0 \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
Alternative 2
Accuracy52.6%
Cost26824
\[\begin{array}{l} t_0 := \frac{\sqrt{2}}{B}\\ t_1 := \sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)}\\ \mathbf{if}\;B \leq -1 \cdot 10^{-14}:\\ \;\;\;\;t_1 \cdot \left(t_0 \cdot \sqrt{F}\right)\\ \mathbf{elif}\;B \leq 7.2 \cdot 10^{+27}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(C \cdot A\right) \cdot -4\right)\right)} \cdot \left(-\sqrt{C \cdot 2}\right)}{B \cdot B - \left(C \cdot A\right) \cdot 4}\\ \mathbf{else}:\\ \;\;\;\;t_1 \cdot \left(t_0 \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
Alternative 3
Accuracy47.9%
Cost26628
\[\begin{array}{l} t_0 := \frac{\sqrt{2}}{B}\\ \mathbf{if}\;B \leq -4.4 \cdot 10^{-15}:\\ \;\;\;\;\sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)} \cdot \left(t_0 \cdot \sqrt{F}\right)\\ \mathbf{elif}\;B \leq 7.5 \cdot 10^{+86}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(C \cdot A\right) \cdot -4\right)\right)} \cdot \left(-\sqrt{C \cdot 2}\right)}{B \cdot B - \left(C \cdot A\right) \cdot 4}\\ \mathbf{else}:\\ \;\;\;\;t_0 \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right)\\ \end{array} \]
Alternative 4
Accuracy30.3%
Cost21128
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ t_1 := \frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\mathsf{hypot}\left(C, B\right) + \left(C + A\right)\right)}}{t_0}\\ \mathbf{if}\;B \leq -5.4 \cdot 10^{-217}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq 2.9 \cdot 10^{-17}:\\ \;\;\;\;\frac{-\sqrt{\mathsf{fma}\left(8, C \cdot \left(F \cdot \left(B \cdot B\right)\right), \left(A \cdot -16\right) \cdot \left(F \cdot \left(C \cdot C\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\ \mathbf{elif}\;B \leq 1.7 \cdot 10^{+91}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right)\\ \end{array} \]
Alternative 5
Accuracy36.1%
Cost21128
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ t_1 := \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(C \cdot A\right) \cdot -4\right)\right)}\\ \mathbf{if}\;B \leq -60000000000:\\ \;\;\;\;\frac{t_1 \cdot \left(-\sqrt{-B}\right)}{t_0}\\ \mathbf{elif}\;B \leq 7.5 \cdot 10^{+86}:\\ \;\;\;\;\frac{t_1 \cdot \left(-\sqrt{C \cdot 2}\right)}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right)\\ \end{array} \]
Alternative 6
Accuracy30.2%
Cost20300
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ t_1 := \frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\mathsf{hypot}\left(C, B\right) + \left(C + A\right)\right)}}{t_0}\\ \mathbf{if}\;B \leq -2 \cdot 10^{-218}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq 5.4 \cdot 10^{-16}:\\ \;\;\;\;\frac{-\sqrt{\left(A \cdot -16\right) \cdot \left(F \cdot \left(C \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\ \mathbf{elif}\;B \leq 1.7 \cdot 10^{+91}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right)\\ \end{array} \]
Alternative 7
Accuracy28.7%
Cost15180
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ t_1 := \frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\mathsf{hypot}\left(C, B\right) + \left(C + A\right)\right)}}{t_0}\\ \mathbf{if}\;B \leq -8.2 \cdot 10^{-219}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq 4.2 \cdot 10^{-17}:\\ \;\;\;\;\frac{-\sqrt{\left(A \cdot -16\right) \cdot \left(F \cdot \left(C \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\ \mathbf{elif}\;B \leq 3 \cdot 10^{+125}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(B + C\right)}\right)\\ \end{array} \]
Alternative 8
Accuracy23.7%
Cost14792
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;C \leq -1 \cdot 10^{-170}:\\ \;\;\;\;\frac{-\sqrt{\left(A \cdot -16\right) \cdot \left(F \cdot \left(C \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\ \mathbf{elif}\;C \leq 1.4 \cdot 10^{-307}:\\ \;\;\;\;\frac{-\sqrt{\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(F \cdot \left(2 \cdot \left(B \cdot B\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;C \leq 5.3 \cdot 10^{-5}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(B + C\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\left(C + A\right) + \left(C - A\right)\right)}}{t_0}\\ \end{array} \]
Alternative 9
Accuracy23.3%
Cost14084
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;C \leq -6.2 \cdot 10^{-179}:\\ \;\;\;\;\frac{-\sqrt{-16 \cdot \left(F \cdot \left(A \cdot \left(C \cdot C\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\ \mathbf{elif}\;C \leq 2 \cdot 10^{-308}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(B \cdot F\right) \cdot \left(B \cdot \left(B + \left(C + A\right)\right)\right)\right) \cdot \left(-2\right)}}{t_0}\\ \mathbf{elif}\;C \leq 21.5:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(B + C\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\left(C + A\right) + \left(C - A\right)\right)}}{t_0}\\ \end{array} \]
Alternative 10
Accuracy23.1%
Cost14084
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;C \leq -4.3 \cdot 10^{-179}:\\ \;\;\;\;\frac{-\sqrt{\left(A \cdot -16\right) \cdot \left(F \cdot \left(C \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\ \mathbf{elif}\;C \leq 1.2 \cdot 10^{-308}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(B \cdot F\right) \cdot \left(B \cdot \left(B + \left(C + A\right)\right)\right)\right) \cdot \left(-2\right)}}{t_0}\\ \mathbf{elif}\;C \leq 0.36:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(B + C\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\left(C + A\right) + \left(C - A\right)\right)}}{t_0}\\ \end{array} \]
Alternative 11
Accuracy24.4%
Cost13704
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ t_1 := 2 \cdot \left(F \cdot t_0\right)\\ \mathbf{if}\;B \leq -2.4 \cdot 10^{-11}:\\ \;\;\;\;\frac{-\sqrt{t_1 \cdot \left(\left(C + A\right) + \left(-0.5 \cdot \frac{A \cdot A}{B} - B\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 7.5 \cdot 10^{+86}:\\ \;\;\;\;\frac{-\sqrt{t_1 \cdot \left(\left(C + A\right) + \left(C - A\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;-\frac{\sqrt{2}}{B} \cdot \sqrt{F \cdot \left(B + A\right)}\\ \end{array} \]
Alternative 12
Accuracy24.7%
Cost13704
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ t_1 := 2 \cdot \left(F \cdot t_0\right)\\ \mathbf{if}\;B \leq -2.85 \cdot 10^{-11}:\\ \;\;\;\;\frac{-\sqrt{t_1 \cdot \left(\left(C + A\right) + \left(-0.5 \cdot \frac{A \cdot A}{B} - B\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 1.12 \cdot 10^{+89}:\\ \;\;\;\;\frac{-\sqrt{t_1 \cdot \left(\left(C + A\right) + \left(C - A\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(B + C\right)}\right)\\ \end{array} \]
Alternative 13
Accuracy17.1%
Cost8580
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;C \leq 2.4 \cdot 10^{-139}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(B \cdot F\right) \cdot \left(B \cdot \left(B + \left(C + A\right)\right)\right)\right) \cdot \left(-2\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(\left(C + A\right) + \left(C - A\right)\right)}}{t_0}\\ \end{array} \]
Alternative 14
Accuracy11.0%
Cost8452
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ t_1 := B + \left(C + A\right)\\ \mathbf{if}\;B \leq -9.8 \cdot 10^{-166}:\\ \;\;\;\;\frac{-\sqrt{-2 \cdot \left(t_1 \cdot \left(B \cdot \left(B \cdot F\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot t_1}}{t_0}\\ \end{array} \]
Alternative 15
Accuracy17.1%
Cost8452
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;C \leq 4.2 \cdot 10^{-64}:\\ \;\;\;\;\frac{-\sqrt{\left(\left(B \cdot F\right) \cdot \left(B \cdot \left(B + \left(C + A\right)\right)\right)\right) \cdot \left(-2\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(F \cdot t_0\right)\right) \cdot \left(C + \left(C + A\right)\right)}}{t_0}\\ \end{array} \]
Alternative 16
Accuracy10.4%
Cost8068
\[\begin{array}{l} t_0 := B \cdot \left(B \cdot F\right)\\ t_1 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;B \leq 1.25 \cdot 10^{-110}:\\ \;\;\;\;\frac{-\sqrt{-2 \cdot \left(\left(B + \left(C + A\right)\right) \cdot t_0\right)}}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{t_0 \cdot \left(2 \cdot \left(B + C\right)\right)}}{t_1}\\ \end{array} \]
Alternative 17
Accuracy6.2%
Cost7940
\[\begin{array}{l} t_0 := B \cdot B - \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;C \leq 8.6 \cdot 10^{-65}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(B \cdot \left(B \cdot F\right)\right) \cdot \left(B + A\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{B \cdot \left(-2 \cdot \sqrt{C \cdot F}\right)}{t_0}\\ \end{array} \]
Alternative 18
Accuracy6.2%
Cost7808
\[\frac{-\sqrt{\left(B \cdot \left(B \cdot F\right)\right) \cdot \left(2 \cdot \left(B + C\right)\right)}}{B \cdot B - \left(C \cdot A\right) \cdot 4} \]
Alternative 19
Accuracy6.0%
Cost7684
\[\begin{array}{l} \mathbf{if}\;C \leq 1.1 \cdot 10^{-73}:\\ \;\;\;\;\frac{-\sqrt{\left(B + \left(C + A\right)\right) \cdot \left(2 \cdot \left(B \cdot \left(B \cdot F\right)\right)\right)}}{B \cdot B}\\ \mathbf{else}:\\ \;\;\;\;\frac{B \cdot \left(-2 \cdot \sqrt{C \cdot F}\right)}{B \cdot B - \left(C \cdot A\right) \cdot 4}\\ \end{array} \]
Alternative 20
Accuracy5.0%
Cost7552
\[\frac{-\sqrt{\left(B + \left(C + A\right)\right) \cdot \left(2 \cdot \left(B \cdot \left(B \cdot F\right)\right)\right)}}{B \cdot B} \]
Alternative 21
Accuracy0.9%
Cost7104
\[0.25 \cdot \left(\sqrt{\frac{F}{A}} \cdot \frac{2}{\frac{C}{B}}\right) \]
Alternative 22
Accuracy1.9%
Cost7104
\[0.25 \cdot \left(\frac{2}{\frac{A}{B}} \cdot \sqrt{\frac{F}{C}}\right) \]

Error

Reproduce?

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