Mathematica 9 is now available
 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]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.