Check out image.
Printable View
Check out image.
If variabkes a and b are 1, then yes
Basically I want to know how I would solve this.........(some 3d vector magnitude stuff).........
Is this code the same as.........
|A|=sqrt(Ax^2+Ay^2+Az^2) ?
/EDIT/
Could I have written it this way?
I don't know what you were trying to do with the first slide.. but yeah, the magnitude of a vector is the squareroot of the sum of the squares of the components of the vector.
In the first one, I was just trying to make a point........So essentially just to make sure in the second image that I put is the same as this |A|=sqrt(Ax^2+Ay^2+Az^2)?
/EDIT/ I am just trying to see how to work with subscripts and their meanings.
Yeah but you know what? If it was higher math we could argue about it.
Well, Ax (A sub x) is in x direction..
in your program, as long as Ax (AX or Ax) represents
a magnitude in x direction, you can even name it
as Akillax ... it's just naming.
also, whenever you say Ax ^2 , it generally means (A sub x)^2
[A sub x whole square]
Squaring of x doesn't make sense as x (in this case) refers to a quantity along x axis.
Mod A i.e.
|A| = sqrt [(Qty along X)^2 + (Qty along y)^2 + (Qty along z)^2]
So you have to square the magnitude (i.e. A) along x, y and z.
in other words, You shouldn't square x, y and z but the different values of A along x, y and z axes.
example:
A = 7x+ 3y + 4z
|A|= squarerootof (7^2 + 3^2 + 4^2)
MY HOMEPAGE @ www.akilla.tk