Iterated Application

The nn-th iterated application of a single-argument function ff is the function that, applied to value xx, returns fn(x)f^n(x), that is, f(f(...f(x)...))f(f(...f(x)...)), where ff is applied nn times. Zero applications of ff correspond to the identity function (as usual, zero repetitions of anything correspond to a neutral element). Write a function iterated_appl(f,n)iterated\_appl(f, n) that returns the nn-th iterated application of ff. The value of nn will be a non-negative integer, and ff is expected to take floats to floats.

Problem information

Author: Jordi Delgado & José Luis Balcázar

Generation: 2026-01-25T16:58:05.394Z

© Jutge.org, 2006–2026.
https://jutge.org