Initial program 55.6%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Simplified55.6%
\[\leadsto \color{blue}{\left(b - \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}\right) \cdot \frac{-0.3333333333333333}{a}}
\]
Proof
[Start]55.6 | \[ \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\] |
|---|
remove-double-neg [<=]55.6 | \[ \frac{\left(-b\right) + \color{blue}{\left(-\left(-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)\right)}}{3 \cdot a}
\] |
|---|
sub-neg [<=]55.6 | \[ \frac{\color{blue}{\left(-b\right) - \left(-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}{3 \cdot a}
\] |
|---|
div-sub [=>]54.8 | \[ \color{blue}{\frac{-b}{3 \cdot a} - \frac{-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\] |
|---|
neg-mul-1 [=>]54.8 | \[ \frac{\color{blue}{-1 \cdot b}}{3 \cdot a} - \frac{-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\] |
|---|
associate-*l/ [<=]54.8 | \[ \color{blue}{\frac{-1}{3 \cdot a} \cdot b} - \frac{-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\] |
|---|
distribute-frac-neg [=>]54.8 | \[ \frac{-1}{3 \cdot a} \cdot b - \color{blue}{\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)}
\] |
|---|
fma-neg [=>]55.6 | \[ \color{blue}{\mathsf{fma}\left(\frac{-1}{3 \cdot a}, b, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)}
\] |
|---|
/-rgt-identity [<=]55.6 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \color{blue}{\frac{b}{1}}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
|---|
metadata-eval [<=]55.6 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \frac{b}{\color{blue}{\frac{-1}{-1}}}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
|---|
associate-/l* [<=]55.6 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \color{blue}{\frac{b \cdot -1}{-1}}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
|---|
*-commutative [<=]55.6 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \frac{\color{blue}{-1 \cdot b}}{-1}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
|---|
neg-mul-1 [<=]55.6 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \frac{\color{blue}{-b}}{-1}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
|---|
fma-neg [<=]54.8 | \[ \color{blue}{\frac{-1}{3 \cdot a} \cdot \frac{-b}{-1} - \left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)}
\] |
|---|
neg-mul-1 [=>]54.8 | \[ \frac{-1}{3 \cdot a} \cdot \frac{-b}{-1} - \color{blue}{-1 \cdot \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\] |
|---|
Applied egg-rr57.1%
\[\leadsto \color{blue}{\frac{1}{\frac{\left(a \cdot -3\right) \cdot \left(b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}\right)}{b \cdot b - \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}
\]
Taylor expanded in b around 0 99.1%
\[\leadsto \frac{1}{\frac{\left(a \cdot -3\right) \cdot \left(b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}\right)}{\color{blue}{3 \cdot \left(c \cdot a\right)}}}
\]
Applied egg-rr62.0%
\[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{a \cdot c}{\left(-1 \cdot a\right) \cdot \left(b + \sqrt{\mathsf{fma}\left(a, -3 \cdot c, b \cdot b\right)}\right)}\right)} - 1}
\]
Simplified99.6%
\[\leadsto \color{blue}{\frac{a}{-a} \cdot \frac{c}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}
\]
Proof
[Start]62.0 | \[ e^{\mathsf{log1p}\left(\frac{a \cdot c}{\left(-1 \cdot a\right) \cdot \left(b + \sqrt{\mathsf{fma}\left(a, -3 \cdot c, b \cdot b\right)}\right)}\right)} - 1
\] |
|---|
expm1-def [=>]85.4 | \[ \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{a \cdot c}{\left(-1 \cdot a\right) \cdot \left(b + \sqrt{\mathsf{fma}\left(a, -3 \cdot c, b \cdot b\right)}\right)}\right)\right)}
\] |
|---|
expm1-log1p [=>]99.3 | \[ \color{blue}{\frac{a \cdot c}{\left(-1 \cdot a\right) \cdot \left(b + \sqrt{\mathsf{fma}\left(a, -3 \cdot c, b \cdot b\right)}\right)}}
\] |
|---|
times-frac [=>]99.6 | \[ \color{blue}{\frac{a}{-1 \cdot a} \cdot \frac{c}{b + \sqrt{\mathsf{fma}\left(a, -3 \cdot c, b \cdot b\right)}}}
\] |
|---|
mul-1-neg [=>]99.6 | \[ \frac{a}{\color{blue}{-a}} \cdot \frac{c}{b + \sqrt{\mathsf{fma}\left(a, -3 \cdot c, b \cdot b\right)}}
\] |
|---|
*-commutative [=>]99.6 | \[ \frac{a}{-a} \cdot \frac{c}{b + \sqrt{\mathsf{fma}\left(a, \color{blue}{c \cdot -3}, b \cdot b\right)}}
\] |
|---|
Final simplification99.6%
\[\leadsto \frac{a}{-a} \cdot \frac{c}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}
\]