MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the formula for calculating the angle between two vectors?
A
B
C
D
Explanation: 

Detailed explanation-1: -The formula for the angle between two vectors, a and b is =cos-1( a•b/|a||b|). Where vector a is (ax ay) and vector b is (bx by), the dot product a. b=ax b x+ a y by. The magnitude of the vector |a|=√(ax2+ay2) and the magnitude of the vector |b|=√(bx2+by2).

Detailed explanation-2: -Cosine of Angle Between Two Vectors So, the cosine of the angle between two vectors can be calculated by dividing the dot product of the vectors by-product of their magnitudes.

There is 1 question to complete.