- #1
Danatron
- 25
- 0
Hi Guys,
Im working on finding an angle between two vectors.
a [ 1,2,3 ]
b [ 4, -1, 0]
//a// = sqrt(1^2+2^2+3^2) = sqrt14
//b// = sqrt(4^2+(-1)^2+0^2 = sqrt17
Dot product
1.4 + 2.-1 + 3.0 = 2
cos^-1 2/ sqrt14 sqrt17
cos^-1 (1/( ? )
Thanks
Im working on finding an angle between two vectors.
a [ 1,2,3 ]
b [ 4, -1, 0]
//a// = sqrt(1^2+2^2+3^2) = sqrt14
//b// = sqrt(4^2+(-1)^2+0^2 = sqrt17
Dot product
1.4 + 2.-1 + 3.0 = 2
cos^-1 2/ sqrt14 sqrt17
cos^-1 (1/( ? )
Thanks