Missing qualification on any() in sinhcosh