Graphics, Figures & TablesTrigonometric Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Trigonometric Table

Post by metric »

Hi,

I'm preparing a Trig. table in LaTex, that will show the value of respective trig function in radian and degrees.

I want the values to be center aligned (both vert. and horzntly), am unable to get the output, my code for the table is something like...

Code: Select all

\begin{tabular*}{\linewidth}[b]{*{6}{|c @{\extracolsep\fill}}|}
Any suggestions to design a good looking trig. value tables would be of great help.(would prefer if the table cover the width of my page, though not necessary if there are better ways to create the table)

Thanks,
metric

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Trigonometric Table

Post by localghost »

The desired layout of your table demands nothing special. You can read the basics about table construction in lshort. The values for trigonometric function can be found in every textbook about mathematics.

Tables that fit the line width can be done with tabularx. Enhancements to the look are supported by booktabs.


Best regards
Thorsten
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Trigonometric Table

Post by metric »

Thanks for a quick response, I've designed the table that covers the width of my page.

Alignment is something I need to work on as the content are touching the upper line of the table, also the horizonatally the right justified, though i have used c parameter for alignment, my code is

Code: Select all

\subsubsection*{Values of the trigonometric functions for common angles.} 
\begin{tabular*}{\linewidth}[b]{*{6}{|c @{\extracolsep\fill}}|}
\hline  M. of $\angle^s \rightarrow$   &0$^\circ$& 30$^\circ$ & 45$^\circ$ & 60$^\circ$ & 90$^\circ$
\\ $\downarrow$ Ratios of $\angle ^s$ &  &  &  &  & \\ 
\hline $\sin \theta$ & 0 & $\dfrac{1}{2}$ &$\dfrac{1}{\sqrt{2}}$ & $\dfrac{\sqrt{3}}{2}$& 1\\[15pt]
\hline $\cos \theta$ & 1 & $\dfrac{\sqrt{3}}{2}$ &$\dfrac{1}{\sqrt{2}}$ & $\dfrac{1}{2}$& 0\\ 
\hline $\tan \theta$ & 0 & $\dfrac{{1}}{\sqrt{3}}$ &1  & $\sqrt{3}$ & ND\\ 
\hline $\csc\theta$ & ND & 2 &$\sqrt{2}$  & $\dfrac{{2}}{\sqrt{3}}$ & 1 
\\ \hline
 sec $\theta$ & 1 & $\dfrac{{2}}{\sqrt{3}}$ &$\sqrt{2}$  & 2 & ND 
\\ \hline
cot $\theta$ & ND & $\sqrt{3}$ &1 & $\dfrac{{1}}{\sqrt{3}}$ & 0 \\ \hline
\end{tabular*}
Thanks you once again for devoting your time to help me.
metric
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Trigonometric Table

Post by localghost »

I suggest to build your table from scratch by means of the documents a linked in my last reply. Start with a standard tabular environment and a simple definition in its head.

Code: Select all

\begin{table}[!ht]
  \caption{Values of the trigonometric functions for common angles}\label{tab:trigfunc}
  \centering
  \begin{tabular}{l*{5}{|c}|}
    % table contents
  \end{tabular}
\end{table}
Supplement:
I recently stumbled across some code from an older document where I set up a table with trigonometric values. They are written in way to learn them easily by heart. I tweaked the table a little bit to make it look better. A small compilable document is attached. Add the values for the functions you need.
Attachments
trigtable.tex
Source code for a table with the values for the trigonometric functions sin, cos, tan and cot.
(2.44 KiB) Downloaded 574 times
Post Reply