This is documentation for Mathematica 3, 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  /
Composition

  • Composition[ , , , ... ] represents a composition of the functions , , , ... .
  • Composition allows you to build up compositions of functions which can later be applied to specific arguments.
  • Example: Composition[a, b, c][x].
  • Composition objects containing Identity or InverseFunction[ f ] are automatically simplified when possible.
  • Composition has the attributes Flat and OneIdentity.
  • a @ b @ c gives a [ b [ c ]].
  • a // b // c gives c [ b [ a ]].
  • See the Mathematica book: Section 2.2.9.
  • See also: Nest, Function.

    Further Examples

    This generates a function that is the composition of these three trigonometric functions.

    In[1]:=

    Out[1]=

    You can use this function to evaluate symbolic and numeric quantities.

    In[2]:=

    Out[2]=

    In[3]:=

    Out[3]=