Thanks,
I can get the partition function; but I can't derive the formula for the Gibbs function. I can get the Helmholtz function from the canonical ensemble partition function by comparing the terms in dE with the thermodynamic terms in dU while holding N constant.
dE=sum (EndPn) +sum...
I am trying to make the connection from statistical mechanics to thermodynamics for the isothermal isobaric ensemble. Partition function = (sum of)exp(-BEj-gamma*Vj).
I have followed T.L. Hill [Statistical Mechanics, p. 67] but can not understand how he justifies dE=(sum of)EdP, rather than...