Initial program 0.2
\[\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 0.0
\[\leadsto \left(\color{blue}{\left(2 \cdot \left({a}^{2} \cdot {b}^{2}\right) + \left({a}^{4} + {b}^{4}\right)\right)} + 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
\]
Simplified0.0
\[\leadsto \left(\color{blue}{\mathsf{fma}\left(2, {\left(b \cdot a\right)}^{2}, {b}^{4} + {a}^{4}\right)} + 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
\]
Proof
[Start]0.0 | \[ \left(\left(2 \cdot \left({a}^{2} \cdot {b}^{2}\right) + \left({a}^{4} + {b}^{4}\right)\right) + 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
\] |
|---|
fma-def [=>]0.0 | \[ \left(\color{blue}{\mathsf{fma}\left(2, {a}^{2} \cdot {b}^{2}, {a}^{4} + {b}^{4}\right)} + 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
\] |
|---|
unpow2 [=>]0.0 | \[ \left(\mathsf{fma}\left(2, \color{blue}{\left(a \cdot a\right)} \cdot {b}^{2}, {a}^{4} + {b}^{4}\right) + 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
\] |
|---|
unpow2 [=>]0.0 | \[ \left(\mathsf{fma}\left(2, \left(a \cdot a\right) \cdot \color{blue}{\left(b \cdot b\right)}, {a}^{4} + {b}^{4}\right) + 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
\] |
|---|
swap-sqr [<=]0.0 | \[ \left(\mathsf{fma}\left(2, \color{blue}{\left(a \cdot b\right) \cdot \left(a \cdot b\right)}, {a}^{4} + {b}^{4}\right) + 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
\] |
|---|
unpow2 [<=]0.0 | \[ \left(\mathsf{fma}\left(2, \color{blue}{{\left(a \cdot b\right)}^{2}}, {a}^{4} + {b}^{4}\right) + 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
\] |
|---|
*-commutative [=>]0.0 | \[ \left(\mathsf{fma}\left(2, {\color{blue}{\left(b \cdot a\right)}}^{2}, {a}^{4} + {b}^{4}\right) + 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
\] |
|---|
+-commutative [=>]0.0 | \[ \left(\mathsf{fma}\left(2, {\left(b \cdot a\right)}^{2}, \color{blue}{{b}^{4} + {a}^{4}}\right) + 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
\] |
|---|
Applied egg-rr0.0
\[\leadsto \left(\mathsf{fma}\left(2, \color{blue}{\left(\left(b \cdot a\right) \cdot a\right) \cdot b}, {b}^{4} + {a}^{4}\right) + 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 0.1
\[\leadsto \left(\mathsf{fma}\left(2, \left(\left(b \cdot a\right) \cdot a\right) \cdot b, {b}^{4} + {a}^{4}\right) + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \color{blue}{3 \cdot {b}^{2}}\right)\right) - 1
\]
Simplified0.1
\[\leadsto \left(\mathsf{fma}\left(2, \left(\left(b \cdot a\right) \cdot a\right) \cdot b, {b}^{4} + {a}^{4}\right) + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \color{blue}{b \cdot \left(b \cdot 3\right)}\right)\right) - 1
\]
Proof
[Start]0.1 | \[ \left(\mathsf{fma}\left(2, \left(\left(b \cdot a\right) \cdot a\right) \cdot b, {b}^{4} + {a}^{4}\right) + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + 3 \cdot {b}^{2}\right)\right) - 1
\] |
|---|
*-commutative [=>]0.1 | \[ \left(\mathsf{fma}\left(2, \left(\left(b \cdot a\right) \cdot a\right) \cdot b, {b}^{4} + {a}^{4}\right) + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \color{blue}{{b}^{2} \cdot 3}\right)\right) - 1
\] |
|---|
unpow2 [=>]0.1 | \[ \left(\mathsf{fma}\left(2, \left(\left(b \cdot a\right) \cdot a\right) \cdot b, {b}^{4} + {a}^{4}\right) + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \color{blue}{\left(b \cdot b\right)} \cdot 3\right)\right) - 1
\] |
|---|
associate-*r* [<=]0.1 | \[ \left(\mathsf{fma}\left(2, \left(\left(b \cdot a\right) \cdot a\right) \cdot b, {b}^{4} + {a}^{4}\right) + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \color{blue}{b \cdot \left(b \cdot 3\right)}\right)\right) - 1
\] |
|---|
Taylor expanded in b around 0 0.1
\[\leadsto \color{blue}{\left({b}^{2} \cdot \left(12 + 2 \cdot {a}^{2}\right) + \left({b}^{4} + \left({a}^{4} + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)\right)\right)\right)} - 1
\]
Simplified0.1
\[\leadsto \color{blue}{\mathsf{fma}\left(b \cdot b, 12 + 2 \cdot \left(a \cdot a\right), \left({a}^{4} + {b}^{4}\right) + 4 \cdot \left(a \cdot \left(a \cdot \left(1 - a\right)\right)\right)\right)} - 1
\]
Proof
[Start]0.1 | \[ \left({b}^{2} \cdot \left(12 + 2 \cdot {a}^{2}\right) + \left({b}^{4} + \left({a}^{4} + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)\right)\right)\right) - 1
\] |
|---|
associate-+r+ [=>]0.1 | \[ \left({b}^{2} \cdot \left(12 + 2 \cdot {a}^{2}\right) + \color{blue}{\left(\left({b}^{4} + {a}^{4}\right) + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)\right)}\right) - 1
\] |
|---|
+-commutative [<=]0.1 | \[ \left({b}^{2} \cdot \left(12 + 2 \cdot {a}^{2}\right) + \left(\color{blue}{\left({a}^{4} + {b}^{4}\right)} + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)\right)\right) - 1
\] |
|---|
associate-+r+ [<=]0.1 | \[ \left({b}^{2} \cdot \left(12 + 2 \cdot {a}^{2}\right) + \color{blue}{\left({a}^{4} + \left({b}^{4} + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)\right)\right)}\right) - 1
\] |
|---|
fma-def [=>]0.1 | \[ \color{blue}{\mathsf{fma}\left({b}^{2}, 12 + 2 \cdot {a}^{2}, {a}^{4} + \left({b}^{4} + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)\right)\right)} - 1
\] |
|---|
unpow2 [=>]0.1 | \[ \mathsf{fma}\left(\color{blue}{b \cdot b}, 12 + 2 \cdot {a}^{2}, {a}^{4} + \left({b}^{4} + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)\right)\right) - 1
\] |
|---|
unpow2 [=>]0.1 | \[ \mathsf{fma}\left(b \cdot b, 12 + 2 \cdot \color{blue}{\left(a \cdot a\right)}, {a}^{4} + \left({b}^{4} + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)\right)\right) - 1
\] |
|---|
associate-+r+ [=>]0.1 | \[ \mathsf{fma}\left(b \cdot b, 12 + 2 \cdot \left(a \cdot a\right), \color{blue}{\left({a}^{4} + {b}^{4}\right) + 4 \cdot \left({a}^{2} \cdot \left(1 - a\right)\right)}\right) - 1
\] |
|---|
unpow2 [=>]0.1 | \[ \mathsf{fma}\left(b \cdot b, 12 + 2 \cdot \left(a \cdot a\right), \left({a}^{4} + {b}^{4}\right) + 4 \cdot \left(\color{blue}{\left(a \cdot a\right)} \cdot \left(1 - a\right)\right)\right) - 1
\] |
|---|
associate-*r* [<=]0.1 | \[ \mathsf{fma}\left(b \cdot b, 12 + 2 \cdot \left(a \cdot a\right), \left({a}^{4} + {b}^{4}\right) + 4 \cdot \color{blue}{\left(a \cdot \left(a \cdot \left(1 - a\right)\right)\right)}\right) - 1
\] |
|---|
Final simplification0.1
\[\leadsto \mathsf{fma}\left(b \cdot b, 12 + 2 \cdot \left(a \cdot a\right), \left({a}^{4} + {b}^{4}\right) + 4 \cdot \left(a \cdot \left(a \cdot \left(1 - a\right)\right)\right)\right) + -1
\]