Saturday, November 15, 2008

Angle between two vectors

If θ is the angle between two vectors,
cos θ = a.b/|a||b|
=> θ = cos-1 (a.b/|a||b|)
In component form
If a = a1i+a2j+a3k and
b= b1i+b2j+b3k


θ = cos-1[(a1b1+a2b2+a3b3)/(SQRT(a1²+a2²+a3²)*SQRT(b1²+b2²+b3²))

No comments: