Thermodynamic Integration Discrete Systems Math