Expand - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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.5em}{0.0ex}}\mathbf{mod}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}3$
 ${{x}}^{{3}}{+}{2}{}{{x}}^{{2}}{+}{2}{}{x}{+}{1}$ (1)
 > $\mathrm{alias}\left(\mathrm{α}=\mathrm{RootOf}\left({x}^{2}-2\right)\right):$
 > $\mathrm{evala}\left(\mathrm{Expand}\left({\left(x+\mathrm{α}\right)}^{2}\left(x-\mathrm{α}\right)\right)\right)$
 ${-}{2}{}{x}{+}{\mathrm{α}}{}{{x}}^{{2}}{+}{{x}}^{{3}}{-}{2}{}{\mathrm{α}}$ (2)
 > $\mathrm{alias}\left(\mathrm{β}=\mathrm{RootOf}\left({x}^{2}+x+1\right)\right):$
 > $\mathrm{Expand}\left({\left(x+\mathrm{β}\right)}^{2}\left(x-\mathrm{β}\right)\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}\mathbf{mod}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}2$
 ${\mathrm{β}}{}{{x}}^{{2}}{+}{{x}}^{{3}}{+}{\mathrm{β}}{}{x}{+}{x}{+}{1}$ (3)
 > 

 See Also