, ... ]] distributes f over Plus appearing in any of the .
] distributes over g.
] performs the distribution only if the head of expr is f.
Distribute effectively implements the distributive law for operators f and g.
Distribute explicitly constructs the complete result of a distribution; Expand, on the other hand, builds up results iteratively, simplifying at each stage.
] gives gp and fp in place of g and f respectively in the result of the distribution.
See the Mathematica book: Section 2.2.10.
See also: Expand, Thread, Outer, Inner.
This expresses the classic distributive law of multiplication over addition.
Here is an equivalent way to write the input.
This is how taking a power distributes over addition.
We can generalize this to an arbitrary function.
Here we distribute over a product instead of a sum (two variations).
This example is similar to ComplexExpand. (In ComplexExpand the exponent has to be a number.)
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.