use correct expression for max_iter in 2-norm and max-norm cases