summaryrefslogtreecommitdiff
path: root/info/mathtrip/src/table.tex
blob: 32fd3e2734be4363009ffa3e99fef77c94e27830 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%This command provides the text for the table of trigonometric values
%in the second column of page 4
%
%The macro has one parameter:
%         1) The width of the text
\newcommand\TFourTrigTable[1]{%
   \parbox[t]{#1}{%
      \DisplaySpace{\TFourDisplaySpace}{\TFourDisplayShortSpace}%
      \TFourTrigTableFontSize
       \def\LineOfArray##1##2##3##4##5{%
             \rule{0pt}{3.7ex plus .5ex minus .5ex}{##1}\text{,}&{##2}\text{,}&%
                                                   {##3}\text{,}&{##4}\text{,}&{##5}\\}
       \centerline{$\begin{array}{l@{\hspace{.1em plus .05em minus .05em}}%
                      l@{\hspace{.1em plus .05em minus .05em}}%
                      l@{\hspace{.1em plus .05em minus .05em}}%
                      l@{\hspace{.1em plus .05em minus .05em}}%
                      l}
          \LineOfArray{\sin{0}=0}%
                      {\sin{\frac{\pi}{6}}=\frac{1}{2}}%
                      {\sin{\frac{\pi}{4}}=\frac{\sqrt{2}}{2}}%
                      {\sin{\frac{\pi}{3}}=\frac{\sqrt{3}}{2}}%
                      {\sin{\frac{\pi}{2}}=1}
          %
          \LineOfArray{\cos{0}=1}%
                      {\cos{\frac{\pi}{6}}=\frac{\sqrt{3}}{2}}%
                      {\cos{\frac{\pi}{4}}=\frac{\sqrt{2}}{2}}%
                      {\cos{\frac{\pi}{3}}=\frac{1}{2}}%
                      {\cos{\frac{\pi}{2}}=0}
          %
          \LineOfArray{\tan{0}=1}%
                      {\tan{\frac{\pi}{6}}=\frac{\sqrt{3}}{3}}%
                      {\tan{\frac{\pi}{4}}=1}%
                      {\tan{\frac{\pi}{3}}=\sqrt{3}}%
                      {\tan{\frac{\pi}{2}}=\infty}
        \end{array}$}
%      \def\LineOfArray##1##2##3##4##5##6{\rule{0pt}{3ex plus .5ex minus .5ex}%
%                                         {##1}&{##2}&{##3}&{##4}&{##5}&{##6}\\}%
%      \[
%          \begin{array}{llllll}
%          \LineOfArray{\theta}{0}{\frac{\pi}{6}}{\frac{\pi}{4}}
%                      {\frac{\pi}{3}}{\frac{\pi}{2}}\hline
%           \LineOfArray{\sin \theta}{0}{\frac{1}{2}}{\frac{\sqrt{2}}{2}}
%                       {\frac{\sqrt{3}}{2}}{1}
%          \LineOfArray{\cos \theta}{1}{\frac{\sqrt{3}}{2}}
%                      {\frac{\sqrt{2}}{2}}{\frac{1}{2}}{0}
%          \LineOfArray{\tan \theta}{0}{\frac{\sqrt{3}}{3}}
%                      {1}{\sqrt{3}}{\infty}
%         \end{array}
%      \]
%Transposed version
%      \begin{DisplayFormulae}{1}{0pt}{0pt}{\BigChar}{\StyleWithoutNumber}%
%         \def\LineOfArray##1##2##3##4{\rule{0pt}{1.8ex plus .5ex minus 1.5ex}%
%                                      {##1}&{##2}&{##3}&{##4}\\}%
%         
%         \Fm{\begin{array}{cccc}
%               \LineOfArray{\theta}{\sin \theta}{\cos \theta}{\tan \theta}\hline
%               \LineOfArray{0}{0}{1}{0}
%               \LineOfArray{\frac{\pi}{6}}{\frac{1}{2}}{\frac{\sqrt{3}}{2}}{\frac{\sqrt{3}}{3}}
%               \LineOfArray{\frac{\pi}{4}}{\frac{\sqrt{2}}{2}}{\frac{\sqrt{2}}{2}}{1}
%               \LineOfArray{\frac{\pi}{3}}{\frac{\sqrt{3}}{2}}{\frac{1}{2}}{\sqrt{3}}
%               \LineOfArray{\frac{\pi}{2}}{1}{0}{\infty}
%             \end{array}%
%            }%
%      \end{DisplayFormulae}%
   }
}