summaryrefslogtreecommitdiff
path: root/macros/plain/contrib/samples/math.tex
blob: f8c476dd6f2c9879ceb2278c1bf8b9ea652d15fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\hoffset=0.4in
\voffset=0.4in
\nopagenumbers
\baselineskip=24pt 
\hsize=5.6in
Mathematicians in many disciplines like to construct rectangular arrays
of formulas that have been arranged in rows and columns; such an array
is called a {\it matrix}. Plain \TeX\ provides control sequences that
make most common types of matrices easy to print.
\vskip 24pt
You can print simple matrices to indicate their product:
$$\left(\matrix{a&b&c\cr
                  d&e&f\cr}\right) \left(\matrix{u&x\cr
                                                 v&y\cr
                                                 w&z\cr}\right).$$
\vskip 24pt
More complex matrices are just as easy to print:
$$A=\left(\matrix{x-\lambda&1&0\cr
                   0&x-\lambda&1\cr
                   0&0&x-\lambda\cr}\right).$$
\vskip 24pt
Even genertic patterned matrices that use ellipses to indicate rows or columns
are simple to set up and print:
$$A=\pmatrix{a_{11}&a_{12}&\ldots&a_{1n}\cr
             a_{21}&a_{22}&\ldots&a_{2n}\cr
             \dots&\vdots&\ddots&\vdots\cr
             a_{m1}&a_{m2}&\ldots&a_{mn}\cr}.$$
\vskip 24pt
Determinants are constructed in much the same way with the same ease:
$$\det\left|\,\matrix{
               c_0&c_1\hfill&c_2\hfill&\ldots&c_n\hfill\cr
               c_1&c_2\hfill&c_3\hfill&\ldots&c_{n+1}\hfill\cr
               c_2&c_3\hfill&c_4\hfill&\ldots&c_{n+2}\hfill\cr
               \,\vdots\hfill&\,\vdots\hfill&\,\vdots\hfill&&\,\vdots\hfill\cr
               c_n&c_{n+1}\hfill&c_{n+2}\hfill&\ldots&c_{2n}\hfill\cr}\right|>
0.$$
\vfill\eject\end