A new piecewise reproducing kernel function algorithm for solving nonlinear Hamiltonian systems. (February 2023)