This section is devoted to very important practical techniques how to extract submatrices and how to build matrices from smaller matrices. Although all presented examples and codes are applied to matrices from space 𝔽m×n with entries from field 𝔽 (which is either ℤ or ℚ or ℝ or ℂ), all these matrix operations can be extended for abstract matrices where entries could be arbitrary algebraic objects including lists.
(a*b)/c+13*d
\[ {\frac {ab}{c}}+13\,d \]
Manipulations with vectors
Usually, an n-tuple (x₁, x₂, … , xn), written in parenthesis and a row vector [x₁, x₂, … , xn], written in brackets, look as the same object to human eyes. One of the pedagogical virtues of any software package is its requirement to pay close attention to the types of objects used in specific contexts. In particular, the computer algebra system Mathematica treats these two versions of a vector differently because
where x [bold] is a matrix and 𝔽m×n
is read “m by n” indicating dimensions of a (rows by columns) matrix, not m multiplied by n. This denotes the space of m × n matrices with coefficients from field 𝔽.
In Maple, vectors are not just lists of elements. Maple separates the idea of the mathematical object
Vector from the data object Array. Row vector can be defined as follows:
converting n-tuples into row vectors, into columns into diagonal matrix and vice versa
Example 1:
■
End of Example 1
extracting subvector
2) reverse order of entries
3) building subvector with even or odd entries and vector with third values as [1, 3, 6, 9, ..]
4) random entries
Roger:
Making another exanle ?
We can multiply vectors, but the output depends on the irder of the vectors and their dimensions. There known three types of products. We start with the outer product of two vectors of arbitrary dimensions. Since the outer product of two vectors is a rectangular matrix, it does not matter to what space these vectors belong. However, it is convenient to consider one vector as a row, but another as a column.
The outer product (also known as tensor product) of two vectors x ∈ ℝm×1 and y ∈ ℝ1×n is their matrix product whose entries are all products of an element in the first vector with an element from the second vector: