Self-explanatory title. I'm new to LaTeX and this table looks pretty ugly.
\documentclass[letterpaper]{article}
\special{papersize=8.5in,11in}
\usepackage{indentfirst}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{gensymb}
\usepackage[margin=1in]{geometry}
\setlength{\parskip}{1em}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|c|ccccc|}
\hline
& $0$ & $\frac{\pi}{6}$ & $\frac{\pi}{4}$ & $\frac{\pi}{6}$
& $\frac{\pi}{2}$ \\
\hline
$\sin x$ & $0$ & $\frac{1}{2}$ & $\frac{\sqrt{2}}{2}$ &
$\frac{\sqrt{3}}{2}$ & $1$ \\
$\cos x$ & $1$ & $\frac{\sqrt{3}}{2}$ & $\frac{\sqrt{2}}{2}$ & $\frac{1}{2}$ & $0$ \\
$\tan x$ & $0$ & $\frac{\sqrt{3}}{3}$ & $1$ & $\sqrt{3}$ & \\
\hline
\end{tabular}
\end{table}
\end{document}
Thank you.
Best Answer
I'd keep it as simple as possible.
I use
array
to simplify the input (no$
necessary except around the array). With\addlinespace
we can easily separate the lines. With a larger value of\arraycolsep
we better separate the columns for ease of reading in this particular case.