Three-step iterative methods with eighth-order convergence for solving nonlinear equations