In complex analysis, an elliptic function is a meromorphicfunction that is periodic in two directions. Just as a periodic function of a real variable is defined by its values on an interval, an elliptic function is determined by its values on a fundamental parallelogram, which then repeat in a lattice. Such a doubly periodic function cannot be holomorphic, as it would then be a boundedentire function, and by Liouville's theorem every such function must be constant. In fact, an elliptic function must have at least two poles (counting multiplicity) in a fundamental parallelogram, as it is easy to show using the periodicity that a contour integral around its boundary must vanish, implying that the residues of any simple poles must cancel.