Initial program 71.8%
\[\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \left(b \cdot b\right) \cdot \left(3 + a\right)\right)\right) - 1
\]
Taylor expanded in a around 0 99.2%
\[\leadsto \left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \color{blue}{\left(3 \cdot {b}^{2}\right)}\right) - 1
\]
Simplified99.2%
\[\leadsto \left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \color{blue}{\left(b \cdot \left(b \cdot 3\right)\right)}\right) - 1
\]
Step-by-step derivation
[Start]99.2 | \[ \left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(3 \cdot {b}^{2}\right)\right) - 1
\] |
|---|
*-commutative [=>]99.2 | \[ \left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \color{blue}{\left({b}^{2} \cdot 3\right)}\right) - 1
\] |
|---|
unpow2 [=>]99.2 | \[ \left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(\color{blue}{\left(b \cdot b\right)} \cdot 3\right)\right) - 1
\] |
|---|
associate-*r* [<=]99.2 | \[ \left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \color{blue}{\left(b \cdot \left(b \cdot 3\right)\right)}\right) - 1
\] |
|---|
Applied egg-rr93.3%
\[\leadsto \left(\color{blue}{\left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(a \cdot a\right) + {\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(b \cdot b\right)\right)} + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\]
Step-by-step derivation
[Start]99.2 | \[ \left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
unpow2 [=>]99.2 | \[ \left(\color{blue}{\left(a \cdot a + b \cdot b\right) \cdot \left(a \cdot a + b \cdot b\right)} + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
distribute-lft-in [=>]93.3 | \[ \left(\color{blue}{\left(\left(a \cdot a + b \cdot b\right) \cdot \left(a \cdot a\right) + \left(a \cdot a + b \cdot b\right) \cdot \left(b \cdot b\right)\right)} + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
add-sqr-sqrt [=>]93.3 | \[ \left(\left(\color{blue}{\left(\sqrt{a \cdot a + b \cdot b} \cdot \sqrt{a \cdot a + b \cdot b}\right)} \cdot \left(a \cdot a\right) + \left(a \cdot a + b \cdot b\right) \cdot \left(b \cdot b\right)\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
pow2 [=>]93.3 | \[ \left(\left(\color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{2}} \cdot \left(a \cdot a\right) + \left(a \cdot a + b \cdot b\right) \cdot \left(b \cdot b\right)\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
hypot-def [=>]93.3 | \[ \left(\left({\color{blue}{\left(\mathsf{hypot}\left(a, b\right)\right)}}^{2} \cdot \left(a \cdot a\right) + \left(a \cdot a + b \cdot b\right) \cdot \left(b \cdot b\right)\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
add-sqr-sqrt [=>]93.3 | \[ \left(\left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(a \cdot a\right) + \color{blue}{\left(\sqrt{a \cdot a + b \cdot b} \cdot \sqrt{a \cdot a + b \cdot b}\right)} \cdot \left(b \cdot b\right)\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
pow2 [=>]93.3 | \[ \left(\left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(a \cdot a\right) + \color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{2}} \cdot \left(b \cdot b\right)\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
hypot-def [=>]93.3 | \[ \left(\left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(a \cdot a\right) + {\color{blue}{\left(\mathsf{hypot}\left(a, b\right)\right)}}^{2} \cdot \left(b \cdot b\right)\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
Simplified99.2%
\[\leadsto \left(\color{blue}{{\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(a \cdot a + b \cdot b\right)} + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\]
Step-by-step derivation
[Start]93.3 | \[ \left(\left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(a \cdot a\right) + {\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(b \cdot b\right)\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
unpow2 [<=]93.3 | \[ \left(\left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \color{blue}{{a}^{2}} + {\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(b \cdot b\right)\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
unpow2 [<=]93.3 | \[ \left(\left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot {a}^{2} + {\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \color{blue}{{b}^{2}}\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
distribute-lft-out [=>]99.2 | \[ \left(\color{blue}{{\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left({a}^{2} + {b}^{2}\right)} + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
unpow2 [=>]99.2 | \[ \left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(\color{blue}{a \cdot a} + {b}^{2}\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
unpow2 [=>]99.2 | \[ \left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(a \cdot a + \color{blue}{b \cdot b}\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
Applied egg-rr99.2%
\[\leadsto \left(\color{blue}{\mathsf{fma}\left(b, b, a \cdot a\right)} \cdot \left(a \cdot a + b \cdot b\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\]
Step-by-step derivation
[Start]99.2 | \[ \left({\left(\mathsf{hypot}\left(a, b\right)\right)}^{2} \cdot \left(a \cdot a + b \cdot b\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
unpow2 [=>]99.2 | \[ \left(\color{blue}{\left(\mathsf{hypot}\left(a, b\right) \cdot \mathsf{hypot}\left(a, b\right)\right)} \cdot \left(a \cdot a + b \cdot b\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
hypot-udef [=>]99.2 | \[ \left(\left(\color{blue}{\sqrt{a \cdot a + b \cdot b}} \cdot \mathsf{hypot}\left(a, b\right)\right) \cdot \left(a \cdot a + b \cdot b\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
hypot-udef [=>]99.2 | \[ \left(\left(\sqrt{a \cdot a + b \cdot b} \cdot \color{blue}{\sqrt{a \cdot a + b \cdot b}}\right) \cdot \left(a \cdot a + b \cdot b\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
add-sqr-sqrt [<=]99.2 | \[ \left(\color{blue}{\left(a \cdot a + b \cdot b\right)} \cdot \left(a \cdot a + b \cdot b\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
+-commutative [=>]99.2 | \[ \left(\color{blue}{\left(b \cdot b + a \cdot a\right)} \cdot \left(a \cdot a + b \cdot b\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
fma-def [=>]99.2 | \[ \left(\color{blue}{\mathsf{fma}\left(b, b, a \cdot a\right)} \cdot \left(a \cdot a + b \cdot b\right) + 4 \cdot \left(b \cdot \left(b \cdot 3\right)\right)\right) - 1
\] |
|---|
Taylor expanded in b around 0 99.2%
\[\leadsto \left(\mathsf{fma}\left(b, b, a \cdot a\right) \cdot \left(a \cdot a + b \cdot b\right) + \color{blue}{12 \cdot {b}^{2}}\right) - 1
\]
Simplified99.2%
\[\leadsto \left(\mathsf{fma}\left(b, b, a \cdot a\right) \cdot \left(a \cdot a + b \cdot b\right) + \color{blue}{b \cdot \left(b \cdot 12\right)}\right) - 1
\]
Step-by-step derivation
[Start]99.2 | \[ \left(\mathsf{fma}\left(b, b, a \cdot a\right) \cdot \left(a \cdot a + b \cdot b\right) + 12 \cdot {b}^{2}\right) - 1
\] |
|---|
unpow2 [=>]99.2 | \[ \left(\mathsf{fma}\left(b, b, a \cdot a\right) \cdot \left(a \cdot a + b \cdot b\right) + 12 \cdot \color{blue}{\left(b \cdot b\right)}\right) - 1
\] |
|---|
*-commutative [<=]99.2 | \[ \left(\mathsf{fma}\left(b, b, a \cdot a\right) \cdot \left(a \cdot a + b \cdot b\right) + \color{blue}{\left(b \cdot b\right) \cdot 12}\right) - 1
\] |
|---|
associate-*l* [=>]99.2 | \[ \left(\mathsf{fma}\left(b, b, a \cdot a\right) \cdot \left(a \cdot a + b \cdot b\right) + \color{blue}{b \cdot \left(b \cdot 12\right)}\right) - 1
\] |
|---|
Final simplification99.2%
\[\leadsto \left(\mathsf{fma}\left(b, b, a \cdot a\right) \cdot \left(a \cdot a + b \cdot b\right) + b \cdot \left(b \cdot 12\right)\right) + -1
\]