[texhax] table of equations issue

burlen burlen at apollo.sr.unh.edu
Mon May 7 14:19:20 CEST 2007


Hi I am reposting this with the code...

I have a problem re a table of equations. The table is something like 
{|l|l|l|} with \hlines between each row. The | between columns aren't 
connecting rows... the only go partially up from the lower \hline 
leaving a break between their top and the upper \hline. Anyone ever 
encounter this/ know how to fix?
here is the code


\documentclass{article}
\newcommand   {\fn}       [1]  { \hat{f}_{#1}  }
\newcommand   {\dd  }     [2]  { \frac{\partial #1}{ \partial #2 } }
\begin{document}
\[
\begin{array}{|l|l|l|}
\hline \\
                                                              & {\mathbf 
\fn{i+1/2}}   &  {\mathbf \Delta x \dd{f(u)}{x} \approx }  \\
\hline \\

\mbox{\bf \footnotesize $\mathbf 1^{st}$ order} \footnotemark & 
f(u_{i+1})             &  f_{i+1} - f_{i} \\
\hline \\

\mbox{\bf \footnotesize Lax-Wendroff} \footnotemark           & 
\frac{1}{2}(f_{i+1}+f_i)-\frac{\lambda(a_{i+1/2})^2}{2}(u_{i+1}-u_i)
                                               & 
\frac{1}{2}(f_{i+1}-f_{i-1}) - \frac{\lambda a^2}{2}( u_{i-1} - 2u_i + 
u_{i+1} ) \\
\hline \\

\mbox{\bf \footnotesize Rusanov} \footnotemark                & 
\frac{1}{2}(f_i + f_{i+1}) - \frac{1}{4}(\alpha_i + 
\alpha_{i+1})(u_{i+1}-u_{i})
                                               & \frac{1}{2}(f_{i+1} - 
f_{i-1}) - \frac{\alpha}{2}( u_{i-1} - 2u_i + u_{i+1} )\\
\hline \\

\mbox{\bf \footnotesize Zalesak $\mathbf 4^{th}$ order}       & 
\frac{7}{12}(f_i + f_{i+1}) - \frac{1}{12}(f_{i-1} + f _{i+2})
                                               & \frac{1}{12}(f_{i-2} - 
8f_{i-1} - 8 f_{i+1} - f_{i+2} ) \\
\hline
\end{array}
\]
\end{document}

-- 


More information about the texhax mailing list