Average Error: 28.6 → 4.9
Time: 17.1s
Precision: binary64
Cost: 41924
\[\left(\left(1.0536712127723509 \cdot 10^{-8} < a \land a < 94906265.62425156\right) \land \left(1.0536712127723509 \cdot 10^{-8} < b \land b < 94906265.62425156\right)\right) \land \left(1.0536712127723509 \cdot 10^{-8} < c \land c < 94906265.62425156\right)\]
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
\[\begin{array}{l} t_0 := \mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -4\right)\\ \mathbf{if}\;\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{a \cdot 2} \leq -70:\\ \;\;\;\;\frac{t_0 - b \cdot b}{b + \sqrt{t_0}} \cdot \frac{0.5}{a}\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(-2, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, a \cdot \left(\left(a \cdot a\right) \cdot \frac{{c}^{4} \cdot -5}{{b}^{7}}\right)\right) - \frac{c}{b}\right) - \frac{c \cdot c}{b \cdot b} \cdot \frac{a}{b}\\ \end{array} \]
(FPCore (a b c)
 :precision binary64
 (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
(FPCore (a b c)
 :precision binary64
 (let* ((t_0 (fma b b (* (* a c) -4.0))))
   (if (<= (/ (- (sqrt (- (* b b) (* (* 4.0 a) c))) b) (* a 2.0)) -70.0)
     (* (/ (- t_0 (* b b)) (+ b (sqrt t_0))) (/ 0.5 a))
     (-
      (-
       (fma
        -2.0
        (/ (* (pow c 3.0) (* a a)) (pow b 5.0))
        (* a (* (* a a) (/ (* (pow c 4.0) -5.0) (pow b 7.0)))))
       (/ c b))
      (* (/ (* c c) (* b b)) (/ a b))))))
double code(double a, double b, double c) {
	return (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
}
double code(double a, double b, double c) {
	double t_0 = fma(b, b, ((a * c) * -4.0));
	double tmp;
	if (((sqrt(((b * b) - ((4.0 * a) * c))) - b) / (a * 2.0)) <= -70.0) {
		tmp = ((t_0 - (b * b)) / (b + sqrt(t_0))) * (0.5 / a);
	} else {
		tmp = (fma(-2.0, ((pow(c, 3.0) * (a * a)) / pow(b, 5.0)), (a * ((a * a) * ((pow(c, 4.0) * -5.0) / pow(b, 7.0))))) - (c / b)) - (((c * c) / (b * b)) * (a / b));
	}
	return tmp;
}
function code(a, b, c)
	return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(4.0 * a) * c)))) / Float64(2.0 * a))
end
function code(a, b, c)
	t_0 = fma(b, b, Float64(Float64(a * c) * -4.0))
	tmp = 0.0
	if (Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(Float64(4.0 * a) * c))) - b) / Float64(a * 2.0)) <= -70.0)
		tmp = Float64(Float64(Float64(t_0 - Float64(b * b)) / Float64(b + sqrt(t_0))) * Float64(0.5 / a));
	else
		tmp = Float64(Float64(fma(-2.0, Float64(Float64((c ^ 3.0) * Float64(a * a)) / (b ^ 5.0)), Float64(a * Float64(Float64(a * a) * Float64(Float64((c ^ 4.0) * -5.0) / (b ^ 7.0))))) - Float64(c / b)) - Float64(Float64(Float64(c * c) / Float64(b * b)) * Float64(a / b)));
	end
	return tmp
