In order to calculate the unit vector in the same direction as v, we need to divide vector v by its own magnitude:
For a = 5 and b = -1, we have:
7.6m questions
10.1m answers