LaTeX was designed for typesetting. If you're going to use it for mathematical calculation too then you should consider the sagetex package. It's using the power of a computer algebra system SAGE allows you to calculations and plot and place them anywhere you want. In the case of tables you can have Sage typeset them for you (as in the example below) which saves a lot of time and eliminates mistakes. The sagetex package requires you to have access to Sage. You can get that through a free Sagemath Cloud account or you can install Sage locally on your computer.
\documentclass[12pt]{article}
\usepackage{sagetex}
\usepackage[margin=.5in]{geometry}
\begin{document}
\pagestyle{empty}
\begin{sagesilent}
var('x')
f(x) = sin(x*pi/180.)
g(x) = cos(x*pi/180.)
h(x) = tan(x*pi/180.)
m(x) = tan(x)
output = ""
output += r"\begin{tabular}{ccccccccc} "
output += r" degrees & sine & cosine & tangent & & degrees & sine & cosine & tangent \\ \hline "
for i in range(1, 5):
output += r"%d & %8.4f & %8.4f & %8.4f & & %d & %8.4f & % 8.4f & %12.4f \\ "%(i, f(i), g(i), h(i), i+45, f(i+45), g(i+45), h(i+45))
output += r"\end{tabular}"
\end{sagesilent}
\begin{center}
\sagestr{output}
\end{center}
You can do the traditional table entering data cell by cell:\\
\begin{tabular}{c|c|c}
$\sage{f(45).n(digits=5)}$ & $\sage{cos(pi/3).n(digits=4)}$ & $\sage{log(8,2).n(digits=4)}$\\
\hline
$\sage{ln(7).n(digits=4)}$ & $\sage{m(pi/3).n(digits=4)}$ & $\sage{exp(2).n(digits=5)}$\\
\end{tabular}
Or you can do calculations inline:
What's the value of $e^{5}$? It's $\sage{(e^5)}$. That's not helpful.
What is it as a decimal? It's $\sage{(e^5).n(digits=8)}$.
What's $\log_2(8)$? It's $\sage{log(8,2)}$.
\end{document}
Here is a screenshot of the code running in Sagemath Cloud:

Note that the for loop beginning with
for i in range(1, 5):
produces 4 lines of the table because i must be less than the last number. You can change 5 to a bigger number and have Sage create the table for you.
minimalclass be avoided?. – Peter Grill Nov 22 '14 at 20:52standaloneclass was the wanted result. – Togh Nov 22 '14 at 20:57