?

Average Error: 52.5 → 41.0
Time: 50.4s
Precision: binary64
Cost: 34120

?

\[\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 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_1 := \mathsf{hypot}\left(B, A - C\right)\\ t_2 := -4 \cdot \left(A \cdot C\right)\\ \mathbf{if}\;A \leq -1.4:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(2, C, \frac{B \cdot \left(-0.5 \cdot B\right)}{A}\right) \cdot t_0} \cdot \left(-\sqrt{2 \cdot F}\right)}{t_0}\\ \mathbf{elif}\;A \leq 4 \cdot 10^{-296}:\\ \;\;\;\;\frac{\sqrt{F \cdot \left(C + \left(A + t_1\right)\right)} \cdot \left(-\sqrt{2 \cdot t_0}\right)}{t_0}\\ \mathbf{elif}\;A \leq 7.4 \cdot 10^{-202}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{A + \left(C + t_1\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_2\right)\right)}\right)}{t_2 + B \cdot B}\\ \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 (fma B B (* C (* A -4.0))))
        (t_1 (hypot B (- A C)))
        (t_2 (* -4.0 (* A C))))
   (if (<= A -1.4)
     (/
      (*
       (sqrt (* (fma 2.0 C (/ (* B (* -0.5 B)) A)) t_0))
       (- (sqrt (* 2.0 F))))
      t_0)
     (if (<= A 4e-296)
       (/ (* (sqrt (* F (+ C (+ A t_1)))) (- (sqrt (* 2.0 t_0)))) t_0)
       (if (<= A 7.4e-202)
         (* (sqrt 2.0) (- (sqrt (/ F B))))
         (/
          (* (sqrt (+ A (+ C t_1))) (- (sqrt (* 2.0 (* F (fma B B t_2))))))
          (+ t_2 (* B B))))))))
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 = fma(B, B, (C * (A * -4.0)));
	double t_1 = hypot(B, (A - C));
	double t_2 = -4.0 * (A * C);
	double tmp;
	if (A <= -1.4) {
		tmp = (sqrt((fma(2.0, C, ((B * (-0.5 * B)) / A)) * t_0)) * -sqrt((2.0 * F))) / t_0;
	} else if (A <= 4e-296) {
		tmp = (sqrt((F * (C + (A + t_1)))) * -sqrt((2.0 * t_0))) / t_0;
	} else if (A <= 7.4e-202) {
		tmp = sqrt(2.0) * -sqrt((F / B));
	} else {
		tmp = (sqrt((A + (C + t_1))) * -sqrt((2.0 * (F * fma(B, B, t_2))))) / (t_2 + (B * B));
	}
	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 = fma(B, B, Float64(C * Float64(A * -4.0)))
	t_1 = hypot(B, Float64(A - C))
	t_2 = Float64(-4.0 * Float64(A * C))
	tmp = 0.0
	if (A <= -1.4)
		tmp = Float64(Float64(sqrt(Float64(fma(2.0, C, Float64(Float64(B * Float64(-0.5 * B)) / A)) * t_0)) * Float64(-sqrt(Float64(2.0 * F)))) / t_0);
	elseif (A <= 4e-296)
		tmp = Float64(Float64(sqrt(Float64(F * Float64(C + Float64(A + t_1)))) * Float64(-sqrt(Float64(2.0 * t_0)))) / t_0);
	elseif (A <= 7.4e-202)
		tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(F / B))));
	else
		tmp = Float64(Float64(sqrt(Float64(A + Float64(C + t_1))) * Float64(-sqrt(Float64(2.0 * Float64(F * fma(B, B, t_2)))))) / Float64(t_2 + Float64(B * B)));
	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[(B * B + N[(C * N[(A * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -1.4], N[(N[(N[Sqrt[N[(N[(2.0 * C + N[(N[(B * N[(-0.5 * B), $MachinePrecision]), $MachinePrecision] / A), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * F), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[A, 4e-296], N[(N[(N[Sqrt[N[(F * N[(C + N[(A + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * t$95$0), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[A, 7.4e-202], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], N[(N[(N[Sqrt[N[(A + N[(C + t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * N[(F * N[(B * B + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / N[(t$95$2 + N[(B * B), $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 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\
t_1 := \mathsf{hypot}\left(B, A - C\right)\\
t_2 := -4 \cdot \left(A \cdot C\right)\\
\mathbf{if}\;A \leq -1.4:\\
\;\;\;\;\frac{\sqrt{\mathsf{fma}\left(2, C, \frac{B \cdot \left(-0.5 \cdot B\right)}{A}\right) \cdot t_0} \cdot \left(-\sqrt{2 \cdot F}\right)}{t_0}\\

\mathbf{elif}\;A \leq 4 \cdot 10^{-296}:\\
\;\;\;\;\frac{\sqrt{F \cdot \left(C + \left(A + t_1\right)\right)} \cdot \left(-\sqrt{2 \cdot t_0}\right)}{t_0}\\

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

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


\end{array}

Error?

Derivation?

  1. Split input into 4 regimes
  2. if A < -1.3999999999999999

    1. Initial program 61.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. Simplified60.1

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

      [Start]61.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} \]
    3. Taylor expanded in A around -inf 45.1

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

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

      [Start]45.1

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

      fma-def [=>]45.1

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

      associate-*r/ [=>]45.1

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

      unpow2 [=>]45.1

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

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

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

      [Start]60.5

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

      associate-+l- [=>]60.5

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

      expm1-def [=>]48.9

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

      expm1-log1p [=>]47.3

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

      sub0-neg [=>]47.3

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

      distribute-neg-frac [=>]47.3

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

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

    if -1.3999999999999999 < A < 4e-296

    1. Initial program 49.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. Simplified45.6

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

      [Start]49.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} \]
    3. Applied egg-rr41.7

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

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

      [Start]41.7

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

      *-commutative [=>]41.7

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

      associate-+r+ [=>]41.8

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

      +-commutative [<=]41.8

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

      associate-+l+ [=>]41.5

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

    if 4e-296 < A < 7.39999999999999982e-202

    1. Initial program 49.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. Simplified49.1

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

      [Start]49.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} \]
    3. Taylor expanded in C around 0 56.6

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

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

      [Start]56.6

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

      *-commutative [=>]56.6

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

      *-commutative [=>]56.6

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

      unpow2 [=>]56.6

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

      unpow2 [=>]56.6

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

      *-commutative [=>]56.6

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

      \[\leadsto \color{blue}{-1 \cdot \left(\sqrt{2} \cdot \sqrt{\frac{F}{B}}\right)} \]
    6. Simplified50.9

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

      [Start]50.9

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

      mul-1-neg [=>]50.9

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

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

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

    if 7.39999999999999982e-202 < A

    1. Initial program 49.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. Simplified49.8

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

      [Start]49.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} \]
    3. Applied egg-rr38.3

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

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

      [Start]38.3

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

      *-commutative [=>]38.3

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

      *-commutative [=>]38.3

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

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

Alternatives

Alternative 1
Error41.8
Cost34120
\[\begin{array}{l} t_0 := \mathsf{hypot}\left(B, A - C\right)\\ t_1 := -4 \cdot \left(A \cdot C\right)\\ t_2 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ \mathbf{if}\;A \leq -70:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot \mathsf{fma}\left(2, C, \frac{-0.5 \cdot \left(B \cdot B\right)}{A}\right)\right)\right)}}{t_2}\\ \mathbf{elif}\;A \leq 10^{-295}:\\ \;\;\;\;\frac{\sqrt{F \cdot \left(C + \left(A + t_0\right)\right)} \cdot \left(-\sqrt{2 \cdot t_2}\right)}{t_2}\\ \mathbf{elif}\;A \leq 2.5 \cdot 10^{-201}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{A + \left(C + t_0\right)} \cdot \left(-\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_1\right)\right)}\right)}{t_1 + B \cdot B}\\ \end{array} \]
Alternative 2
Error45.4
Cost28116
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right)\\ t_1 := t_0 + B \cdot B\\ t_2 := \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_0\right)\right)}\\ t_3 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_4 := \frac{-\sqrt{2 \cdot \left(t_3 \cdot \left(F \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)\right)}}{t_3}\\ \mathbf{if}\;A \leq -1.4 \cdot 10^{+41}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_3 \cdot \left(F \cdot \left(2 \cdot C\right)\right)\right)}}{t_3}\\ \mathbf{elif}\;A \leq -3 \cdot 10^{-61}:\\ \;\;\;\;\frac{t_2 \cdot \left(-\sqrt{2 \cdot C}\right)}{t_1}\\ \mathbf{elif}\;A \leq -2.95 \cdot 10^{-266}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;A \leq 9 \cdot 10^{-203}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \mathbf{elif}\;A \leq 1.05 \cdot 10^{+47}:\\ \;\;\;\;t_4\\ \mathbf{else}:\\ \;\;\;\;\frac{t_2 \cdot \left(-\sqrt{A \cdot 2}\right)}{t_1}\\ \end{array} \]
Alternative 3
Error45.6
Cost27984
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right)\\ t_1 := \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)\\ t_2 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ \mathbf{if}\;C \leq -6.2 \cdot 10^{+22}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot \left(A \cdot 2\right)\right)\right)}}{t_2}\\ \mathbf{elif}\;C \leq -7.6 \cdot 10^{-59}:\\ \;\;\;\;\frac{-\sqrt{\left(F \cdot \left(A \cdot \left(C \cdot C\right)\right)\right) \cdot -16}}{t_2}\\ \mathbf{elif}\;C \leq -1.2 \cdot 10^{-94}:\\ \;\;\;\;\sqrt{F \cdot \left(A + \mathsf{fma}\left(0.5, \frac{A}{\frac{B}{A}}, B\right)\right)} \cdot \frac{-\sqrt{2}}{B}\\ \mathbf{elif}\;C \leq 125000000000:\\ \;\;\;\;\frac{-\sqrt{\left(F \cdot t_1\right) \cdot \left(2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_0\right)\right)} \cdot \left(-\sqrt{2 \cdot C}\right)}{t_0 + B \cdot B}\\ \end{array} \]
Alternative 4
Error44.7
Cost27984
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right)\\ t_1 := \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)\\ t_2 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ \mathbf{if}\;C \leq -8.4 \cdot 10^{+21}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot \mathsf{fma}\left(2, A, -0.5 \cdot \frac{B \cdot B}{C}\right)\right)\right)}}{t_2}\\ \mathbf{elif}\;C \leq -5.6 \cdot 10^{-60}:\\ \;\;\;\;\frac{-\sqrt{\left(F \cdot \left(A \cdot \left(C \cdot C\right)\right)\right) \cdot -16}}{t_2}\\ \mathbf{elif}\;C \leq -1.15 \cdot 10^{-95}:\\ \;\;\;\;\sqrt{F \cdot \left(A + \mathsf{fma}\left(0.5, \frac{A}{\frac{B}{A}}, B\right)\right)} \cdot \frac{-\sqrt{2}}{B}\\ \mathbf{elif}\;C \leq 14000000000:\\ \;\;\;\;\frac{-\sqrt{\left(F \cdot t_1\right) \cdot \left(2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_0\right)\right)} \cdot \left(-\sqrt{2 \cdot C}\right)}{t_0 + B \cdot B}\\ \end{array} \]
Alternative 5
Error42.5
Cost27980
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right)\\ t_1 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ \mathbf{if}\;C \leq -9.2 \cdot 10^{+18}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(F \cdot \mathsf{fma}\left(2, A, -0.5 \cdot \frac{B \cdot B}{C}\right)\right)\right)}}{t_1}\\ \mathbf{elif}\;C \leq -1.02 \cdot 10^{-61}:\\ \;\;\;\;\frac{-\sqrt{\left(F \cdot \left(A \cdot \left(C \cdot C\right)\right)\right) \cdot -16}}{t_1}\\ \mathbf{elif}\;C \leq -4.1 \cdot 10^{-99}:\\ \;\;\;\;\sqrt{F \cdot \left(A + \mathsf{fma}\left(0.5, \frac{A}{\frac{B}{A}}, B\right)\right)} \cdot \frac{-\sqrt{2}}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{\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, t_0\right)\right)}\right)}{t_0 + B \cdot B}\\ \end{array} \]
Alternative 6
Error45.7
Cost21524
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right)\\ t_1 := t_0 + B \cdot B\\ t_2 := \frac{-\sqrt{2 \cdot \left(\left(F \cdot t_1\right) \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(A - C, B\right)\right)\right)}}{t_1}\\ t_3 := \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_0\right)\right)}\\ t_4 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ \mathbf{if}\;A \leq -1.2 \cdot 10^{+40}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_4 \cdot \left(F \cdot \left(2 \cdot C\right)\right)\right)}}{t_4}\\ \mathbf{elif}\;A \leq -3.4 \cdot 10^{-62}:\\ \;\;\;\;\frac{t_3 \cdot \left(-\sqrt{2 \cdot C}\right)}{t_1}\\ \mathbf{elif}\;A \leq 8.8 \cdot 10^{-296}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;A \leq 1.3 \cdot 10^{-201}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \mathbf{elif}\;A \leq 4 \cdot 10^{+33}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\frac{t_3 \cdot \left(-\sqrt{A \cdot 2}\right)}{t_1}\\ \end{array} \]
Alternative 7
Error45.5
Cost21000
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_1 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_2 := \frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(A - C, B\right)\right)\right)}}{t_0}\\ \mathbf{if}\;B \leq 1.3 \cdot 10^{-286}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;B \leq 10^{-90}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(F \cdot \left(A \cdot 2\right)\right)\right)}}{t_1}\\ \mathbf{elif}\;B \leq 2.1 \cdot 10^{+83}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{fma}\left(0.5, \frac{C}{\frac{B}{C}}, B\right)\right)}\right)\\ \end{array} \]
Alternative 8
Error45.3
Cost20356
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ \mathbf{if}\;B \leq 1.9 \cdot 10^{+84}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(A - C, B\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{fma}\left(0.5, \frac{C}{\frac{B}{C}}, B\right)\right)}\right)\\ \end{array} \]
Alternative 9
Error44.8
Cost15044
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ \mathbf{if}\;B \leq 9 \cdot 10^{+87}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(A - C, B\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 10
Error50.4
Cost14344
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ \mathbf{if}\;B \leq -1.2 \cdot 10^{-8}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(\left(A + C\right) - B\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 1.16 \cdot 10^{-24}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(-8 \cdot \left(A \cdot A\right)\right) \cdot \left(C \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 11
Error50.4
Cost13448
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ \mathbf{if}\;B \leq -1.26 \cdot 10^{-8}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(\left(A + C\right) - B\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 1.5 \cdot 10^{-24}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(-8 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 12
Error55.5
Cost8716
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_1 := F \cdot t_0\\ \mathbf{if}\;B \leq -3.3 \cdot 10^{-9}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(\left(A + C\right) - B\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 2.5 \cdot 10^{-89}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(-8 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 7.9 \cdot 10^{+89}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(B + \left(A + C\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{A \cdot F} \cdot \frac{-2}{B}\\ \end{array} \]
Alternative 13
Error56.9
Cost8584
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ \mathbf{if}\;B \leq 2.4 \cdot 10^{-93}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(-8 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 7.9 \cdot 10^{+89}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(B + \left(A + C\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{A \cdot F} \cdot \frac{-2}{B}\\ \end{array} \]
Alternative 14
Error53.4
Cost8584
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_1 := F \cdot t_0\\ \mathbf{if}\;C \leq -1.8 \cdot 10^{-135}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(-8 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;C \leq 12500000:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(A + \left(A + C\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(C + \left(A + C\right)\right)\right)}}{t_0}\\ \end{array} \]
Alternative 15
Error56.1
Cost8452
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ \mathbf{if}\;C \leq -5.3 \cdot 10^{-135}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(-8 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(A + \left(A + C\right)\right)\right)}}{t_0}\\ \end{array} \]
Alternative 16
Error58.0
Cost7940
\[\begin{array}{l} \mathbf{if}\;B \leq 6.8 \cdot 10^{+15}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(-8 \cdot \left(\left(A \cdot A\right) \cdot \left(C \cdot F\right)\right)\right)}}{-4 \cdot \left(A \cdot C\right) + B \cdot B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{A \cdot F} \cdot \frac{-2}{B}\\ \end{array} \]
Alternative 17
Error62.2
Cost6848
\[\sqrt{A \cdot F} \cdot \frac{-2}{B} \]

Error

Reproduce?

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