Linear Algebra Refresher /w Python
Points written as (x,y,z)
Vectors written as βxyzββ
Magnitude and Direction:
3βDimensions
β₯vβ₯=vx2β+vy2β+vz2ββ
nβDimensions
β₯vβ₯=v12β+v22β+v32β+....+vn2ββ
Normalization: process of finding a unit vector in the same direction as a given vector
β₯vβ₯1βv=unitΒ vectorΒ inΒ directionΒ ofΒ v
Example:
vβ₯vβ₯uβ=ββ111ββ=(β1)2+(1)2+(1)2β=3β=β₯vβ₯1βv=3β1βββ111ββ=ββ1/3β1/3β1/3ββββ
β£uβ£β=(3ββ1β)2+(3β1β)2+(3β1β)2β=31β+31β+31ββ=1β