Previous Up Next

6.42.2 Normalizing a vector: normalize unitV

The normalize command finds the unit vector in the direction of a given vector.
unitV is a synonym for normalize.


Example.
Input:

normalize([3,4,5])

Output:

⎡
⎢
⎢
⎢
⎢
⎣
3
5 √
2
,
4
5 √
2
,
5
5 √
2
⎤
⎥
⎥
⎥
⎥
⎦

Previous Up Next