in mathematics, the dot product is an operation that takes two vectors as input, and that returns a scalar number as output. the number returned is dependent on the length of both vectors, and on the angle between them. the name is derived from the centered dot "·" that is often used to designate this operation; the alternative name scalar product emphasizes the scalar (rather than vector) nature of the result.