?

Average Accuracy: 18.0% → 53.4%
Time: 43.3s
Precision: binary64
Cost: 26760

?

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

\mathbf{elif}\;B \leq -2.9 \cdot 10^{+33}:\\
\;\;\;\;\sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)} \cdot \left(t_2 \cdot \sqrt{F}\right)\\

\mathbf{elif}\;B \leq 1.6 \cdot 10^{-37}:\\
\;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(C + \left(C + -0.5 \cdot \frac{B \cdot B}{A}\right)\right)\right)}}{t_0}\\

\mathbf{else}:\\
\;\;\;\;t_2 \cdot \left(\sqrt{F} \cdot \left(-\sqrt{t_1}\right)\right)\\


\end{array}

Error?

Derivation?

  1. Split input into 4 regimes
  2. if B < -7.80000000000000027e214

    1. Initial program 0.0%

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

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

      [Start]0.0

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

      associate-*l* [=>]0.0

      \[ \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 [=>]0.0

      \[ \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 [=>]0.0

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

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

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

      \[ \frac{-\sqrt{\left(2 \cdot \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. Taylor expanded in A around 0 0.0%

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

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

      [Start]0.0

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

      mul-1-neg [=>]0.0

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

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

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

      *-commutative [=>]0.0

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

      +-commutative [=>]0.0

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

      unpow2 [=>]0.0

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

      unpow2 [=>]0.0

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

      hypot-def [=>]2.2

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

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

      [Start]2.2

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

      add-sqr-sqrt [=>]0.0

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

      sqrt-unprod [=>]3.0

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

      sqr-neg [<=]3.0

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

      sqrt-unprod [<=]50.2

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

      add-sqr-sqrt [<=]50.3

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

      neg-sub0 [=>]50.3

      \[ \color{blue}{\left(0 - \frac{\sqrt{2}}{B}\right)} \cdot \left(-\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)}\right) \]
    6. Simplified50.3%

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

      [Start]50.3

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

      neg-sub0 [<=]50.3

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

      distribute-neg-frac [=>]50.3

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

      neg-mul-1 [=>]50.3

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

      *-commutative [=>]50.3

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

      associate-*r/ [<=]50.3

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

      metadata-eval [<=]50.3

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

      associate-/r* [<=]50.3

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

      neg-mul-1 [<=]50.3

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

      associate-*r/ [=>]50.3

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

      *-rgt-identity [=>]50.3

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

    if -7.80000000000000027e214 < B < -2.90000000000000025e33

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

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

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

      associate-*l* [=>]17.8

      \[ \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 [=>]17.8

      \[ \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 [=>]17.8

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

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

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

      \[ \frac{-\sqrt{\left(2 \cdot \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-rr32.4%

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

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

      \[ \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 [=>]24.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+ [=>]24.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 [=>]24.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 [=>]32.4

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

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

      \[ \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 [=>]32.4

      \[ \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 [=>]32.4

      \[ \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* [=>]32.4

      \[ \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 [=>]32.4

      \[ \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* [=>]32.4

      \[ \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 [=>]32.4

      \[ \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 [=>]32.4

      \[ \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 [=>]32.4

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

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

      \[ \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+ [=>]32.4

      \[ \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 [=>]32.4

      \[ \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/ [=>]32.4

      \[ \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 [=>]32.4

      \[ \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* [=>]32.4

      \[ \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 66.7%

      \[\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 -2.90000000000000025e33 < B < 1.5999999999999999e-37

    1. Initial program 21.5%

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

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

      [Start]21.5

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

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

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

      [Start]43.0

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

      unpow2 [=>]43.0

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

    if 1.5999999999999999e-37 < B

    1. Initial program 16.6%

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

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

      [Start]16.6

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

      associate-*l* [=>]16.6

      \[ \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 [=>]16.6

      \[ \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 [=>]16.6

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

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

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

      \[ \frac{-\sqrt{\left(2 \cdot \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. Taylor expanded in A around 0 20.8%

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

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

      [Start]20.8

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

      mul-1-neg [=>]20.8

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

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

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

      *-commutative [=>]20.8

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

      +-commutative [=>]20.8

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

      unpow2 [=>]20.8

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

      unpow2 [=>]20.8

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

      hypot-def [=>]47.0

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

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

      [Start]47.0

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

      *-commutative [=>]47.0

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

      sqrt-prod [=>]65.9

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

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

Alternatives

Alternative 1
Accuracy51.3%
Cost26568
\[\begin{array}{l} t_0 := C + \mathsf{hypot}\left(C, B\right)\\ t_1 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ \mathbf{if}\;B \leq -1.18 \cdot 10^{+33}:\\ \;\;\;\;\sqrt{F \cdot t_0} \cdot \frac{-\sqrt{2}}{-B}\\ \mathbf{elif}\;B \leq 1.05 \cdot 10^{-38}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_1\right) \cdot \left(C + \left(C + -0.5 \cdot \frac{B \cdot B}{A}\right)\right)\right)}}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{F} \cdot \left(-\sqrt{t_0}\right)\right)\\ \end{array} \]
Alternative 2
Accuracy48.7%
Cost21512
\[\begin{array}{l} t_0 := -\sqrt{2}\\ t_1 := \mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)\\ \mathbf{if}\;B \leq -1.18 \cdot 10^{+33}:\\ \;\;\;\;\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)} \cdot \frac{t_0}{-B}\\ \mathbf{elif}\;B \leq 10^{-38}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot t_1\right) \cdot \left(C + \left(C + -0.5 \cdot \frac{B \cdot B}{A}\right)\right)\right)}}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B + C}\right) \cdot \frac{t_0}{B}\\ \end{array} \]
Alternative 3
Accuracy39.1%
Cost20104
\[\begin{array}{l} \mathbf{if}\;B \leq -2.3 \cdot 10^{+25}:\\ \;\;\;\;-2 \cdot \sqrt{C \cdot \left(F \cdot {B}^{-2}\right)}\\ \mathbf{elif}\;B \leq 4.8 \cdot 10^{-38}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(2 \cdot \left(\left(F \cdot C\right) \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B + C}\right) \cdot \frac{-\sqrt{2}}{B}\\ \end{array} \]
Alternative 4
Accuracy49.1%
Cost20104
\[\begin{array}{l} t_0 := -\sqrt{2}\\ \mathbf{if}\;B \leq -1.32 \cdot 10^{+20}:\\ \;\;\;\;\sqrt{F \cdot \left(C + \mathsf{hypot}\left(C, B\right)\right)} \cdot \frac{t_0}{-B}\\ \mathbf{elif}\;B \leq 4.8 \cdot 10^{-37}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(2 \cdot \left(\left(F \cdot C\right) \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{F} \cdot \sqrt{B + C}\right) \cdot \frac{t_0}{B}\\ \end{array} \]
Alternative 5
Accuracy34.8%
Cost14728
\[\begin{array}{l} \mathbf{if}\;B \leq -1.5 \cdot 10^{+29}:\\ \;\;\;\;-2 \cdot \sqrt{C \cdot \left(F \cdot {B}^{-2}\right)}\\ \mathbf{elif}\;B \leq 5 \cdot 10^{-37}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(2 \cdot \left(\left(F \cdot C\right) \cdot \left(B \cdot B + -4 \cdot \left(C \cdot A\right)\right)\right)\right)}}{\mathsf{fma}\left(C, A \cdot -4, B \cdot B\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{F}{B}} \cdot \left(-\sqrt{2}\right)\\ \end{array} \]
Alternative 6
Accuracy32.7%
Cost13316
\[\begin{array}{l} \mathbf{if}\;B \leq 7 \cdot 10^{-38}:\\ \;\;\;\;\frac{\sqrt{\left(F \cdot C\right) \cdot \left(A \cdot \left(C \cdot -16\right)\right)}}{\left(C \cdot A\right) \cdot 4 - B \cdot B}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{F}{B}} \cdot \left(-\sqrt{2}\right)\\ \end{array} \]
Alternative 7
Accuracy25.3%
Cost8068
\[\begin{array}{l} t_0 := \left(C \cdot A\right) \cdot 4\\ \mathbf{if}\;B \leq 1.65 \cdot 10^{-37}:\\ \;\;\;\;\frac{\sqrt{\left(F \cdot C\right) \cdot \left(A \cdot \left(C \cdot -16\right)\right)}}{t_0 - B \cdot B}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{\left(2 \cdot \left(B \cdot \left(B \cdot F\right)\right)\right) \cdot \left(B + \left(C + A\right)\right)}}{B \cdot B - t_0}\\ \end{array} \]
Alternative 8
Accuracy24.7%
Cost7748
\[\begin{array}{l} \mathbf{if}\;B \leq 4.8 \cdot 10^{-37}:\\ \;\;\;\;\frac{\sqrt{\left(F \cdot C\right) \cdot \left(A \cdot \left(C \cdot -16\right)\right)}}{\left(C \cdot A\right) \cdot 4 - B \cdot B}\\ \mathbf{else}:\\ \;\;\;\;-2 \cdot \frac{\sqrt{F \cdot C}}{B}\\ \end{array} \]
Alternative 9
Accuracy8.7%
Cost6980
\[\begin{array}{l} t_0 := \sqrt{F \cdot C}\\ \mathbf{if}\;B \leq -2 \cdot 10^{-308}:\\ \;\;\;\;t_0 \cdot \frac{2}{B}\\ \mathbf{else}:\\ \;\;\;\;t_0 \cdot \frac{-2}{B}\\ \end{array} \]
Alternative 10
Accuracy8.7%
Cost6980
\[\begin{array}{l} t_0 := \sqrt{F \cdot C}\\ \mathbf{if}\;B \leq -2 \cdot 10^{-308}:\\ \;\;\;\;t_0 \cdot \frac{2}{B}\\ \mathbf{else}:\\ \;\;\;\;-2 \cdot \frac{t_0}{B}\\ \end{array} \]
Alternative 11
Accuracy5.1%
Cost6848
\[\sqrt{F \cdot C} \cdot \frac{-2}{B} \]
Alternative 12
Accuracy1.9%
Cost6720
\[\sqrt{-2 \cdot \frac{F}{B}} \]

Error

Reproduce?

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