In mathematics , the dot product , or scalar product ( or sometimes inner product in the context of Euclidean space ) , is an algebraic operation that takes two equal-length sequences of numbers ( usually coordinate vectors ) and returns a single number .
In mathematics , the dot product is an operation that takes two vectors as input , and that returns a scalar number as output .