Distribute - Maple Help

MmaTranslator[Mma]

 Distribute
 distribute an expression over an argument

 Calling Sequence Distribute(f) Distribute(f,g)

Parameters

 f - expression g - expression

Description

 • The Distribute command distributes an expression over to another
 • The calling sequence Distribute(f(x,y,...)) distributes f over + appearing in any of the arguments x, y, ...
 • The calling sequence Distribute(f(...), g) distributes the expression over g.

Examples

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\left[\mathrm{Mma}\right]\right):$

Use the command with the Maple translation.

 > $\mathrm{Distribute}\left(f\left(a,c+d+e\right)\right)$
 ${f}{}\left({a}{,}{c}\right){+}{f}{}\left({a}{,}{d}\right){+}{f}{}\left({a}{,}{e}\right)$ (1)
 > $\mathrm{Distribute}\left(f\left(g\left(x\right),g\left(y\right)\right),g\right)$
 ${g}{}\left({g}{}\left({f}{}\left({x}{,}{y}\right)\right)\right)$ (2)

Alternatively, you can use the FromMma command with the evaluate option specified.

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{Distribute\left[ \left(a\right)*\left(x+y\right) \right]},\mathrm{evaluate}\right)$
 ${a}{}{x}{+}{a}{}{y}$ (3)

Compatibility

 • The MmaTranslator[Mma][Distribute] command was updated in Maple 2017.