I'm having a hard time to insert a table here when I'm asking a question. Any help would be appreciated. Also, is there any, not too expensive, math programs that allow me to enter math terms and equations kind of thing?

Thank you


| |

Regarding how to write general math expressions on the site, my answer here covers that well I think.

Specifically for tables, you can use LaTeX's \array command. The tabular command, which only works in text mode, is not available here, so if you want to include text in your table, you will have to do some tinkering. Here is an example table:

 & \text{Column A} & \text{Column B} \\ \hline
\text{Row 1} & 5 & \oplus \\ \hline
\text{Row 2} & \int & 8 \\ \hline


$$\begin{array}{c|c|c|} & \text{Column A} & \text{Column B} \\ \hline \text{Row 1} & 5 & \oplus \\ \hline \text{Row 2} & \int & 8 \\\hline \end{array}$$

| |
  • 10
    $\begingroup$ +1 Great example! I adapted it to display $$\begin{array}{|c|c|c|}\hline&\zeta (3)&\zeta (2)\\ \hline\sigma&3+4\ln(1+4\sqrt{2})& 2+5\ln\left(\dfrac{1+\sqrt{5}}{2}\right)\\ \hline\tau&-3+4\ln(1+\sqrt{2})&-2+5\ln\left(\dfrac{1+\sqrt{5}}{2}\right)\\ \hline\mu=1+\dfrac{\sigma}{\tau}& \dfrac{8\ln(1+\sqrt{2})}{4\ln(1+\sqrt{2})-3}&\dfrac{10 \ln \left(\dfrac{1+\sqrt{5}}{2}\right)}{5 \ln\left(\dfrac{1+\sqrt{5}}{2}\right)-2}\\ \hline \end{array}$$ $\endgroup$ – Américo Tavares May 18 '12 at 0:24
  • $\begingroup$ +1 Thanks. I had to try it out on one of my answers. Sorry about the bump. $\endgroup$ – Jyrki Lahtonen May 18 '12 at 10:45
  • $\begingroup$ Somehow, it doesn't work anymore... $\endgroup$ – An old man in the sea. Aug 21 at 12:10

Since my example given in a comment to Zev Chonoles's answer and adapted from it, due to some reason, does not display properly now, I repeat it here.

$$\begin{array}{|c|c|c|}\hline&\zeta (3)&\zeta (2)\\\hline\sigma&3+4\ln(1+4\sqrt{2})&2+5\ln\left(\dfrac{1+\sqrt{5}}{2}\right)\\\hline\tau&-3+4\ln(1+\sqrt{2})&-2+5\ln\left(\dfrac{1+\sqrt{5}}{2}\right)\\\hline\mu=1+\dfrac{\sigma}{\tau}&\dfrac{8\ln(1+\sqrt{2})}{4\ln(1+\sqrt{2})-3}&\dfrac{10\ln\left(\dfrac{1+\sqrt{5}}{2}\right)}{5\ln\left(\dfrac{1+\sqrt{5}}{2}\right)-2}\\\hline\end{array}$$

It is produced by

$$\begin{array}{|c|c|c|} \hline &\zeta (3)&\zeta (2)\\ \hline \sigma&3+4\ln(1+4\sqrt{2})&2+5\ln\left(\dfrac{1+\sqrt{5}}{2}\right)\\ \hline \tau&-3+4\ln(1+\sqrt{2})&-2+5\ln\left(\dfrac{1+\sqrt{5}}{2}\right)\\ \hline \mu=1+\dfrac{\sigma}{\tau}&\dfrac{8\ln(1+\sqrt{2})}{4\ln(1 \sqrt{2})-3}& \dfrac{10\ln\left(\dfrac{1+\sqrt{5}}{2}\right)} {5\ln\left(\dfrac{1+\sqrt{5}}{2}\right)-2}\\ \hline \end{array}$$

| |
  • 1
    $\begingroup$ Amusingly, without even first looking at your post, I noticed that your comment had broken and then proceeded to fix it, figuring that it's the same problem I was having here. Should I rebreak it? $\endgroup$ – Zev Chonoles Jun 5 '12 at 13:13
  • $\begingroup$ That or perhaps better you could add a short comment explaining how you have fixed it. $\endgroup$ – Américo Tavares Jun 5 '12 at 13:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .