A Margules function is a function added to the Raoult's law description of a liquid solution to account for deviations from ideality. See also Margules activity model. A Margules function is a function added to the Raoult's law description of a liquid solution to account for deviations from ideality. See also Margules activity model. The amended Raoult's law description of the vapor pressure above the solution becomes: