Numerical solution of a nonlinear wave equation in polar coordinates