I need to find the nthComposition of a function. I thought there could be something like nthComposition[f,x,5] means five times composition of f with x as input parameter. I don't want to repeat f in my code as there is no fixed number for my composition, it could change every time. Assume it is my function:
f [va_] := ( va*2);
Composition[f, f][s]
4 s
Composition[f, f, f][s]
8 s
Nest[f, x, 3]
reference.wolfram.com/language/ref/Nest.html $\endgroup$