Average Error: 52.4 → 38.0
Time: 48.1s
Precision: binary64
Cost: 47176
\[ \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 := A \cdot \left(C \cdot -4\right)\\ \mathbf{if}\;{B}^{2} \leq 2 \cdot 10^{-80}:\\ \;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(B \cdot B + t_0\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{elif}\;{B}^{2} \leq 2 \cdot 10^{+303}:\\ \;\;\;\;\left(\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, t_0\right)}\right) \cdot \frac{1}{-\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A - \mathsf{hypot}\left(B, A\right)\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 (* A (* C -4.0))))
   (if (<= (pow B 2.0) 2e-80)
     (/
      (- (sqrt (* 4.0 (* (* A F) (+ (* B B) t_0)))))
      (+ (* B B) (* -4.0 (* A C))))
     (if (<= (pow B 2.0) 2e+303)
       (*
        (*
         (sqrt (* F (+ A (- C (hypot B (- A C))))))
         (sqrt (* 2.0 (fma B B t_0))))
        (/ 1.0 (- (fma B B (* C (* A -4.0))))))
       (* (/ (sqrt 2.0) B) (- (sqrt (* F (- A (hypot B A))))))))))
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 = A * (C * -4.0);
	double tmp;
	if (pow(B, 2.0) <= 2e-80) {
		tmp = -sqrt((4.0 * ((A * F) * ((B * B) + t_0)))) / ((B * B) + (-4.0 * (A * C)));
	} else if (pow(B, 2.0) <= 2e+303) {
		tmp = (sqrt((F * (A + (C - hypot(B, (A - C)))))) * sqrt((2.0 * fma(B, B, t_0)))) * (1.0 / -fma(B, B, (C * (A * -4.0))));
	} else {
		tmp = (sqrt(2.0) / B) * -sqrt((F * (A - hypot(B, A))));
	}
	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(A * Float64(C * -4.0))
	tmp = 0.0
	if ((B ^ 2.0) <= 2e-80)
		tmp = Float64(Float64(-sqrt(Float64(4.0 * Float64(Float64(A * F) * Float64(Float64(B * B) + t_0))))) / Float64(Float64(B * B) + Float64(-4.0 * Float64(A * C))));
	elseif ((B ^ 2.0) <= 2e+303)
		tmp = Float64(Float64(sqrt(Float64(F * Float64(A + Float64(C - hypot(B, Float64(A - C)))))) * sqrt(Float64(2.0 * fma(B, B, t_0)))) * Float64(1.0 / Float64(-fma(B, B, Float64(C * Float64(A * -4.0))))));
	else
		tmp = Float64(Float64(sqrt(2.0) / B) * Float64(-sqrt(Float64(F * Float64(A - hypot(B, A))))));
	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[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[Power[B, 2.0], $MachinePrecision], 2e-80], N[((-N[Sqrt[N[(4.0 * N[(N[(A * F), $MachinePrecision] * N[(N[(B * B), $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Power[B, 2.0], $MachinePrecision], 2e+303], N[(N[(N[Sqrt[N[(F * N[(A + N[(C - N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * N[(B * B + t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 / (-N[(B * B + N[(C * N[(A * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision] * (-N[Sqrt[N[(F * N[(A - N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]), $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 := A \cdot \left(C \cdot -4\right)\\
\mathbf{if}\;{B}^{2} \leq 2 \cdot 10^{-80}:\\
\;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(B \cdot B + t_0\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\

\mathbf{elif}\;{B}^{2} \leq 2 \cdot 10^{+303}:\\
\;\;\;\;\left(\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, t_0\right)}\right) \cdot \frac{1}{-\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}\\

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


\end{array}

Error

Derivation

  1. Split input into 3 regimes
  2. if (pow.f64 B 2) < 1.99999999999999992e-80

    1. Initial program 51.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. Simplified47.7

      \[\leadsto \color{blue}{\frac{-\sqrt{F \cdot \left(2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}} \]
      Proof
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (*.f64 A (*.f64 C -4))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (*.f64 A (*.f64 C (Rewrite<= metadata-eval (neg.f64 4))))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 A C) (neg.f64 4)))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (*.f64 A C) 4)))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (neg.f64 (Rewrite<= *-commutative_binary64 (*.f64 4 (*.f64 A C))))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (neg.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 4 A) C)))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 B B) (*.f64 (*.f64 4 A) C))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (Rewrite<= unpow2_binary64 (pow.f64 B 2)) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (Rewrite<= hypot-def_binary64 (sqrt.f64 (+.f64 (*.f64 B B) (*.f64 (-.f64 A C) (-.f64 A C)))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 34 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (sqrt.f64 (+.f64 (Rewrite<= unpow2_binary64 (pow.f64 B 2)) (*.f64 (-.f64 A C) (-.f64 A C))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (sqrt.f64 (+.f64 (pow.f64 B 2) (Rewrite<= unpow2_binary64 (pow.f64 (-.f64 A C) 2))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (sqrt.f64 (Rewrite<= +-commutative_binary64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (Rewrite=> sub-neg_binary64 (+.f64 C (neg.f64 (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2)))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 A C) (neg.f64 (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 10 points increase in error, 1 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (Rewrite<= sub-neg_binary64 (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2)))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 2 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 F (*.f64 2 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)))) (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2)))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 4 points increase in error, 7 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 (*.f64 2 (-.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))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 (Rewrite<= associate-*r*_binary64 (*.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))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (Rewrite<= --rgt-identity_binary64 (-.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)))))) 0))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (Rewrite<= sub0-neg_binary64 (-.f64 0 (-.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)))))) 0))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (*.f64 A (*.f64 C (Rewrite<= metadata-eval (neg.f64 4)))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 A C) (neg.f64 4))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (*.f64 A C) 4))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (neg.f64 (Rewrite<= *-commutative_binary64 (*.f64 4 (*.f64 A C)))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (neg.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 4 A) C))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 B B) (*.f64 (*.f64 4 A) C)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (-.f64 (Rewrite<= unpow2_binary64 (pow.f64 B 2)) (*.f64 (*.f64 4 A) C))): 0 points increase in error, 0 points decrease in error
      (Rewrite=> div-sub_binary64 (-.f64 (/.f64 0 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) (/.f64 (-.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)))))) 0) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))))): 0 points increase in error, 0 points decrease in error
      (-.f64 (/.f64 0 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) (/.f64 (Rewrite=> --rgt-identity_binary64 (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 points increase in error, 0 points decrease in error
      (Rewrite<= div-sub_binary64 (/.f64 (-.f64 0 (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 points increase in error, 0 points decrease in error
      (/.f64 (Rewrite<= neg-sub0_binary64 (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 points increase in error, 0 points decrease in error
    3. Taylor expanded in C around inf 40.0

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

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

      \[\leadsto \frac{-\sqrt{\color{blue}{4 \cdot \left(\left(A \cdot F\right) \cdot \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)} \]
      Proof
      (*.f64 4 (*.f64 (*.f64 A F) (fma.f64 -4 (*.f64 A C) (*.f64 B B)))): 0 points increase in error, 0 points decrease in error
      (*.f64 4 (*.f64 (*.f64 A F) (fma.f64 -4 (*.f64 A C) (Rewrite<= unpow2_binary64 (pow.f64 B 2))))): 0 points increase in error, 0 points decrease in error
      (*.f64 4 (*.f64 (*.f64 A F) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 -4 (*.f64 A C)) (pow.f64 B 2))))): 0 points increase in error, 0 points decrease in error
      (*.f64 4 (*.f64 (*.f64 A F) (Rewrite<= +-commutative_binary64 (+.f64 (pow.f64 B 2) (*.f64 -4 (*.f64 A C)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 4 (Rewrite<= associate-*r*_binary64 (*.f64 A (*.f64 F (+.f64 (pow.f64 B 2) (*.f64 -4 (*.f64 A C))))))): 40 points increase in error, 17 points decrease in error
      (*.f64 4 (*.f64 A (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 (pow.f64 B 2) (*.f64 -4 (*.f64 A C))) F)))): 0 points increase in error, 0 points decrease in error
    6. Applied egg-rr36.1

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

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

    if 1.99999999999999992e-80 < (pow.f64 B 2) < 2e303

    1. Initial program 43.9

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

      \[\leadsto \color{blue}{\frac{-\sqrt{F \cdot \left(2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}} \]
      Proof
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (*.f64 A (*.f64 C -4))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (*.f64 A (*.f64 C (Rewrite<= metadata-eval (neg.f64 4))))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 A C) (neg.f64 4)))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (*.f64 A C) 4)))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (neg.f64 (Rewrite<= *-commutative_binary64 (*.f64 4 (*.f64 A C))))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (fma.f64 B B (neg.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 4 A) C)))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 B B) (*.f64 (*.f64 4 A) C))) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (Rewrite<= unpow2_binary64 (pow.f64 B 2)) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (hypot.f64 B (-.f64 A C))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (Rewrite<= hypot-def_binary64 (sqrt.f64 (+.f64 (*.f64 B B) (*.f64 (-.f64 A C) (-.f64 A C)))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 34 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (sqrt.f64 (+.f64 (Rewrite<= unpow2_binary64 (pow.f64 B 2)) (*.f64 (-.f64 A C) (-.f64 A C))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (sqrt.f64 (+.f64 (pow.f64 B 2) (Rewrite<= unpow2_binary64 (pow.f64 (-.f64 A C) 2))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (-.f64 C (sqrt.f64 (Rewrite<= +-commutative_binary64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (+.f64 A (Rewrite=> sub-neg_binary64 (+.f64 C (neg.f64 (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2)))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 A C) (neg.f64 (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 10 points increase in error, 1 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) (Rewrite<= sub-neg_binary64 (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2)))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 F (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 2 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 F (*.f64 2 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)))) (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2)))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 4 points increase in error, 7 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 (*.f64 2 (-.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))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (sqrt.f64 (*.f64 (Rewrite<= associate-*r*_binary64 (*.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))))))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (neg.f64 (Rewrite<= --rgt-identity_binary64 (-.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)))))) 0))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (Rewrite<= sub0-neg_binary64 (-.f64 0 (-.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)))))) 0))) (fma.f64 B B (*.f64 A (*.f64 C -4)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (*.f64 A (*.f64 C (Rewrite<= metadata-eval (neg.f64 4)))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 A C) (neg.f64 4))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (*.f64 A C) 4))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (neg.f64 (Rewrite<= *-commutative_binary64 (*.f64 4 (*.f64 A C)))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (fma.f64 B B (neg.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 4 A) C))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 B B) (*.f64 (*.f64 4 A) C)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 0 (-.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)))))) 0)) (-.f64 (Rewrite<= unpow2_binary64 (pow.f64 B 2)) (*.f64 (*.f64 4 A) C))): 0 points increase in error, 0 points decrease in error
      (Rewrite=> div-sub_binary64 (-.f64 (/.f64 0 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) (/.f64 (-.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)))))) 0) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))))): 0 points increase in error, 0 points decrease in error
      (-.f64 (/.f64 0 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) (/.f64 (Rewrite=> --rgt-identity_binary64 (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 points increase in error, 0 points decrease in error
      (Rewrite<= div-sub_binary64 (/.f64 (-.f64 0 (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 points increase in error, 0 points decrease in error
      (/.f64 (Rewrite<= neg-sub0_binary64 (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 points increase in error, 0 points decrease in error
    3. Applied egg-rr45.9

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

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

    if 2e303 < (pow.f64 B 2)

    1. Initial program 63.9

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

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

      \[\leadsto \color{blue}{\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A - \mathsf{hypot}\left(B, A\right)\right)}\right)} \]
      Proof
      (*.f64 (/.f64 (sqrt.f64 2) B) (neg.f64 (sqrt.f64 (*.f64 F (-.f64 A (hypot.f64 B A)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (sqrt.f64 2) B) (neg.f64 (sqrt.f64 (*.f64 F (-.f64 A (Rewrite<= hypot-def_binary64 (sqrt.f64 (+.f64 (*.f64 B B) (*.f64 A A))))))))): 58 points increase in error, 5 points decrease in error
      (*.f64 (/.f64 (sqrt.f64 2) B) (neg.f64 (sqrt.f64 (*.f64 F (-.f64 A (sqrt.f64 (+.f64 (Rewrite<= unpow2_binary64 (pow.f64 B 2)) (*.f64 A A)))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (sqrt.f64 2) B) (neg.f64 (sqrt.f64 (*.f64 F (-.f64 A (sqrt.f64 (+.f64 (pow.f64 B 2) (Rewrite<= unpow2_binary64 (pow.f64 A 2))))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (sqrt.f64 2) B) (neg.f64 (sqrt.f64 (Rewrite<= *-commutative_binary64 (*.f64 (-.f64 A (sqrt.f64 (+.f64 (pow.f64 B 2) (pow.f64 A 2)))) F))))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (/.f64 (sqrt.f64 2) B) (sqrt.f64 (*.f64 (-.f64 A (sqrt.f64 (+.f64 (pow.f64 B 2) (pow.f64 A 2)))) F))))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= mul-1-neg_binary64 (*.f64 -1 (*.f64 (/.f64 (sqrt.f64 2) B) (sqrt.f64 (*.f64 (-.f64 A (sqrt.f64 (+.f64 (pow.f64 B 2) (pow.f64 A 2)))) F))))): 0 points increase in error, 0 points decrease in error
  3. Recombined 3 regimes into one program.
  4. Final simplification38.0

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

Alternatives

Alternative 1
Error39.5
Cost20484
\[\begin{array}{l} t_0 := A \cdot \left(C \cdot -4\right)\\ \mathbf{if}\;B \leq -3.1 \cdot 10^{+32}:\\ \;\;\;\;\frac{B \cdot \sqrt{2 \cdot \left(F \cdot \left(C - \mathsf{hypot}\left(B, C\right)\right)\right)}}{\mathsf{fma}\left(B, B, t_0\right)}\\ \mathbf{elif}\;B \leq 2.8 \cdot 10^{+14}:\\ \;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(B \cdot B + t_0\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A - \mathsf{hypot}\left(B, A\right)\right)}\right)\\ \end{array} \]
Alternative 2
Error40.7
Cost20168
\[\begin{array}{l} t_0 := A \cdot \left(C \cdot -4\right)\\ \mathbf{if}\;B \leq -3.1 \cdot 10^{+32}:\\ \;\;\;\;\frac{-\sqrt{F \cdot \left(B \cdot \left(C \cdot C\right)\right) + 2 \cdot \left(\left(F \cdot \left(B \cdot B\right)\right) \cdot \left(B + C\right)\right)}}{\mathsf{fma}\left(B, B, t_0\right)}\\ \mathbf{elif}\;B \leq 2.8 \cdot 10^{+14}:\\ \;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(B \cdot B + t_0\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A - \mathsf{hypot}\left(B, A\right)\right)}\right)\\ \end{array} \]
Alternative 3
Error41.8
Cost14724
\[\begin{array}{l} t_0 := A \cdot \left(C \cdot -4\right)\\ \mathbf{if}\;B \leq -3.1 \cdot 10^{+32}:\\ \;\;\;\;\frac{-\sqrt{F \cdot \left(B \cdot \left(C \cdot C\right)\right) + 2 \cdot \left(\left(F \cdot \left(B \cdot B\right)\right) \cdot \left(B + C\right)\right)}}{\mathsf{fma}\left(B, B, t_0\right)}\\ \mathbf{elif}\;B \leq 1.7 \cdot 10^{+23}:\\ \;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(B \cdot B + t_0\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A - B\right)}\right)\\ \end{array} \]
Alternative 4
Error41.8
Cost14212
\[\begin{array}{l} t_0 := A \cdot \left(C \cdot -4\right)\\ \mathbf{if}\;B \leq -3.1 \cdot 10^{+32}:\\ \;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(F \cdot \left(B \cdot B\right)\right) \cdot \left(B + C\right)\right)}}{\mathsf{fma}\left(B, B, t_0\right)}\\ \mathbf{elif}\;B \leq 1.7 \cdot 10^{+23}:\\ \;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(B \cdot B + t_0\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A - B\right)}\right)\\ \end{array} \]
Alternative 5
Error41.3
Cost13704
\[\begin{array}{l} \mathbf{if}\;B \leq -9.6 \cdot 10^{+50}:\\ \;\;\;\;2 \cdot \frac{\sqrt{A \cdot F}}{B}\\ \mathbf{elif}\;B \leq 1.7 \cdot 10^{+23}:\\ \;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(B \cdot B + A \cdot \left(C \cdot -4\right)\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{B} \cdot \left(-\sqrt{F \cdot \left(A - B\right)}\right)\\ \end{array} \]
Alternative 6
Error46.8
Cost8196
\[\begin{array}{l} \mathbf{if}\;B \leq -9.6 \cdot 10^{+50}:\\ \;\;\;\;2 \cdot \frac{\sqrt{A \cdot F}}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(B \cdot B + A \cdot \left(C \cdot -4\right)\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \end{array} \]
Alternative 7
Error47.4
Cost8072
\[\begin{array}{l} t_0 := \sqrt{A \cdot F}\\ \mathbf{if}\;B \leq -3.05 \cdot 10^{+32}:\\ \;\;\;\;2 \cdot \frac{t_0}{B}\\ \mathbf{elif}\;B \leq 1.35 \cdot 10^{+15}:\\ \;\;\;\;\frac{-\sqrt{4 \cdot \left(\left(A \cdot F\right) \cdot \left(C \cdot \left(A \cdot -4\right)\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_0 \cdot -2}{B}\\ \end{array} \]
Alternative 8
Error52.8
Cost7944
\[\begin{array}{l} t_0 := \sqrt{A \cdot F}\\ \mathbf{if}\;B \leq -7.4 \cdot 10^{-60}:\\ \;\;\;\;2 \cdot \frac{t_0}{B}\\ \mathbf{elif}\;B \leq 3.3 \cdot 10^{-63}:\\ \;\;\;\;\frac{-\sqrt{-16 \cdot \left(\left(A \cdot A\right) \cdot \left(F \cdot C\right)\right)}}{B \cdot B + -4 \cdot \left(A \cdot C\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_0 \cdot -2}{B}\\ \end{array} \]
Alternative 9
Error52.7
Cost7688
\[\begin{array}{l} t_0 := \sqrt{A \cdot F}\\ \mathbf{if}\;B \leq -3.1 \cdot 10^{-48}:\\ \;\;\;\;2 \cdot \frac{t_0}{B}\\ \mathbf{elif}\;B \leq 1.85 \cdot 10^{-57}:\\ \;\;\;\;-\frac{\sqrt{-16 \cdot \left(\left(A \cdot A\right) \cdot \left(F \cdot C\right)\right)}}{A \cdot \left(C \cdot -4\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_0 \cdot -2}{B}\\ \end{array} \]
Alternative 10
Error58.6
Cost6980
\[\begin{array}{l} t_0 := \sqrt{A \cdot F}\\ \mathbf{if}\;B \leq -2.8 \cdot 10^{-283}:\\ \;\;\;\;t_0 \cdot \frac{2}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_0 \cdot -2}{B}\\ \end{array} \]
Alternative 11
Error58.6
Cost6980
\[\begin{array}{l} t_0 := \sqrt{A \cdot F}\\ \mathbf{if}\;B \leq -2.8 \cdot 10^{-283}:\\ \;\;\;\;2 \cdot \frac{t_0}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_0 \cdot -2}{B}\\ \end{array} \]
Alternative 12
Error60.8
Cost6848
\[\frac{\sqrt{A \cdot F} \cdot -2}{B} \]

Error

Reproduce

herbie shell --seed 2022317 
(FPCore (A B C F)
  :name "ABCF->ab-angle b"
  :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))))