This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Functional Programming /


FilledSmallSquare Distribute[f[, , ... ]] distributes f over Plus appearing in any of the .

FilledSmallSquare Distribute[expr, g] distributes over g.

FilledSmallSquare Distribute[expr, g, f] performs the distribution only if the head of expr is f.

FilledSmallSquare Distribute effectively implements the distributive law for operators f and g.

FilledSmallSquare Distribute explicitly constructs the complete result of a distribution; Expand, on the other hand, builds up results iteratively, simplifying at each stage.

FilledSmallSquare Example: Distribute[f[a+b,c+d]] LongRightArrow.

FilledSmallSquare Distribute[f[a+b,g[x,y],c], g] LongRightArrow.

FilledSmallSquare Distribute[expr, g, f, gp, fp] gives gp and fp in place of g and f respectively in the result of the distribution.

FilledSmallSquare See Section 2.2.10.

FilledSmallSquare See also: Expand, Thread, Outer, Inner.

FilledSmallSquare New in Version 1.

Further Examples