HyperMath

Dot

Dot

Previous topic Next topic No expanding text in this topic  

Dot

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The dot product.

Syntax

d = Dot(vec1, vec2)

Arguments

Name

Description

 

vec1

A vector.

 

vec2

A vector.

Output

Name

Description

 

d

The dot product of the two vectors.

Example

Find the dot product of two vectors:

 

Syntax

 

D = Dot([1,2,3],[4,5,6])

 

Result

 

D = 32

Comments

vec1 and vec2 must have the same number of elements.  The result is the sum of the products of the corresponding elements.

See Also:

Cross