In mathematics , the dot product is an algebraic operation that takes two equal-length sequences of numbers ( usually coordinate vectors ) and returns a single number obtained by multiplying corresponding entries and adding up those products . In mathematics , the dot product is an algebraic operation that takes two equal-length sequences of numbers ( usually coordinate vectors ) and returns a single number obtained by multiplying corresponding entries and then summing those products .