Contents:
Calculate the partition function for a given temperature. :param temperature: temperature in K :param multiplicities: array/list of multiplicities (e.g. [2,2,8,2]) :param energies: array/list of energies in kJ/mol