WOLFRAM

RightComposition[f1,f2,f3,]

represents a composition on the right of the functions f1, f2, f3, .

Details

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Apply a composition of functions to arguments:

Out[1]=1

Apply a composition using infix notation:

Out[1]=1

Scope  (4)Survey of the scope of standard use cases

Use pure functions inside RightComposition:

Out[1]=1

Use Apply with RightComposition:

Out[1]=1

RightComposition objects are automatically simplified when possible:

Out[1]=1
Out[2]=2

Assign a RightComposition object to a variable:

Out[1]=1

The variable can be used like any other function:

Out[2]=2

Applications  (2)Sample problems that can be solved with this function

Create a composition of a sequence of functions:

Out[1]=1

Create a sum of numbers to be displayed in held form:

Out[1]=1

Properties & Relations  (9)Properties of the function, and connections to other functions

RightComposition[f] gives f:

Out[1]=1

RightComposition[] gives Identity:

Out[2]=2

Identity inside a composition is automatically removed:

Out[1]=1

Consecutive TransformationFunction objects are combined:

Out[1]=1

InverseFunction of a composition produces a reversed composition of inverse functions:

Out[1]=1

RightComposition composes on the right:

Out[1]=1

Composition composes on the left:

Out[2]=2

Pure functions let you set up objects that work like RightComposition:

Out[1]=1
Out[2]=2

Different ways of entering the same right composition:

Out[1]=1
Out[2]=2

RightComposition is natural with postfix notation, entering the functions in the same order:

Out[3]=3

With prefix notation, the functions are reversed relative to pure prefix application:

Out[4]=4
Out[5]=5

Compose a function with itself times using Nest:

Out[1]=1
Out[2]=2

Compose a function with itself times using RSolve:

Out[2]=2
Out[3]=3
Out[4]=4

Possible Issues  (1)Common pitfalls and unexpected behavior

RightComposition[] objects do not hold their arguments:

Out[36]=36

Use ordinary function application to allow functions to hold their arguments:

Out[37]=37

Neat Examples  (1)Surprising or curious use cases

Tabulate square roots of values without using auxiliary variables:

Wolfram Research (2014), RightComposition, Wolfram Language function, https://reference.wolfram.com/language/ref/RightComposition.html.
Wolfram Research (2014), RightComposition, Wolfram Language function, https://reference.wolfram.com/language/ref/RightComposition.html.

Text

Wolfram Research (2014), RightComposition, Wolfram Language function, https://reference.wolfram.com/language/ref/RightComposition.html.

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.

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

Wolfram Language. (2014). RightComposition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RightComposition.html

BibTeX

@misc{reference.wolfram_2025_rightcomposition, author="Wolfram Research", title="{RightComposition}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/RightComposition.html}", note=[Accessed: 09-July-2025 ]}

@misc{reference.wolfram_2025_rightcomposition, author="Wolfram Research", title="{RightComposition}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/RightComposition.html}", note=[Accessed: 09-July-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_rightcomposition, organization={Wolfram Research}, title={RightComposition}, year={2014}, url={https://reference.wolfram.com/language/ref/RightComposition.html}, note=[Accessed: 09-July-2025 ]}

@online{reference.wolfram_2025_rightcomposition, organization={Wolfram Research}, title={RightComposition}, year={2014}, url={https://reference.wolfram.com/language/ref/RightComposition.html}, note=[Accessed: 09-July-2025 ]}