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:
1.6m questions
2.0m answers