Pair potentials are very common in physics and computational chemistry and biology; exceptions are very rare. An example of a potential energy function that is not a pair potential is the three-body Axilrod-Teller potential. Another example is the Stillinger-Weber potential for silicon, which includes the angle in a triangle of silicon atoms as an input parameter.