In statistical mechanics, Boltzmann's equation (also known as the Boltzmann–Planck equation) is a probability equation relating the entropy S , also written as S B , of an ideal gas to the multiplicity (commonly denoted as Ω Ω or W ), the number of real microstates corresponding to the gas's macrostate :