Text this: A formula to calculate the spectral radius of a compact linear operator