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