?

Average Accuracy: 18.7% → 45.7%
Time: 1.0min
Precision: binary64
Cost: 108872

?

\[\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 := C \cdot \left(A \cdot -4\right)\\ t_1 := -4 \cdot \left(A \cdot C\right)\\ t_2 := \mathsf{hypot}\left(B, A - C\right)\\ t_3 := \mathsf{fma}\left(B, B, t_0\right)\\ t_4 := {B}^{2} + t_0\\ t_5 := \frac{-\sqrt{\left(2 \cdot \left(t_4 \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{B}^{2} + {\left(A - C\right)}^{2}}\right)}}{t_4}\\ \mathbf{if}\;t_5 \leq 0:\\ \;\;\;\;\frac{\left(\sqrt{\left(A + C\right) + t_2} \cdot \sqrt{F}\right) \cdot \left(-\sqrt{2 \cdot t_3}\right)}{t_3}\\ \mathbf{elif}\;t_5 \leq \infty:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_1\right)\right)} \cdot \left(-\sqrt{A + \left(C + t_2\right)}\right)}{t_1 + B \cdot B}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{C + \mathsf{fma}\left(0.5, C \cdot \frac{C}{B}, B\right)} \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 (* C (* A -4.0)))
        (t_1 (* -4.0 (* A C)))
        (t_2 (hypot B (- A C)))
        (t_3 (fma B B t_0))
        (t_4 (+ (pow B 2.0) t_0))
        (t_5
         (/
          (-
           (sqrt
            (*
             (* 2.0 (* t_4 F))
             (+ (+ A C) (sqrt (+ (pow B 2.0) (pow (- A C) 2.0)))))))
          t_4)))
   (if (<= t_5 0.0)
     (/ (* (* (sqrt (+ (+ A C) t_2)) (sqrt F)) (- (sqrt (* 2.0 t_3)))) t_3)
     (if (<= t_5 INFINITY)
       (/
        (* (sqrt (* 2.0 (* F (fma B B t_1)))) (- (sqrt (+ A (+ C t_2)))))
        (+ t_1 (* B B)))
       (*
        (/ (sqrt 2.0) B)
        (* (sqrt (+ C (fma 0.5 (* C (/ C B)) B))) (- (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 = C * (A * -4.0);
	double t_1 = -4.0 * (A * C);
	double t_2 = hypot(B, (A - C));
	double t_3 = fma(B, B, t_0);
	double t_4 = pow(B, 2.0) + t_0;
	double t_5 = -sqrt(((2.0 * (t_4 * F)) * ((A + C) + sqrt((pow(B, 2.0) + pow((A - C), 2.0)))))) / t_4;
	double tmp;
	if (t_5 <= 0.0) {
		tmp = ((sqrt(((A + C) + t_2)) * sqrt(F)) * -sqrt((2.0 * t_3))) / t_3;
	} else if (t_5 <= ((double) INFINITY)) {
		tmp = (sqrt((2.0 * (F * fma(B, B, t_1)))) * -sqrt((A + (C + t_2)))) / (t_1 + (B * B));
	} else {
		tmp = (sqrt(2.0) / B) * (sqrt((C + fma(0.5, (C * (C / B)), B))) * -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(C * Float64(A * -4.0))
	t_1 = Float64(-4.0 * Float64(A * C))
	t_2 = hypot(B, Float64(A - C))
	t_3 = fma(B, B, t_0)
	t_4 = Float64((B ^ 2.0) + t_0)
	t_5 = Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(t_4 * F)) * Float64(Float64(A + C) + sqrt(Float64((B ^ 2.0) + (Float64(A - C) ^ 2.0))))))) / t_4)
	tmp = 0.0
	if (t_5 <= 0.0)
		tmp = Float64(Float64(Float64(sqrt(Float64(Float64(A + C) + t_2)) * sqrt(F)) * Float64(-sqrt(Float64(2.0 * t_3)))) / t_3);
	elseif (t_5 <= Inf)
		tmp = Float64(Float64(sqrt(Float64(2.0 * Float64(F * fma(B, B, t_1)))) * Float64(-sqrt(Float64(A + Float64(C + t_2))))) / Float64(t_1 + Float64(B * B)));
	else
		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(sqrt(Float64(C + fma(0.5, Float64(C * Float64(C / B)), B))) * 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[(C * N[(A * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]}, Block[{t$95$3 = N[(B * B + t$95$0), $MachinePrecision]}, Block[{t$95$4 = N[(N[Power[B, 2.0], $MachinePrecision] + t$95$0), $MachinePrecision]}, Block[{t$95$5 = N[((-N[Sqrt[N[(N[(2.0 * N[(t$95$4 * F), $MachinePrecision]), $MachinePrecision] * N[(N[(A + C), $MachinePrecision] + N[Sqrt[N[(N[Power[B, 2.0], $MachinePrecision] + N[Power[N[(A - C), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$4), $MachinePrecision]}, If[LessEqual[t$95$5, 0.0], N[(N[(N[(N[Sqrt[N[(N[(A + C), $MachinePrecision] + t$95$2), $MachinePrecision]], $MachinePrecision] * N[Sqrt[F], $MachinePrecision]), $MachinePrecision] * (-N[Sqrt[N[(2.0 * t$95$3), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$3), $MachinePrecision], If[LessEqual[t$95$5, Infinity], N[(N[(N[Sqrt[N[(2.0 * N[(F * N[(B * B + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(A + N[(C + t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / N[(t$95$1 + N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * N[(N[Sqrt[N[(C + N[(0.5 * N[(C * N[(C / B), $MachinePrecision]), $MachinePrecision] + B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-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 := C \cdot \left(A \cdot -4\right)\\
t_1 := -4 \cdot \left(A \cdot C\right)\\
t_2 := \mathsf{hypot}\left(B, A - C\right)\\
t_3 := \mathsf{fma}\left(B, B, t_0\right)\\
t_4 := {B}^{2} + t_0\\
t_5 := \frac{-\sqrt{\left(2 \cdot \left(t_4 \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{{B}^{2} + {\left(A - C\right)}^{2}}\right)}}{t_4}\\
\mathbf{if}\;t_5 \leq 0:\\
\;\;\;\;\frac{\left(\sqrt{\left(A + C\right) + t_2} \cdot \sqrt{F}\right) \cdot \left(-\sqrt{2 \cdot t_3}\right)}{t_3}\\

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

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


\end{array}

Error?

Derivation?

  1. Split input into 3 regimes
  2. if (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (+.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) < -0.0

    1. Initial program 30.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. Simplified38.5%

      \[\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]30.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} \]
    3. Applied egg-rr50.8%

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

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

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

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

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

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

      \[ \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)} \]
    5. Applied egg-rr57.7%

      \[\leadsto \frac{-\color{blue}{\left(\sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)} \cdot \sqrt{F}\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 -0.0 < (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (+.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) < +inf.0

    1. Initial program 41.4%

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

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

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

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

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

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

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

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

    if +inf.0 < (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (+.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)))

    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{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]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} \]
    3. Taylor expanded in B around inf 0.0%

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

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

      \[\leadsto \color{blue}{\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)} \]
      Proof

      [Start]12.9

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

      mul-1-neg [=>]12.9

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

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

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

      fma-def [=>]12.9

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

      unpow2 [=>]12.9

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

      associate-/l* [=>]14.8

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

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

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

Alternatives

Alternative 1
Accuracy35.8%
Cost28180
\[\begin{array}{l} t_0 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_1 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_2 := A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\\ t_3 := \sqrt{t_2}\\ \mathbf{if}\;B \leq -5.9 \cdot 10^{-139}:\\ \;\;\;\;\frac{t_3 \cdot \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)}{t_1}\\ \mathbf{elif}\;B \leq -3.5 \cdot 10^{-188}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 3.1 \cdot 10^{-112}:\\ \;\;\;\;\frac{\sqrt{-2 \cdot \left(4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)} \cdot \left(-t_3\right)}{t_1}\\ \mathbf{elif}\;B \leq 1.25 \cdot 10^{+22}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot t_2\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 3.4 \cdot 10^{+86}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot \mathsf{fma}\left(2, C, \frac{\left(B \cdot B\right) \cdot -0.5}{A}\right)\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{C + \mathsf{fma}\left(0.5, C \cdot \frac{C}{B}, B\right)} \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
Alternative 2
Accuracy37.1%
Cost27984
\[\begin{array}{l} t_0 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_1 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_2 := A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\\ t_3 := \sqrt{t_2}\\ \mathbf{if}\;B \leq -1.7 \cdot 10^{-138}:\\ \;\;\;\;\frac{t_3 \cdot \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)}{t_1}\\ \mathbf{elif}\;B \leq -3.5 \cdot 10^{-188}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 1.05 \cdot 10^{-110}:\\ \;\;\;\;\frac{\sqrt{-2 \cdot \left(4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)} \cdot \left(-t_3\right)}{t_1}\\ \mathbf{elif}\;B \leq 1.4 \cdot 10^{+84}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot t_2\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{C + \mathsf{fma}\left(0.5, C \cdot \frac{C}{B}, B\right)} \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
Alternative 3
Accuracy37.2%
Cost27984
\[\begin{array}{l} t_0 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_1 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_2 := \mathsf{hypot}\left(B, A - C\right)\\ t_3 := \sqrt{A + \left(C + t_2\right)}\\ \mathbf{if}\;B \leq -7.5 \cdot 10^{-139}:\\ \;\;\;\;\frac{t_3 \cdot \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)}{t_1}\\ \mathbf{elif}\;B \leq -3.7 \cdot 10^{-188}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 4.5 \cdot 10^{-112}:\\ \;\;\;\;\frac{\sqrt{-2 \cdot \left(4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)} \cdot \left(-t_3\right)}{t_1}\\ \mathbf{elif}\;B \leq 5.3 \cdot 10^{+79}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(\left(C + \left(A + t_2\right)\right) \cdot \left(F \cdot t_0\right)\right)}}{-t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{C + \mathsf{fma}\left(0.5, C \cdot \frac{C}{B}, B\right)} \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
Alternative 4
Accuracy39.9%
Cost27784
\[\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}\;B \leq 1.25 \cdot 10^{+22}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_0\right)\right)} \cdot \left(-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}{t_0 + B \cdot B}\\ \mathbf{elif}\;B \leq 3.4 \cdot 10^{+86}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(F \cdot \mathsf{fma}\left(2, C, \frac{\left(B \cdot B\right) \cdot -0.5}{A}\right)\right)\right)}}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{C + \mathsf{fma}\left(0.5, C \cdot \frac{C}{B}, B\right)} \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
Alternative 5
Accuracy36.9%
Cost27268
\[\begin{array}{l} t_0 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_1 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_2 := \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}\\ \mathbf{if}\;B \leq -1.2 \cdot 10^{-139}:\\ \;\;\;\;\frac{t_2 \cdot \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F}\right)\right)}{t_1}\\ \mathbf{elif}\;B \leq -3.8 \cdot 10^{-188}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 9.2 \cdot 10^{-110}:\\ \;\;\;\;\frac{\sqrt{-2 \cdot \left(4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)} \cdot \left(-t_2\right)}{t_1}\\ \mathbf{elif}\;B \leq 5.4 \cdot 10^{+83}:\\ \;\;\;\;\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}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{C + \mathsf{fma}\left(0.5, C \cdot \frac{C}{B}, B\right)} \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
Alternative 6
Accuracy35.7%
Cost27152
\[\begin{array}{l} t_0 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_1 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_2 := \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}\\ \mathbf{if}\;B \leq -2.6 \cdot 10^{-41}:\\ \;\;\;\;-\frac{t_2 \cdot \sqrt{2 \cdot \left(B \cdot \left(B \cdot F\right)\right)}}{t_1}\\ \mathbf{elif}\;B \leq -2.7 \cdot 10^{-188}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot \left(A + \left(A + \frac{\left(B \cdot B\right) \cdot -0.5}{C}\right)\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 4.4 \cdot 10^{-112}:\\ \;\;\;\;\frac{\sqrt{-2 \cdot \left(4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)} \cdot \left(-t_2\right)}{t_1}\\ \mathbf{elif}\;B \leq 3.8 \cdot 10^{+83}:\\ \;\;\;\;\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}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(\sqrt{C + \mathsf{fma}\left(0.5, C \cdot \frac{C}{B}, B\right)} \cdot \left(-\sqrt{F}\right)\right)\\ \end{array} \]
Alternative 7
Accuracy31.8%
Cost21916
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_1 := \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}\\ t_2 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ \mathbf{if}\;B \leq -4 \cdot 10^{+17}:\\ \;\;\;\;-\frac{\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \left(B \cdot \left(B \cdot F\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq -4.8 \cdot 10^{-217}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq -3.35 \cdot 10^{-293}:\\ \;\;\;\;\sqrt{\left(C \cdot F\right) \cdot -16} \cdot \frac{-A}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 1.08 \cdot 10^{-262}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{t_2}\\ \mathbf{elif}\;B \leq 8 \cdot 10^{-107}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot \left(2 \cdot C\right)\right)\right)}}{t_2}\\ \mathbf{elif}\;B \leq 1.45 \cdot 10^{+29}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq 1.55 \cdot 10^{+59}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \mathsf{fma}\left(-8, A \cdot \left(F \cdot \left(C \cdot C\right)\right), 4 \cdot \left(\left(B \cdot B\right) \cdot \left(C \cdot F\right)\right)\right)}}{t_2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 8
Accuracy31.3%
Cost21660
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_1 := \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}\\ t_2 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_3 := \frac{-\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot \left(2 \cdot C\right)\right)\right)}}{t_2}\\ \mathbf{if}\;B \leq -1300000000000:\\ \;\;\;\;-\frac{\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \left(B \cdot \left(B \cdot F\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq -9 \cdot 10^{-220}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq -1.48 \cdot 10^{-294}:\\ \;\;\;\;\sqrt{\left(C \cdot F\right) \cdot -16} \cdot \frac{-A}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 6.8 \cdot 10^{-263}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{t_2}\\ \mathbf{elif}\;B \leq 3.15 \cdot 10^{-99}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;B \leq 140000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq 1.75 \cdot 10^{+59}:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 9
Accuracy32.1%
Cost21512
\[\begin{array}{l} t_0 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_1 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_2 := \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}\\ \mathbf{if}\;B \leq -1.6 \cdot 10^{-41}:\\ \;\;\;\;-\frac{t_2 \cdot \sqrt{2 \cdot \left(B \cdot \left(B \cdot F\right)\right)}}{t_1}\\ \mathbf{elif}\;B \leq -3.9 \cdot 10^{-188}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot \left(A + \left(A + \frac{\left(B \cdot B\right) \cdot -0.5}{C}\right)\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 5 \cdot 10^{-112}:\\ \;\;\;\;\frac{\sqrt{-2 \cdot \left(4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)} \cdot \left(-t_2\right)}{t_1}\\ \mathbf{elif}\;B \leq 7.5 \cdot 10^{+81}:\\ \;\;\;\;\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}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 10
Accuracy31.9%
Cost21452
\[\begin{array}{l} t_0 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ t_1 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_2 := \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}\\ \mathbf{if}\;B \leq -0.1:\\ \;\;\;\;-\frac{t_2 \cdot \sqrt{2 \cdot \left(B \cdot \left(B \cdot F\right)\right)}}{t_1}\\ \mathbf{elif}\;B \leq -3 \cdot 10^{-188}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_0 \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 7.4 \cdot 10^{-107}:\\ \;\;\;\;\frac{\sqrt{-2 \cdot \left(4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right)} \cdot \left(-t_2\right)}{t_1}\\ \mathbf{elif}\;B \leq 10^{+85}:\\ \;\;\;\;\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}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 11
Accuracy28.3%
Cost21132
\[\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)\\ \mathbf{if}\;B \leq -8.5 \cdot 10^{-217}:\\ \;\;\;\;\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{elif}\;B \leq 9 \cdot 10^{-210}:\\ \;\;\;\;\frac{A \cdot \left(-\sqrt{F \cdot \left(C \cdot -16\right)}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 1.6 \cdot 10^{+59}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(F \cdot \left(2 \cdot C\right)\right)\right)}}{t_1}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 12
Accuracy30.6%
Cost21128
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right)\\ t_1 := t_0 + B \cdot B\\ t_2 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\ \mathbf{if}\;A \leq -1.4 \cdot 10^{-5}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_2 \cdot \left(F \cdot \left(2 \cdot C\right)\right)\right)}}{t_2}\\ \mathbf{elif}\;A \leq 3 \cdot 10^{-6}:\\ \;\;\;\;\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}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_0\right)\right)} \cdot \left(-\sqrt{A + A}\right)}{t_1}\\ \end{array} \]
Alternative 13
Accuracy31.3%
Cost15308
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_1 := \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.32 \cdot 10^{-220}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq 3.8 \cdot 10^{-208}:\\ \;\;\;\;\frac{A \cdot \left(-\sqrt{F \cdot \left(C \cdot -16\right)}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 6.5 \cdot 10^{+82}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 14
Accuracy25.5%
Cost14088
\[\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 -0.095:\\ \;\;\;\;\frac{-\sqrt{-2 \cdot \left(t_1 \cdot \left(B - \left(A + C\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 5.4 \cdot 10^{-198}:\\ \;\;\;\;\sqrt{\left(C \cdot F\right) \cdot -16} \cdot \frac{-A}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 1.42 \cdot 10^{+47}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(2 \cdot C\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 15
Accuracy25.2%
Cost14088
\[\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 -0.095:\\ \;\;\;\;\frac{-\sqrt{-2 \cdot \left(t_1 \cdot \left(B - \left(A + C\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 2.4 \cdot 10^{-211}:\\ \;\;\;\;\frac{A \cdot \left(-\sqrt{F \cdot \left(C \cdot -16\right)}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\\ \mathbf{elif}\;B \leq 1.05 \cdot 10^{+48}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(2 \cdot C\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 16
Accuracy26.1%
Cost13580
\[\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 -6.2 \cdot 10^{-13}:\\ \;\;\;\;\frac{-\sqrt{-2 \cdot \left(t_1 \cdot \left(B - \left(A + C\right)\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 8.5 \cdot 10^{-263}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \mathbf{elif}\;B \leq 2.5 \cdot 10^{+49}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(2 \cdot C\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)\\ \end{array} \]
Alternative 17
Accuracy21.1%
Cost8324
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ t_1 := F \cdot t_0\\ \mathbf{if}\;A \leq 3.55 \cdot 10^{-186}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(2 \cdot C\right)\right)}}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(2 \cdot A\right)\right)}}{t_0}\\ \end{array} \]
Alternative 18
Accuracy11.7%
Cost8196
\[\begin{array}{l} \mathbf{if}\;C \leq -7 \cdot 10^{-90}:\\ \;\;\;\;-\frac{\sqrt{-16 \cdot \left(\left(C \cdot F\right) \cdot \left(A \cdot A\right)\right)}}{A \cdot \left(C \cdot -4\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(-4 \cdot \left(A \cdot \left(C \cdot F\right)\right)\right) \cdot \left(A + \left(A + C\right)\right)\right)}}{-4 \cdot \left(A \cdot C\right) + B \cdot B}\\ \end{array} \]
Alternative 19
Accuracy12.8%
Cost8196
\[\begin{array}{l} t_0 := A \cdot \left(C \cdot -4\right)\\ \mathbf{if}\;C \leq -1.12 \cdot 10^{-48}:\\ \;\;\;\;-\frac{\sqrt{-16 \cdot \left(\left(C \cdot F\right) \cdot \left(A \cdot A\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)}}{-4 \cdot \left(A \cdot C\right) + B \cdot B}\\ \end{array} \]
Alternative 20
Accuracy14.0%
Cost8192
\[\begin{array}{l} t_0 := -4 \cdot \left(A \cdot C\right) + B \cdot B\\ \frac{-\sqrt{2 \cdot \left(\left(F \cdot t_0\right) \cdot \left(2 \cdot A\right)\right)}}{t_0} \end{array} \]
Alternative 21
Accuracy9.1%
Cost7689
\[\begin{array}{l} \mathbf{if}\;C \leq -5.3 \cdot 10^{-166} \lor \neg \left(C \leq 1.2 \cdot 10^{-98}\right):\\ \;\;\;\;-\frac{\sqrt{-16 \cdot \left(\left(C \cdot F\right) \cdot \left(A \cdot A\right)\right)}}{A \cdot \left(C \cdot -4\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-2}{\frac{B}{\sqrt{A \cdot F}}}\\ \end{array} \]
Alternative 22
Accuracy2.7%
Cost6848
\[\sqrt{A \cdot F} \cdot \frac{-2}{B} \]
Alternative 23
Accuracy2.7%
Cost6848
\[\frac{-2}{\frac{B}{\sqrt{A \cdot F}}} \]

Error

Reproduce?

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