- #1
helpm3pl3ase
- 79
- 0
I am stuck on a problem.. I keep obtaining the incorrect answer and I am unsure of where my calculation went wrong? I have the 2 vectors v1 [4,0,3] and v2 [25,0,-25]
I first obtain (1/||v1||)v1 = [4/5 0 3/5] = z1
I then proceed to do: (v2 - (z1 . v2)z1)/||v2 - (z1 . v2)|| = [25 0 -25] - 5 [4/5 0 3/5] = [25 0 -25] + [-4 0 -3] = [21 0 -28] = u2
then 1/||u2|| = sqrt(21^2 + 0^2 + -28^2) = 35
So i should get (1/35)[25 0 -25]
But in the book it shows the correct answer to be:
(1/5)[3 0 -4]?? I don't see where I went wrong.. I went over it several times.. I just must be missing something??
I first obtain (1/||v1||)v1 = [4/5 0 3/5] = z1
I then proceed to do: (v2 - (z1 . v2)z1)/||v2 - (z1 . v2)|| = [25 0 -25] - 5 [4/5 0 3/5] = [25 0 -25] + [-4 0 -3] = [21 0 -28] = u2
then 1/||u2|| = sqrt(21^2 + 0^2 + -28^2) = 35
So i should get (1/35)[25 0 -25]
But in the book it shows the correct answer to be:
(1/5)[3 0 -4]?? I don't see where I went wrong.. I went over it several times.. I just must be missing something??