Initial program 45.1%
\[\sqrt[3]{\frac{1}{2 \cdot a} \cdot \left(\left(-g\right) + \sqrt{g \cdot g - h \cdot h}\right)} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \left(\left(-g\right) - \sqrt{g \cdot g - h \cdot h}\right)}
\]
Step-by-step derivation
associate-/r*45.1%
\[\leadsto \sqrt[3]{\color{blue}{\frac{\frac{1}{2}}{a}} \cdot \left(\left(-g\right) + \sqrt{g \cdot g - h \cdot h}\right)} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \left(\left(-g\right) - \sqrt{g \cdot g - h \cdot h}\right)}
\]
metadata-eval45.1%
\[\leadsto \sqrt[3]{\frac{\color{blue}{0.5}}{a} \cdot \left(\left(-g\right) + \sqrt{g \cdot g - h \cdot h}\right)} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \left(\left(-g\right) - \sqrt{g \cdot g - h \cdot h}\right)}
\]
+-commutative45.1%
\[\leadsto \sqrt[3]{\frac{0.5}{a} \cdot \color{blue}{\left(\sqrt{g \cdot g - h \cdot h} + \left(-g\right)\right)}} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \left(\left(-g\right) - \sqrt{g \cdot g - h \cdot h}\right)}
\]
unsub-neg45.1%
\[\leadsto \sqrt[3]{\frac{0.5}{a} \cdot \color{blue}{\left(\sqrt{g \cdot g - h \cdot h} - g\right)}} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \left(\left(-g\right) - \sqrt{g \cdot g - h \cdot h}\right)}
\]
fma-neg45.1%
\[\leadsto \sqrt[3]{\frac{0.5}{a} \cdot \left(\sqrt{\color{blue}{\mathsf{fma}\left(g, g, -h \cdot h\right)}} - g\right)} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \left(\left(-g\right) - \sqrt{g \cdot g - h \cdot h}\right)}
\]
sub-neg45.1%
\[\leadsto \sqrt[3]{\frac{0.5}{a} \cdot \left(\sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)} - g\right)} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \color{blue}{\left(\left(-g\right) + \left(-\sqrt{g \cdot g - h \cdot h}\right)\right)}}
\]
distribute-neg-out45.1%
\[\leadsto \sqrt[3]{\frac{0.5}{a} \cdot \left(\sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)} - g\right)} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \color{blue}{\left(-\left(g + \sqrt{g \cdot g - h \cdot h}\right)\right)}}
\]
neg-mul-145.1%
\[\leadsto \sqrt[3]{\frac{0.5}{a} \cdot \left(\sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)} - g\right)} + \sqrt[3]{\frac{1}{2 \cdot a} \cdot \color{blue}{\left(-1 \cdot \left(g + \sqrt{g \cdot g - h \cdot h}\right)\right)}}
\]
associate-*r*45.1%
\[\leadsto \sqrt[3]{\frac{0.5}{a} \cdot \left(\sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)} - g\right)} + \sqrt[3]{\color{blue}{\left(\frac{1}{2 \cdot a} \cdot -1\right) \cdot \left(g + \sqrt{g \cdot g - h \cdot h}\right)}}
\]
Simplified45.2%
\[\leadsto \color{blue}{\sqrt[3]{\frac{0.5}{a} \cdot \left(\sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)} - g\right)} + \sqrt[3]{\frac{g + \sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)}}{\frac{a}{-0.5}}}}
\]
Step-by-step derivation
associate-*l/45.1%
\[\leadsto \sqrt[3]{\color{blue}{\frac{0.5 \cdot \left(\sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)} - g\right)}{a}}} + \sqrt[3]{\frac{g + \sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)}}{\frac{a}{-0.5}}}
\]
cbrt-div47.8%
\[\leadsto \color{blue}{\frac{\sqrt[3]{0.5 \cdot \left(\sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)} - g\right)}}{\sqrt[3]{a}}} + \sqrt[3]{\frac{g + \sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)}}{\frac{a}{-0.5}}}
\]
Applied egg-rr48.3%
\[\leadsto \color{blue}{\frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}}} + \sqrt[3]{\frac{g + \sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)}}{\frac{a}{-0.5}}}
\]
Step-by-step derivation
cbrt-div48.7%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \color{blue}{\frac{\sqrt[3]{g + \sqrt{\mathsf{fma}\left(g, g, -h \cdot h\right)}}}{\sqrt[3]{\frac{a}{-0.5}}}}
\]
fma-udef48.7%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \sqrt{\color{blue}{g \cdot g + \left(-h \cdot h\right)}}}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
add-sqr-sqrt26.0%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \sqrt{g \cdot g + \color{blue}{\sqrt{-h \cdot h} \cdot \sqrt{-h \cdot h}}}}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
hypot-def43.8%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \color{blue}{\mathsf{hypot}\left(g, \sqrt{-h \cdot h}\right)}}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
add-sqr-sqrt43.8%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, \sqrt{\color{blue}{\sqrt{-h \cdot h} \cdot \sqrt{-h \cdot h}}}\right)}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
sqrt-unprod82.1%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, \sqrt{\color{blue}{\sqrt{\left(-h \cdot h\right) \cdot \left(-h \cdot h\right)}}}\right)}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
sqr-neg82.1%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, \sqrt{\sqrt{\color{blue}{\left(h \cdot h\right) \cdot \left(h \cdot h\right)}}}\right)}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
sqrt-unprod89.4%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, \sqrt{\color{blue}{\sqrt{h \cdot h} \cdot \sqrt{h \cdot h}}}\right)}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
add-sqr-sqrt89.4%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, \sqrt{\color{blue}{h \cdot h}}\right)}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
sqrt-prod44.2%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, \color{blue}{\sqrt{h} \cdot \sqrt{h}}\right)}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
add-sqr-sqrt95.2%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, \color{blue}{h}\right)}}{\sqrt[3]{\frac{a}{-0.5}}}
\]
div-inv95.2%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, h\right)}}{\sqrt[3]{\color{blue}{a \cdot \frac{1}{-0.5}}}}
\]
metadata-eval95.2%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, h\right)}}{\sqrt[3]{a \cdot \color{blue}{-2}}}
\]
Applied egg-rr95.2%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \color{blue}{\frac{\sqrt[3]{g + \mathsf{hypot}\left(g, h\right)}}{\sqrt[3]{a \cdot -2}}}
\]
Final simplification95.2%
\[\leadsto \frac{\sqrt[3]{0.5 \cdot \left(\mathsf{hypot}\left(g, h\right) - g\right)}}{\sqrt[3]{a}} + \frac{\sqrt[3]{g + \mathsf{hypot}\left(g, h\right)}}{\sqrt[3]{a \cdot -2}}
\]