well thats what i thought at first simple V*V, but it sounds too simple too me :?ERP said:X*X+Y*Y+Z*Z+W*W
7
DOGMA1138 said:well thats what i thought at first simple V*V, but it sounds too simple to me :?ERP said:X*X+Y*Y+Z*Z+W*W
7
7 is the correct figure.... unless, I suppose, you count MADD as a single FLOP.DOGMA1138 said:well thats what i thought at first simple V*V, but it sounds too simple too me :?ERP said:X*X+Y*Y+Z*Z+W*W
7
Cylindrical?!DemoCoder said:Nope, 6 is the correct number....in cylindrical coordinates!
(r1, z1, t1) . (r2, z2, t2) = r1*r2*cos(t1-t2) + z1*z2
Simon F on Hols said:Cylindrical?!DemoCoder said:Nope, 6 is the correct number....in cylindrical coordinates!
(r1, z1, t1) . (r2, z2, t2) = r1*r2*cos(t1-t2) + z1*z2
How to you encode a vector parallel to the cylinder's axis? Use IEEE's INF??? 8)
X1 = r1 cos(theta1)
X2 = r2 cos(theta2)
Y1 = r1 sin(theta1)
Y2 = r2 sin(theta2)
then V1.V2 in cartesian is
X1 * X2 + Y1*Y2 + Z1*Z2 =
r1*r2*cos(theta1)*cos(theta2) + r1*r2*sin(theta1)*sin(theta2) + Z1*Z2
r1*r2 * (cos(theta1)*cos(theta2) + sin(theta1)*sin(theta2)) + Z1*Z2
r1*r2 * cos(theta1-theta2) + z1*z2
Nah, no reason to have an infinity. If the theta read back isn't a real number, just make it any number (since when this happens the vector will be parallel to the axis, and thus the angle is immaterial).Simon F on Hols said:Cylindrical?!
How to you encode a vector parallel to the cylinder's axis? Use IEEE's INF??? 8)