function final = iterate(func, init, num)
final = init;
for k = 1:num
    final = func(final);
end