Residues can be vectorised, which is nice for calculating the residues for an array of modes all at once