end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(4.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision]
code[a_, b_, c_] := Block[{t$95$0 = N[(b * b + N[(N[(a * c), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(4.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision], -70.0], N[(N[(N[(t$95$0 - N[(b * b), $MachinePrecision]), $MachinePrecision] / N[(b + N[Sqrt[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(0.5 / a), $MachinePrecision]), $MachinePrecision], N[(N[(N[(-2.0 * N[(N[(N[Power[c, 3.0], $MachinePrecision] * N[(a * a), $MachinePrecision]), $MachinePrecision] / N[Power[b, 5.0], $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(a * a), $MachinePrecision] * N[(N[(N[Power[c, 4.0], $MachinePrecision] * -5.0), $MachinePrecision] / N[Power[b, 7.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c / b), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * c), $MachinePrecision] / N[(b * b), $MachinePrecision]), $MachinePrecision] * N[(a / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}
\begin{array}{l}
t_0 := \mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -4\right)\\
\mathbf{if}\;\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{a \cdot 2} \leq -70:\\
\;\;\;\;\frac{t_0 - b \cdot b}{b + \sqrt{t_0}} \cdot \frac{0.5}{a}\\

\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-2, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, a \cdot \left(\left(a \cdot a\right) \cdot \frac{{c}^{4} \cdot -5}{{b}^{7}}\right)\right) - \frac{c}{b}\right) - \frac{c \cdot c}{b \cdot b} \cdot \frac{a}{b}\\


\end{array}

Error

Derivation

  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (*.f64 2 a)) < -70

    1. Initial program 8.3

      \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
    2. Simplified8.3

      \[\leadsto \color{blue}{\left(\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b\right) \cdot \frac{0.5}{a}} \]
      Proof
      (*.f64 (-.f64 (sqrt.f64 (fma.f64 a (*.f64 c -4) (*.f64 b b))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (fma.f64 a (*.f64 c (Rewrite<= metadata-eval (neg.f64 4))) (*.f64 b b))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (fma.f64 a (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 c 4))) (*.f64 b b))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (fma.f64 a (neg.f64 (Rewrite=> *-commutative_binary64 (*.f64 4 c))) (*.f64 b b))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (fma.f64 a (Rewrite=> distribute-lft-neg-in_binary64 (*.f64 (neg.f64 4) c)) (*.f64 b b))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 a (*.f64 (neg.f64 4) c)) (*.f64 b b)))) b) (/.f64 1/2 a)): 1 points increase in error, 1 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 a (neg.f64 4)) c)) (*.f64 b b))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (+.f64 (*.f64 (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 a 4))) c) (*.f64 b b))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (+.f64 (*.f64 (neg.f64 (Rewrite<= *-commutative_binary64 (*.f64 4 a))) c) (*.f64 b b))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 b b) (*.f64 (neg.f64 (*.f64 4 a)) c)))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 (sqrt.f64 (Rewrite<= cancel-sign-sub-inv_binary64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) b) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (Rewrite<= unsub-neg_binary64 (+.f64 (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c))) (neg.f64 b))) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (Rewrite<= +-commutative_binary64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c))))) (/.f64 1/2 a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (/.f64 (Rewrite<= metadata-eval (/.f64 1 2)) a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (/.f64 (/.f64 (Rewrite<= metadata-eval (neg.f64 -1)) 2) a)): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (Rewrite<= associate-/r*_binary64 (/.f64 (neg.f64 -1) (*.f64 2 a)))): 0 points increase in error, 0 points decrease in error
      (Rewrite=> associate-*r/_binary64 (/.f64 (*.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (neg.f64 -1)) (*.f64 2 a))): 23 points increase in error, 28 points decrease in error
      (Rewrite=> associate-/l*_binary64 (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (/.f64 (*.f64 2 a) (neg.f64 -1)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (/.f64 (*.f64 2 a) (Rewrite=> metadata-eval 1))): 0 points increase in error, 0 points decrease in error
      (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (Rewrite=> /-rgt-identity_binary64 (*.f64 2 a))): 0 points increase in error, 0 points decrease in error
    3. Applied egg-rr9.3

      \[\leadsto \color{blue}{\left(\left({\left(\mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -4\right)\right)}^{0.25} + \sqrt{b}\right) \cdot \left({\left(\mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -4\right)\right)}^{0.25} - \sqrt{b}\right)\right)} \cdot \frac{0.5}{a} \]
    4. Simplified9.3

      \[\leadsto \color{blue}{\left(\left({\left(\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)\right)}^{0.25} + \sqrt{b}\right) \cdot \left({\left(\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)\right)}^{0.25} - \sqrt{b}\right)\right)} \cdot \frac{0.5}{a} \]
      Proof
      (*.f64 (+.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (Rewrite<= sqr-neg_binary64 (*.f64 (neg.f64 b) (neg.f64 b)))) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (Rewrite=> distribute-rgt-neg-out_binary64 (neg.f64 (*.f64 (neg.f64 b) b)))) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 c (*.f64 a -4)) (*.f64 (neg.f64 b) b))) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 1 points increase in error, 1 points decrease in error
      (*.f64 (+.f64 (pow.f64 (-.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 c a) -4)) (*.f64 (neg.f64 b) b)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (-.f64 (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 a c)) -4) (*.f64 (neg.f64 b) b)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (Rewrite<= unsub-neg_binary64 (+.f64 (*.f64 (*.f64 a c) -4) (neg.f64 (*.f64 (neg.f64 b) b)))) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (+.f64 (*.f64 (*.f64 a c) -4) (Rewrite<= distribute-rgt-neg-out_binary64 (*.f64 (neg.f64 b) (neg.f64 b)))) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (+.f64 (*.f64 (*.f64 a c) -4) (Rewrite=> sqr-neg_binary64 (*.f64 b b))) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 b b) (*.f64 (*.f64 a c) -4))) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (Rewrite<= fma-udef_binary64 (fma.f64 b b (*.f64 (*.f64 a c) -4))) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)) 1/4) (sqrt.f64 b))): 3 points increase in error, 3 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (Rewrite<= sqr-neg_binary64 (*.f64 (neg.f64 b) (neg.f64 b)))) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (fma.f64 c (*.f64 a -4) (Rewrite=> distribute-rgt-neg-out_binary64 (neg.f64 (*.f64 (neg.f64 b) b)))) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 c (*.f64 a -4)) (*.f64 (neg.f64 b) b))) 1/4) (sqrt.f64 b))): 1 points increase in error, 1 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (-.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 c a) -4)) (*.f64 (neg.f64 b) b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (-.f64 (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 a c)) -4) (*.f64 (neg.f64 b) b)) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (Rewrite<= unsub-neg_binary64 (+.f64 (*.f64 (*.f64 a c) -4) (neg.f64 (*.f64 (neg.f64 b) b)))) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (+.f64 (*.f64 (*.f64 a c) -4) (Rewrite<= distribute-rgt-neg-out_binary64 (*.f64 (neg.f64 b) (neg.f64 b)))) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (+.f64 (*.f64 (*.f64 a c) -4) (Rewrite=> sqr-neg_binary64 (*.f64 b b))) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 b b) (*.f64 (*.f64 a c) -4))) 1/4) (sqrt.f64 b))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 (pow.f64 (fma.f64 b b (*.f64 (*.f64 a c) -4)) 1/4) (sqrt.f64 b)) (-.f64 (pow.f64 (Rewrite<= fma-udef_binary64 (fma.f64 b b (*.f64 (*.f64 a c) -4))) 1/4) (sqrt.f64 b))): 9 points increase in error, 9 points decrease in error
    5. Applied egg-rr7.7

      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(b, b, \left(c \cdot a\right) \cdot -4\right) - b \cdot b}{\sqrt{\mathsf{fma}\left(b, b, \left(c \cdot a\right) \cdot -4\right)} + b}} \cdot \frac{0.5}{a} \]

    if -70 < (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (*.f64 2 a))

    1. Initial program 30.2

      \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
    2. Simplified30.1

      \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)} - b}{a \cdot 2}} \]
      Proof
      (/.f64 (-.f64 (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4)))) b) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a (Rewrite<= metadata-eval (neg.f64 4)))))) b) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 (sqrt.f64 (fma.f64 b b (*.f64 c (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 a 4)))))) b) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 (sqrt.f64 (fma.f64 b b (*.f64 c (neg.f64 (Rewrite<= *-commutative_binary64 (*.f64 4 a)))))) b) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 (sqrt.f64 (fma.f64 b b (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 c (*.f64 4 a)))))) b) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 (sqrt.f64 (fma.f64 b b (neg.f64 (Rewrite<= *-commutative_binary64 (*.f64 (*.f64 4 a) c))))) b) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
      (/.f64 (-.f64 (sqrt.f64 (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) b) (*.f64 a 2)): 23 points increase in error, 7 points decrease in error
      (/.f64 (Rewrite<= unsub-neg_binary64 (+.f64 (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c))) (neg.f64 b))) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
      (/.f64 (Rewrite<= +-commutative_binary64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c))))) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
      (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 4 a) c)))) (Rewrite<= *-commutative_binary64 (*.f64 2 a))): 0 points increase in error, 0 points decrease in error
    3. Taylor expanded in a around 0 4.7

      \[\leadsto \color{blue}{-1 \cdot \frac{{c}^{2} \cdot a}{{b}^{3}} + \left(-1 \cdot \frac{c}{b} + \left(-0.25 \cdot \frac{{a}^{3} \cdot \left(16 \cdot \frac{{c}^{4}}{{b}^{6}} + {\left(-2 \cdot \frac{{c}^{2}}{{b}^{3}}\right)}^{2}\right)}{b} + -2 \cdot \frac{{c}^{3} \cdot {a}^{2}}{{b}^{5}}\right)\right)} \]
    4. Simplified4.7

      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-2, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, \frac{{a}^{3} \cdot -0.25}{\frac{b}{\mathsf{fma}\left(16, \frac{{c}^{4}}{{b}^{6}}, 4 \cdot \frac{{c}^{4}}{{b}^{6}}\right)}}\right) - \frac{c}{b}\right) - \frac{c \cdot \left(c \cdot a\right)}{{b}^{3}}} \]
      Proof
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (*.f64 a a)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (*.f64 4 (/.f64 (pow.f64 c 4) (pow.f64 b 6))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (Rewrite<= unpow2_binary64 (pow.f64 a 2))) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (*.f64 4 (/.f64 (pow.f64 c 4) (pow.f64 b 6))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (*.f64 (Rewrite<= metadata-eval (*.f64 -2 -2)) (/.f64 (pow.f64 c 4) (pow.f64 b 6))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (*.f64 (*.f64 -2 -2) (/.f64 (pow.f64 c (Rewrite<= metadata-eval (*.f64 2 2))) (pow.f64 b 6))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (*.f64 (*.f64 -2 -2) (/.f64 (Rewrite<= pow-sqr_binary64 (*.f64 (pow.f64 c 2) (pow.f64 c 2))) (pow.f64 b 6))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (*.f64 (*.f64 -2 -2) (/.f64 (*.f64 (pow.f64 c 2) (pow.f64 c 2)) (pow.f64 b (Rewrite<= metadata-eval (*.f64 2 3))))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (*.f64 (*.f64 -2 -2) (/.f64 (*.f64 (pow.f64 c 2) (pow.f64 c 2)) (Rewrite<= pow-sqr_binary64 (*.f64 (pow.f64 b 3) (pow.f64 b 3))))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (*.f64 (*.f64 -2 -2) (Rewrite=> times-frac_binary64 (*.f64 (/.f64 (pow.f64 c 2) (pow.f64 b 3)) (/.f64 (pow.f64 c 2) (pow.f64 b 3))))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (Rewrite<= swap-sqr_binary64 (*.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))))))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (fma.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (Rewrite<= unpow2_binary64 (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2)))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.f64 b (Rewrite<= fma-def_binary64 (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2)))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (pow.f64 a 3) (/.f64 b (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2)))) -1/4))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) -1/4)) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (Rewrite<= *-commutative_binary64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5))) (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5))))) (/.f64 c b)) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (Rewrite<= unsub-neg_binary64 (+.f64 (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)))) (neg.f64 (/.f64 c b)))) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (+.f64 (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)))) (Rewrite<= mul-1-neg_binary64 (*.f64 -1 (/.f64 c b)))) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 -1 (/.f64 c b)) (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)))))) (/.f64 (*.f64 c (*.f64 c a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (+.f64 (*.f64 -1 (/.f64 c b)) (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5))))) (/.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 c c) a)) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (-.f64 (+.f64 (*.f64 -1 (/.f64 c b)) (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5))))) (/.f64 (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 c 2)) a) (pow.f64 b 3))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= unsub-neg_binary64 (+.f64 (+.f64 (*.f64 -1 (/.f64 c b)) (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5))))) (neg.f64 (/.f64 (*.f64 (pow.f64 c 2) a) (pow.f64 b 3))))): 0 points increase in error, 0 points decrease in error
      (+.f64 (+.f64 (*.f64 -1 (/.f64 c b)) (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5))))) (Rewrite<= mul-1-neg_binary64 (*.f64 -1 (/.f64 (*.f64 (pow.f64 c 2) a) (pow.f64 b 3))))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 -1 (/.f64 (*.f64 (pow.f64 c 2) a) (pow.f64 b 3))) (+.f64 (*.f64 -1 (/.f64 c b)) (+.f64 (*.f64 -1/4 (/.f64 (*.f64 (pow.f64 a 3) (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (pow.f64 (*.f64 -2 (/.f64 (pow.f64 c 2) (pow.f64 b 3))) 2))) b)) (*.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5))))))): 0 points increase in error, 0 points decrease in error
    5. Taylor expanded in c around 0 4.7

      \[\leadsto \left(\mathsf{fma}\left(-2, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, \color{blue}{-5 \cdot \frac{{c}^{4} \cdot {a}^{3}}{{b}^{7}}}\right) - \frac{c}{b}\right) - \frac{c \cdot \left(c \cdot a\right)}{{b}^{3}} \]
    6. Simplified4.7

      \[\leadsto \left(\mathsf{fma}\left(-2, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, \color{blue}{\frac{{c}^{4} \cdot -5}{\frac{{b}^{7}}{{a}^{3}}}}\right) - \frac{c}{b}\right) - \frac{c \cdot \left(c \cdot a\right)}{{b}^{3}} \]
      Proof
      (/.f64 (*.f64 (pow.f64 c 4) -5) (/.f64 (pow.f64 b 7) (pow.f64 a 3))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (pow.f64 c 4) (/.f64 (pow.f64 b 7) (pow.f64 a 3))) -5)): 55 points increase in error, 55 points decrease in error
      (*.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 c 4) (pow.f64 a 3)) (pow.f64 b 7))) -5): 34 points increase in error, 41 points decrease in error
      (Rewrite<= *-commutative_binary64 (*.f64 -5 (/.f64 (*.f64 (pow.f64 c 4) (pow.f64 a 3)) (pow.f64 b 7)))): 0 points increase in error, 0 points decrease in error
    7. Applied egg-rr4.7

      \[\leadsto \left(\mathsf{fma}\left(-2, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, \color{blue}{\left(\frac{{c}^{4} \cdot -5}{{b}^{7}} \cdot \left(a \cdot a\right)\right) \cdot a}\right) - \frac{c}{b}\right) - \frac{c \cdot \left(c \cdot a\right)}{{b}^{3}} \]
    8. Applied egg-rr4.7

      \[\leadsto \left(\mathsf{fma}\left(-2, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, \left(\frac{{c}^{4} \cdot -5}{{b}^{7}} \cdot \left(a \cdot a\right)\right) \cdot a\right) - \frac{c}{b}\right) - \color{blue}{\frac{c \cdot c}{b \cdot b} \cdot \frac{a}{b}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification4.9

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{a \cdot 2} \leq -70:\\ \;\;\;\;\frac{\mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -4\right) - b \cdot b}{b + \sqrt{\mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -4\right)}} \cdot \frac{0.5}{a}\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(-2, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, a \cdot \left(\left(a \cdot a\right) \cdot \frac{{c}^{4} \cdot -5}{{b}^{7}}\right)\right) - \frac{c}{b}\right) - \frac{c \cdot c}{b \cdot b} \cdot \frac{a}{b}\\ \end{array} \]

