add equation for general entropy