TITLE: Set of vectors separated by at least a specified angle
QUESTION [8 upvotes]: Suppose $\theta$ and $d$ are given.
How big can a set of $d$-dimensional vectors be such that no pair of them are at angle less than theta?
I particularly want an upper bound; that is, an $n=n(\theta,d)$ such that given $n$ $d$-dimensional vectors, there must be at least $2$ with angle less than theta between them.
Of course, the question can be rewritten in all sorts of ways, for example, coverings of the surface of the d-dimensional sphere by $(d-1)$-dimensional caps of given radius etc. 
The bound doesn't need to be tight. Something out by a factor of $(constant)^d$ might be fine
(although something more exact would be interesting too).

REPLY [10 votes]: The subject name you are looking for is spherical codes. A good reference for this subject is Conway and Sloane's "Sphere Packings, Lattices, and Groups." In chapter 9 they give the details of the proof for the best bounds (I believe it is due to Levenstein, but don't have the book with me).
This ends up being related to density of sphere packings. There's a very elegant proof in the book which relates the answer to your question in dimension $n+1$ to the maximal density of sphere packing in dimension $n.$
Sorry I don't have my references with me, but this is all in chapter 9 of the book.