The function f(x) takes numerical inputs and multiplies each input by the previous output, wrapping around the domain of the input values.

