摘要

In this paper, we propose a collocation method for an initial-boundary value problem of the generalized nonlinear Klein-Gordon equation. It possesses the spectral accuracy in both space and time directions. The numerical results indicate the high accuracy and the stability of long-time calculation of suggested algorithm, even for moderate mode in spatial approximation and big time step sizes. The main idea and techniques developed in this work provide an efficient framework for the collocation method of various nonlinear problems.