Average Error: 52.3 → 1.3
Time: 12.9s
Precision: binary64
Cost: 41152
\[\left(\left(4.930380657631324 \cdot 10^{-32} < a \land a < 2.028240960365167 \cdot 10^{+31}\right) \land \left(4.930380657631324 \cdot 10^{-32} < b \land b < 2.028240960365167 \cdot 10^{+31}\right)\right) \land \left(4.930380657631324 \cdot 10^{-32} < c \land c < 2.028240960365167 \cdot 10^{+31}\right)\]
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
\[\mathsf{fma}\left(-2, \frac{a}{\frac{\frac{{b}^{5}}{{c}^{3}}}{a}}, \frac{{a}^{3} \cdot -0.25}{b} \cdot \left(\left(\left(c \cdot c\right) \cdot \left(\left(c \cdot c\right) \cdot {b}^{-6}\right)\right) \cdot 20\right)\right) - \mathsf{fma}\left(\frac{c}{b \cdot b} \cdot \frac{c}{b}, a, \frac{c}{b}\right) \]
(FPCore (a b c)
 :precision binary64
 (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
(FPCore (a b c)
 :precision binary64
 (-
  (fma
   -2.0
   (/ a (/ (/ (pow b 5.0) (pow c 3.0)) a))
   (*
    (/ (* (pow a 3.0) -0.25) b)
    (* (* (* c c) (* (* c c) (pow b -6.0))) 20.0)))
  (fma (* (/ c (* b b)) (/ c b)) a (/ c 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) {
	return fma(-2.0, (a / ((pow(b, 5.0) / pow(c, 3.0)) / a)), (((pow(a, 3.0) * -0.25) / b) * (((c * c) * ((c * c) * pow(b, -6.0))) * 20.0))) - fma(((c / (b * b)) * (c / b)), a, (c / b));
}
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)
	return Float64(fma(-2.0, Float64(a / Float64(Float64((b ^ 5.0) / (c ^ 3.0)) / a)), Float64(Float64(Float64((a ^ 3.0) * -0.25) / b) * Float64(Float64(Float64(c * c) * Float64(Float64(c * c) * (b ^ -6.0))) * 20.0))) - fma(Float64(Float64(c / Float64(b * b)) * Float64(c / b)), a, Float64(c / b)))
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_] := N[(N[(-2.0 * N[(a / N[(N[(N[Power[b, 5.0], $MachinePrecision] / N[Power[c, 3.0], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[Power[a, 3.0], $MachinePrecision] * -0.25), $MachinePrecision] / b), $MachinePrecision] * N[(N[(N[(c * c), $MachinePrecision] * N[(N[(c * c), $MachinePrecision] * N[Power[b, -6.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 20.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c / N[(b * b), $MachinePrecision]), $MachinePrecision] * N[(c / b), $MachinePrecision]), $MachinePrecision] * a + N[(c / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}
\mathsf{fma}\left(-2, \frac{a}{\frac{\frac{{b}^{5}}{{c}^{3}}}{a}}, \frac{{a}^{3} \cdot -0.25}{b} \cdot \left(\left(\left(c \cdot c\right) \cdot \left(\left(c \cdot c\right) \cdot {b}^{-6}\right)\right) \cdot 20\right)\right) - \mathsf{fma}\left(\frac{c}{b \cdot b} \cdot \frac{c}{b}, a, \frac{c}{b}\right)

Error

Derivation

  1. Initial program 52.3

    \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
  2. Taylor expanded in a around 0 1.3

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

    \[\leadsto \color{blue}{\mathsf{fma}\left(-2, \frac{a}{\frac{\frac{{b}^{5}}{{c}^{3}}}{a}}, \frac{{a}^{3} \cdot -0.25}{b} \cdot \left(\frac{{c}^{4}}{{b}^{6}} \cdot 20\right)\right) - \mathsf{fma}\left(\frac{c \cdot c}{{b}^{3}}, a, \frac{c}{b}\right)} \]
    Proof
    (-.f64 (fma.f64 -2 (/.f64 a (/.f64 (/.f64 (pow.f64 b 5) (pow.f64 c 3)) a)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (*.f64 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) 20))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 a a) (/.f64 (pow.f64 b 5) (pow.f64 c 3)))) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (*.f64 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) 20))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 a 2)) (/.f64 (pow.f64 b 5) (pow.f64 c 3))) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (*.f64 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) 20))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 a 2) (pow.f64 c 3)) (pow.f64 b 5))) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (*.f64 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) 20))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (Rewrite<= *-commutative_binary64 (*.f64 (pow.f64 c 3) (pow.f64 a 2))) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (*.f64 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) 20))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (*.f64 (/.f64 (pow.f64 c 4) (pow.f64 b 6)) (Rewrite<= metadata-eval (+.f64 16 4))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (Rewrite<= distribute-rgt-out_binary64 (+.f64 (*.f64 16 (/.f64 (pow.f64 c 4) (pow.f64 b 6))) (*.f64 4 (/.f64 (pow.f64 c 4) (pow.f64 b 6))))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (+.f64 (*.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)))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (+.f64 (*.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)))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (+.f64 (*.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)))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (+.f64 (*.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)))))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (+.f64 (*.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)))))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (+.f64 (*.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)))))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (+.f64 (*.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)))))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (*.f64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) b) (+.f64 (*.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))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.f64 (fma.f64 -2 (/.f64 (*.f64 (pow.f64 c 3) (pow.f64 a 2)) (pow.f64 b 5)) (Rewrite<= associate-/r/_binary64 (/.f64 (*.f64 (pow.f64 a 3) -1/4) (/.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)))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.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))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.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)) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.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)))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.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)))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.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))))) (fma.f64 (/.f64 (*.f64 c c) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.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)))) (fma.f64 (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 c 2)) (pow.f64 b 3)) a (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (-.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<= fma-def_binary64 (+.f64 (*.f64 (/.f64 (pow.f64 c 2) (pow.f64 b 3)) a) (/.f64 c b)))): 0 points increase in error, 0 points decrease in error
    (-.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)))) (+.f64 (Rewrite=> associate-*l/_binary64 (/.f64 (*.f64 (pow.f64 c 2) a) (pow.f64 b 3))) (/.f64 c b))): 0 points increase in error, 0 points decrease in error
    (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 (/.f64 (*.f64 (pow.f64 c 2) a) (pow.f64 b 3)) (/.f64 c b))))): 0 points increase in error, 0 points decrease in error
    (+.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 (/.f64 (*.f64 (pow.f64 c 2) a) (pow.f64 b 3)) (/.f64 c b))))): 0 points increase in error, 0 points decrease in error
    (+.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<= distribute-lft-out_binary64 (+.f64 (*.f64 -1 (/.f64 (*.f64 (pow.f64 c 2) a) (pow.f64 b 3))) (*.f64 -1 (/.f64 c b))))): 0 points increase in error, 0 points decrease in error
    (Rewrite<= +-commutative_binary64 (+.f64 (+.f64 (*.f64 -1 (/.f64 (*.f64 (pow.f64 c 2) a) (pow.f64 b 3))) (*.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
    (Rewrite<= associate-+r+_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
  4. Applied egg-rr1.3

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

    \[\leadsto \mathsf{fma}\left(-2, \frac{a}{\frac{\frac{{b}^{5}}{{c}^{3}}}{a}}, \frac{{a}^{3} \cdot -0.25}{b} \cdot \left(\color{blue}{\left(\left(c \cdot c\right) \cdot \left(\left(c \cdot c\right) \cdot {b}^{-6}\right)\right)} \cdot 20\right)\right) - \mathsf{fma}\left(\frac{c}{b \cdot b} \cdot \frac{c}{b}, a, \frac{c}{b}\right) \]
  6. Final simplification1.3

    \[\leadsto \mathsf{fma}\left(-2, \frac{a}{\frac{\frac{{b}^{5}}{{c}^{3}}}{a}}, \frac{{a}^{3} \cdot -0.25}{b} \cdot \left(\left(\left(c \cdot c\right) \cdot \left(\left(c \cdot c\right) \cdot {b}^{-6}\right)\right) \cdot 20\right)\right) - \mathsf{fma}\left(\frac{c}{b \cdot b} \cdot \frac{c}{b}, a, \frac{c}{b}\right) \]

Alternatives

Alternative 1
Error1.8
Cost20608
\[a \cdot \left(a \cdot \frac{-2 \cdot {c}^{3}}{{b}^{5}} - \frac{c \cdot c}{{b}^{3}}\right) - \frac{c}{b} \]
Alternative 2
Error2.9
Cost13504
\[-\mathsf{fma}\left(\frac{c \cdot c}{{b}^{3}}, a, \frac{c}{b}\right) \]
Alternative 3
Error2.9
Cost832
\[\frac{c}{b} \cdot \left(-1 - \frac{a \cdot c}{b \cdot b}\right) \]
Alternative 4
Error6.3
Cost256
\[\frac{-c}{b} \]

Error

Reproduce

herbie shell --seed 2022310 
(FPCore (a b c)
  :name "Quadratic roots, wide range"
  :precision binary64
  :pre (and (and (and (< 4.930380657631324e-32 a) (< a 2.028240960365167e+31)) (and (< 4.930380657631324e-32 b) (< b 2.028240960365167e+31))) (and (< 4.930380657631324e-32 c) (< c 2.028240960365167e+31)))
  (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))