sh function

Shannon and Renyi spectral entropy