I have a function, nS[f_, xk_], which takes as arguments a function f and a vector xk. It works perfectly when I use it on its own.
nS[t, {1, 0, 0}]
{0.664063, 0.417969, 0.}
But when I try to use Nest, for some reason it won't evaluate the function:
Nest[nS, {t, {1, 0, 0}}, 1]
nS[{t, {1, 0, 0}}]
And if I increase the iterations on Nest I just get nS[nS[nS[...]]].
nS[{t_, list_}] := nS[t, list], your problem right now is that you have nothing defined fornS[{...}]onlynS[..]. – C. E. May 08 '15 at 23:19nSlater for more repetitions. – Kuba May 09 '15 at 00:00