Hey guys i'm getting this error in my tabular environment, is there something about the tabular environment that I'm missing, it's not a math mode, so I embbed it in an align*, or gather* but it doesn't compile well.
\documentclass[12pt, letterpaper, oneside]{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{tabularx}
\begin{document}
If not compiling, hit ctrl+z on the whole align* environment, leave this sentence, and compile the thing again, and then paste the code and compile it once more.
\begin{align*}
\begin{tabular}{c|cccccc}
& -2 & -1 & 0 & 1 & 2 & 3\\
\hline
q_i & & & 1 & 1 & 3 & 5\\
r_i & 703 & 399 & 304 & 95 & 19 & 0\\
u_i & 1 & 0 & 1 & -1 & 4 & -21\\
v_i & 0 & 1 & -1 & 2 & -7 & 37
\end{tabular}
\end{align*}
\end{document}
Any help will be appreciated :)
tabular
isn't math, and therefore isn't an appropriate candidate for including in any math environment. What is your actual goal? To center the result? If so, use\begin{center}...\end{center}
.