Dot and cross products

Dot Product: The dot product of two vectors is a scalar quantity that measures the degree of similarity between them. The dot product of two vectors A and B is defined as: A · B = |A| |B| cos(θ) where |A| and |B| are the magnitudes of the vectors A and B, respectively, and θ…