Free undamped linear oscillations of a sagging cable and a discrete chain