Vectors and Matrices
Scalar Multiplication
Multiply every component of a vector by a scalar k. Each multiplication is one step; the sign of k controls whether the direction reverses. The state panel shows each scaled component as it is computed.
scalar multiple
Multiplying by a scalar k stretches or compresses the vector and, when k is negative, reverses its direction. Formally: (k v)[i] = k * v[i].