what is the equation for r when talking about 3 dimension vectors?
If you mean the magnitude of the vector in terms of the x, y and z components, then it is \(r=\sqrt{x^2+y^2+z^2}\)