I have a list which has the number of n.
list={x1,x2,x3,x4,x5,...xn}
when I use these elements as arguments of a function f[x],
I want to express function with iteration which is similar to NestList
.
According to the value of n, the arguments of the function are determined by the rule below.
Any ideas for this? Thanks.
n
where do the other arguments come from? For example, ifn = 2
the list is{x1, x2}
but you say thatf
should bef(x1, x2, x3)
. Where doesx3
come from? $\endgroup$