Scalar multiplication
Scalar multiplication is a mathematical operation that involves multiplying a scalar (a real number) by a vector, resulting in a new vector. The scalar multiplication of a vector is represented as: c * v = (c * v1, c * v2, c * v3, …, c * vn) where c is the scalar, v is…