Composition

Composition[f1,f2,f3,]

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

Details

Examples

open allclose all

Basic Examples  (2)

Apply a composition of functions to arguments:

Apply a composition using infix notation:

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:

The variable can be used like any other function:

Applications  (2)

Create a composition of a sequence of functions:

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

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:

Neat Examples  (1)

Tabulate square roots of values without using auxiliary variables:

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

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

BibTeX

@misc{reference.wolfram_2024_composition, author="Wolfram Research", title="{Composition}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/Composition.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_composition, organization={Wolfram Research}, title={Composition}, year={2014}, url={https://reference.wolfram.com/language/ref/Composition.html}, note=[Accessed: 21-November-2024 ]}