Computer extension and analytic continuation of Stokes’ expansion for gravity waves