Difference between revisions of "Multiplication with a scalar"
From Robotics
Line 15: | Line 15: | ||
\end{array}\right] | \end{array}\right] | ||
</math> | </math> | ||
+ | |||
+ | {{Example | ||
+ | |Title=Multiplying a matrix with a scalar | ||
+ | |Contents= | ||
+ | :<math>\begin{align} | ||
+ | \mathbf{A}&=\left[ | ||
+ | \begin{array}{ccc} | ||
+ | 2 & 3 & 0\\ | ||
+ | 4 & 1 & 2\\ | ||
+ | 3 & 1 & 4 | ||
+ | \end{array}\right],\quad c=3\\ | ||
+ | c \cdot\mathbf{A}&=3\cdot\left[\begin{array}{ccc} | ||
+ | 2 & 3 & 0\\ | ||
+ | 4 & 1 & 2\\ | ||
+ | 3 & 1 & 4 | ||
+ | \end{array}\right]\\&= | ||
+ | \left[\begin{array}{ccc} | ||
+ | 3\cdot 2 & 3\cdot 3 & 3\cdot 0\\ | ||
+ | 3\cdot 4 & 3\cdot 1 & 3\cdot 2\\ | ||
+ | 3\cdot 3 & 3\cdot 1 & 3\cdot 4 | ||
+ | \end{array}\right]\\&= | ||
+ | \left[\begin{array}{ccc} | ||
+ | 6 & 9 & 0\\ | ||
+ | 12 & 3 & 6\\ | ||
+ | 9 & 3 & 12 | ||
+ | \end{array}\right] | ||
+ | \end{align}</math> | ||
+ | }} |
Revision as of 16:43, 15 May 2014
← Back: Matrices | Overview: Matrices | Next: The transpose of a matrix → |
A matrix is multiplied with a scalar by multiplying all the components with the scalar. The result is again a matrix:
Example: Multiplying a matrix with a scalar
|