Alternatives

Alternative 1
Error6.7
Cost28228
\[\begin{array}{l} t_0 := \mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -4\right)\\ \mathbf{if}\;\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{a \cdot 2} \leq -0.015:\\ \;\;\;\;\frac{t_0 - b \cdot b}{b + \sqrt{t_0}} \cdot \frac{0.5}{a}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{-2 \cdot \left({c}^{3} \cdot \left(a \cdot a\right)\right)}{{b}^{5}} - \frac{c}{b}\right) - a \cdot \frac{c \cdot c}{{b}^{3}}\\ \end{array} \]
Alternative 2
Error6.9
Cost28164
\[\begin{array}{l} \mathbf{if}\;\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{a \cdot 2} \leq -0.015:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)} - b}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{-2 \cdot \left({c}^{3} \cdot \left(a \cdot a\right)\right)}{{b}^{5}} - \frac{c}{b}\right) - a \cdot \frac{c \cdot c}{{b}^{3}}\\ \end{array} \]
Alternative 3
Error9.1
Cost21060
\[\begin{array}{l} \mathbf{if}\;\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{a \cdot 2} \leq -0.015:\\ \;\;\;\;\frac{0.5}{a} \cdot \left(\sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -4\right)\right)} - b\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{c \cdot \left(a \cdot \left(-c\right)\right)}{{b}^{3}} - \frac{c}{b}\\ \end{array} \]
Alternative 4
Error9.1
Cost21060
\[\begin{array}{l} \mathbf{if}\;\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{a \cdot 2} \leq -0.015:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)} - b}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{c \cdot \left(a \cdot \left(-c\right)\right)}{{b}^{3}} - \frac{c}{b}\\ \end{array} \]
Alternative 5
Error9.1
Cost14788
\[\begin{array}{l} t_0 := \frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{a \cdot 2}\\ \mathbf{if}\;t_0 \leq -0.015:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{c \cdot \left(a \cdot \left(-c\right)\right)}{{b}^{3}} - \frac{c}{b}\\ \end{array} \]
Alternative 6
Error9.5
Cost7492
\[\begin{array}{l} \mathbf{if}\;b \leq 50:\\ \;\;\;\;\frac{0.5}{a} \cdot \left(\sqrt{b \cdot b + \left(a \cdot c\right) \cdot -4} - b\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{c \cdot \left(a \cdot \left(-c\right)\right)}{{b}^{3}} - \frac{c}{b}\\ \end{array} \]
Alternative 7
Error11.6
Cost7232
\[\frac{c \cdot \left(a \cdot \left(-c\right)\right)}{{b}^{3}} - \frac{c}{b} \]
Alternative 8
Error11.8
Cost1600
\[\frac{0.5}{a} \cdot \left(-2 \cdot \left(a \cdot \frac{c}{b} + \left(a \cdot a\right) \cdot \left(\frac{c}{b} \cdot \frac{c}{b \cdot b}\right)\right)\right) \]
Alternative 9
Error22.6
Cost256
\[\frac{-c}{b} \]

Error

Reproduce

herbie shell --seed 2022332 
(FPCore (a b c)
  :name "Quadratic roots, narrow range"
  :precision binary64
  :pre (and (and (and (< 1.0536712127723509e-8 a) (< a 94906265.62425156)) (and (< 1.0536712127723509e-8 b) (< b 94906265.62425156))) (and (< 1.0536712127723509e-8 c) (< c 94906265.62425156)))
  (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))