Probability of the interaction with an atom is calculated taking into account partial cross-sections of atoms of a mixture or a compound.