if np.any(s < 0):
            raise ValueError('The COS2S spread parameter, S(w), ' +