RightComposition[f1,f2,f3,…]
represents a composition on the right of the functions f1, f2, f3, ….
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 all close allBasic Examples (2)
Scope (4)
Use pure functions inside RightComposition:
RightComposition[1 + # ^ #&, a #&, # / (# + 1)&][x]Use Apply with RightComposition:
RightComposition[f, g, h]@@{x, y, z}RightComposition objects are automatically simplified when possible:
RightComposition[f, Identity, g]RightComposition[RotationTransform[θ], RotationTransform[ϕ]]Assign a RightComposition object to a variable:
f = Cases[_Symbol] /* (2#&)The variable can be used like any other function:
f[{a, "b", c, d, "e", 5}]Applications (2)
Properties & Relations (9)
RightComposition[f] gives f:
RightComposition[f]RightComposition[] gives Identity:
RightComposition[]Identity inside a composition is automatically removed:
RightComposition[f, Identity, g]Consecutive TransformationFunction objects are combined:
RightComposition[TranslationTransform[{2, 2}], f, RotationTransform[θ], RotationTransform[-θ]]//SimplifyInverseFunction of a composition produces a reversed composition of inverse functions:
InverseFunction[RightComposition[f, g, h]]RightComposition composes on the right:
RightComposition[f, g][x]Composition composes on the left:
Composition[f, g][x]Pure functions let you set up objects that work like RightComposition:
RightComposition[f, g, h][x]h[g[f[#]]]&[x]Different ways of entering the same right composition:
RightComposition[f, g, h][x]x//f /* g /* hRightComposition is natural with postfix notation, entering the functions in the same order:
x//f//g//hWith prefix notation, the functions are reversed relative to pure prefix application:
h@g@f@xf /* g /* h@xCompose a function with itself
times using Nest:
Nest[f, x, 3]RightComposition[f, f, f][x]Compose a function with itself
times using RSolve:
f[x_] := (2x + 3/x + 4)fn = a /. First@RSolve[{a[n + 1] == f[a[n]], a[0] == 0}, a, n]fn[10](RightComposition@@Table[f, {10}])[0]Possible Issues (1)
RightComposition[…] objects do not hold their arguments:
RightComposition[Times, Hold][2 + 3, 4 + 5]Use ordinary function application to allow functions to hold their arguments:
Hold[Times[2 + 3, 4 + 5]]Tech Notes
Related Guides
History
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
BibTeX
@misc{reference.wolfram_2026_rightcomposition, author="Wolfram Research", title="{RightComposition}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/RightComposition.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_rightcomposition, organization={Wolfram Research}, title={RightComposition}, year={2014}, url={https://reference.wolfram.com/language/ref/RightComposition.html}, note=[Accessed: 13-June-2026]}