Composition
Composition[f1,f2,f3,…]
represents a composition of the functions f1, f2, f3, ….
Details
- Composition allows you to build up compositions of functions that can later be applied to specific arguments.
- Composition objects are automatically simplified when possible. »
- InverseFunction objects containing Composition are automatically simplified when possible. »
- Composition has the attributes Flat and OneIdentity.
- Composition can be entered in the form f1@*f2@*….
- Composition[] gives Identity. »
Examples
open allclose allBasic Examples (2)
Scope (4)
Use pure functions inside Composition:
Use Apply with Composition:
Composition objects are automatically simplified when possible:
Assign a Composition object to a variable:
Applications (2)
Properties & Relations (10)
Composition[f] gives f:
Composition[] gives Identity:
Identity inside a composition is automatically removed:
Consecutive TransformationFunction objects are combined:
InverseFunction of a composition produces a reversed composition of inverse functions:
Composition composes on the left:
RightComposition composes on the right:
Pure functions let you set up objects that work like Composition:
Different ways of entering the same composition:
Composition is natural with prefix notation, entering the functions in the same order:
With postfix notation, the functions are reversed relative to pure postfix application:
Compose a function with itself times using Nest:
Compose a function with itself times using RSolve:
Use ComposeSeries to do composition of series expansions:
Possible Issues (1)
Composition[…] objects do not hold their arguments:
Use ordinary function application to allow functions to hold their arguments:
Text
Wolfram Research (1991), Composition, Wolfram Language function, https://reference.wolfram.com/language/ref/Composition.html (updated 2014).
CMS
Wolfram Language. 1991. "Composition." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Composition.html.
APA
Wolfram Language. (1991). Composition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Composition.html