Initial program 28.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}
\]
Simplified28.0
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}}
\]
Proof
(/.f64 (+.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))): 2 points increase in error, 0 points decrease in error
Applied egg-rr27.3
\[\leadsto \frac{\color{blue}{\frac{\frac{b \cdot b - \mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)}{\sqrt{b + \sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)}}}}{-\sqrt{b + \sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)}}}}}{a \cdot 2}
\]
Simplified27.1
\[\leadsto \frac{\color{blue}{\frac{b \cdot b - \mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)}{-\left(b + \sqrt{\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)}\right)}}}{a \cdot 2}
\]
Proof
(/.f64 (/.f64 (-.f64 (*.f64 b b) (fma.f64 c (*.f64 a -4) (*.f64 b b))) (neg.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))) (*.f64 a 2)): 0 points increase in error, 0 points decrease in error
(/.f64 (/.f64 (-.f64 (*.f64 b b) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 c (*.f64 a -4)) (*.f64 b b)))) (neg.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))) (*.f64 a 2)): 12 points increase in error, 0 points decrease in error
(/.f64 (/.f64 (-.f64 (*.f64 b b) (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 b b) (*.f64 c (*.f64 a -4))))) (neg.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))) (*.f64 a 2)): 0 points increase in error, 12 points decrease in error
(/.f64 (/.f64 (-.f64 (*.f64 b b) (Rewrite=> fma-def_binary64 (fma.f64 b b (*.f64 c (*.f64 a -4))))) (neg.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))) (*.f64 a 2)): 0 points increase in error, 12 points decrease in error
(/.f64 (/.f64 (Rewrite<= /-rgt-identity_binary64 (/.f64 (-.f64 (*.f64 b b) (fma.f64 b b (*.f64 c (*.f64 a -4)))) 1)) (neg.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))) (*.f64 a 2)): 12 points increase in error, 0 points decrease in error
(/.f64 (/.f64 (/.f64 (-.f64 (*.f64 b b) (fma.f64 b b (*.f64 c (*.f64 a -4)))) 1) (neg.f64 (+.f64 b (sqrt.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 c (*.f64 a -4)) (*.f64 b b))))))) (*.f64 a 2)): 12 points increase in error, 0 points decrease in error
(/.f64 (/.f64 (/.f64 (-.f64 (*.f64 b b) (fma.f64 b b (*.f64 c (*.f64 a -4)))) 1) (neg.f64 (+.f64 b (sqrt.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 b b) (*.f64 c (*.f64 a -4)))))))) (*.f64 a 2)): 12 points increase in error, 0 points decrease in error
(/.f64 (/.f64 (/.f64 (-.f64 (*.f64 b b) (fma.f64 b b (*.f64 c (*.f64 a -4)))) 1) (neg.f64 (+.f64 b (sqrt.f64 (Rewrite=> fma-def_binary64 (fma.f64 b b (*.f64 c (*.f64 a -4)))))))) (*.f64 a 2)): 0 points increase in error, 12 points decrease in error
(/.f64 (/.f64 (/.f64 (-.f64 (*.f64 b b) (fma.f64 b b (*.f64 c (*.f64 a -4)))) 1) (neg.f64 (Rewrite<= rem-square-sqrt_binary64 (*.f64 (sqrt.f64 (+.f64 b (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4)))))) (sqrt.f64 (+.f64 b (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4)))))))))) (*.f64 a 2)): 12 points increase in error, 0 points decrease in error
(/.f64 (/.f64 (/.f64 (-.f64 (*.f64 b b) (fma.f64 b b (*.f64 c (*.f64 a -4)))) 1) (Rewrite=> distribute-lft-neg-in_binary64 (*.f64 (neg.f64 (sqrt.f64 (+.f64 b (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4))))))) (sqrt.f64 (+.f64 b (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4))))))))) (*.f64 a 2)): 0 points increase in error, 12 points decrease in error
(/.f64 (/.f64 (Rewrite=> /-rgt-identity_binary64 (-.f64 (*.f64 b b) (fma.f64 b b (*.f64 c (*.f64 a -4))))) (*.f64 (neg.f64 (sqrt.f64 (+.f64 b (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4))))))) (sqrt.f64 (+.f64 b (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4)))))))) (*.f64 a 2)): 12 points increase in error, 0 points decrease in error
(/.f64 (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (-.f64 (*.f64 b b) (fma.f64 b b (*.f64 c (*.f64 a -4)))) (sqrt.f64 (+.f64 b (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4))))))) (neg.f64 (sqrt.f64 (+.f64 b (sqrt.f64 (fma.f64 b b (*.f64 c (*.f64 a -4))))))))) (*.f64 a 2)): 0 points increase in error, 12 points decrease in error
Taylor expanded in b around 0 0.4
\[\leadsto \frac{\frac{\color{blue}{4 \cdot \left(c \cdot a\right)}}{-\left(b + \sqrt{\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)}\right)}}{a \cdot 2}
\]
Applied egg-rr0.5
\[\leadsto \color{blue}{\frac{4 \cdot \frac{0.5}{a}}{b + \sqrt{\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)}} \cdot \left(-c \cdot a\right)}
\]
Simplified0.5
\[\leadsto \color{blue}{\left(c \cdot \left(-a\right)\right) \cdot \frac{\frac{2}{a}}{b + \sqrt{\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)}}}
\]
Proof
(*.f64 (*.f64 c (neg.f64 a)) (/.f64 (/.f64 2 a) (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))): 0 points increase in error, 0 points decrease in error
(*.f64 (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 c a))) (/.f64 (/.f64 2 a) (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))): 0 points increase in error, 0 points decrease in error
(*.f64 (neg.f64 (*.f64 c a)) (/.f64 (/.f64 (Rewrite<= metadata-eval (*.f64 4 1/2)) a) (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))): 5 points increase in error, 0 points decrease in error
(*.f64 (neg.f64 (*.f64 c a)) (/.f64 (Rewrite<= associate-*r/_binary64 (*.f64 4 (/.f64 1/2 a))) (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))))): 0 points increase in error, 0 points decrease in error
(Rewrite<= *-commutative_binary64 (*.f64 (/.f64 (*.f64 4 (/.f64 1/2 a)) (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b))))) (neg.f64 (*.f64 c a)))): 0 points increase in error, 0 points decrease in error
Applied egg-rr0.5
\[\leadsto \color{blue}{\frac{-1}{\frac{\left(b + \sqrt{\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)}\right) \cdot \left(a \cdot 0.5\right)}{a \cdot c}}}
\]
Simplified0.3
\[\leadsto \color{blue}{\frac{c}{\frac{b + \sqrt{\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)}}{-2}}}
\]
Proof
(/.f64 c (/.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) -2)): 0 points increase in error, 0 points decrease in error
(/.f64 c (/.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (Rewrite<= metadata-eval (*.f64 -1 2)))): 1 points increase in error, 0 points decrease in error
(/.f64 c (/.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (*.f64 -1 (Rewrite<= metadata-eval (/.f64 1 1/2))))): 0 points increase in error, 1 points decrease in error
(/.f64 c (/.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (*.f64 -1 (/.f64 (Rewrite<= *-inverses_binary64 (/.f64 a a)) 1/2)))): 10 points increase in error, 0 points decrease in error
(/.f64 c (/.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (*.f64 -1 (Rewrite<= associate-/r*_binary64 (/.f64 a (*.f64 a 1/2)))))): 0 points increase in error, 4 points decrease in error
(/.f64 c (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (/.f64 a (*.f64 a 1/2))) -1))): 4 points increase in error, 0 points decrease in error
(/.f64 c (/.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (*.f64 a 1/2)) a)) -1)): 1 points increase in error, 9 points decrease in error
(Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 c -1) (/.f64 (*.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (*.f64 a 1/2)) a))): 9 points increase in error, 0 points decrease in error
(/.f64 (Rewrite=> *-commutative_binary64 (*.f64 -1 c)) (/.f64 (*.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (*.f64 a 1/2)) a)): 0 points increase in error, 6 points decrease in error
(Rewrite=> associate-/l*_binary64 (/.f64 -1 (/.f64 (/.f64 (*.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (*.f64 a 1/2)) a) c))): 0 points increase in error, 5 points decrease in error
(/.f64 -1 (Rewrite<= associate-/r*_binary64 (/.f64 (*.f64 (+.f64 b (sqrt.f64 (fma.f64 c (*.f64 a -4) (*.f64 b b)))) (*.f64 a 1/2)) (*.f64 a c)))): 1 points increase in error, 0 points decrease in error
Final simplification0.3
\[\leadsto \frac{c}{\frac{b + \sqrt{\mathsf{fma}\left(c, a \cdot -4, b \cdot b\right)}}{-2}}
\]