An initial value problem for the motion of a ship moving with constant mean velocity in an arbitrary seaway