Go to the first, previous, next, last section, table of contents.

Vector Tutorial Exercise 1

Duplicate the vector, compute its length, then divide the vector by its length: RET A /.

1:  [1, 2, 3]  2:  [1, 2, 3]      1:  [0.27, 0.53, 0.80]  1:  1.
    .          1:  3.74165738677      .                       .
                   .

    r 1            RET A              /                       A

The final A command shows that the normalized vector does indeed have unit length.


Go to the first, previous, next, last section, table of contents.