Extended hyperbolic function method for the (2 +1)-dimensional nonlinear soliton equation