 Expand - Maple Help

Expand

inert expand function Calling Sequence Expand(a) Parameters

 a - any expression Description

 • The Expand function is a placeholder for representing the expand function. It is used in conjunction with mod, or evala, which define the coefficient domain as described below.
 • The call evala(Expand(a)) expands products in a where a may contain algebraic numbers and functions defined by RootOfs or radicals. See evala/Expand for more information.
 • The call Expand(a) mod p expands products in a over the integers mod p where a may contain RootOfs or radicals representing algebraic extensions. Examples

 > $\mathrm{Expand}\left({\left(x+2\right)}^{2}\left(x-2\right)\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{mod}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}3$
 ${{x}}^{{3}}{+}{2}{}{{x}}^{{2}}{+}{2}{}{x}{+}{1}$ (1)
 > $\mathrm{alias}\left(\mathrm{\alpha }=\mathrm{RootOf}\left({x}^{2}-2\right)\right):$
 > $\mathrm{evala}\left(\mathrm{Expand}\left({\left(x+\mathrm{\alpha }\right)}^{2}\left(x-\mathrm{\alpha }\right)\right)\right)$
 ${\mathrm{\alpha }}{}{{x}}^{{2}}{+}{{x}}^{{3}}{-}{2}{}{\mathrm{\alpha }}{-}{2}{}{x}$ (2)
 > $\mathrm{alias}\left(\mathrm{\beta }=\mathrm{RootOf}\left({x}^{2}+x+1\right)\right):$
 > $\mathrm{Expand}\left({\left(x+\mathrm{\beta }\right)}^{2}\left(x-\mathrm{\beta }\right)\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{mod}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}2$
 ${\mathrm{\beta }}{}{{x}}^{{2}}{+}{{x}}^{{3}}{+}{x}{}{\mathrm{\beta }}{+}{x}{+}{1}$ (3)