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.
Example
Multiply each vector component by the scalar to build the scaled vector.
highlighted = computed this step
Step 1 — Set up
Start with the scalar, vector, and empty product vector.
k=−2,v=3−14,kv=□□□
Step 2 — First component
Scale the first component: -2 * 3 = -6.
(−2)⋅3=−6,kv=-6□□
Step 3 — Second component
Scale the second component: -2 * -1 = 2.
(−2)⋅(−1)=2,kv=−62□
Step 4 — Third component
Scale the third component: -2 * 4 = -8.
(−2)⋅4=−8,kv=−62-8
Step 5 — Result
Read the completed scaled vector.
kv=−62−8
scalar multipleMultiplying by a scalar k stretches or compresses the vector and, when k is negative, reverses its direction. Formally: (k v)[i] = k * v[i].