summaryrefslogtreecommitdiff
path: root/macros/plain/contrib/samples/math.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/plain/contrib/samples/math.tex
Initial commit
Diffstat (limited to 'macros/plain/contrib/samples/math.tex')
-rw-r--r--macros/plain/contrib/samples/math.tex37
1 files changed, 37 insertions, 0 deletions
diff --git a/macros/plain/contrib/samples/math.tex b/macros/plain/contrib/samples/math.tex
new file mode 100644
index 0000000000..f8c476dd6f
--- /dev/null
+++ b/macros/plain/contrib/samples/math.tex
@@ -0,0 +1,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