Scalar Product and Magnitude of Vectors