goodok/sympy — pull request #3 by smichr (2012-04-23 07:27:43+00:00)
Title: Table

Some misc changes and...

Note: there seems to be a problem with the headings automatic:

```
print latex(TableForm([[0, x**3], ["c", S(1)/4], [sqrt(x), sin(x**2)]],
headings=("automatic", "automatic")))
\begin{tabular}{l l l}
& 1 & 2 \\
\hline
1 & $0$ & $x^{3}$ \\
2 & $c$ & $\frac{1}{4}$ \\
3 & $\sqrt{x}$ & $\sin{\left (x^{2} \right )}$ \\
\end{tabular}

This gives {l l} instead of {l l l}

print latex(TableForm([[0, x**3], ["c", S(1)/4], [sqrt(x), sin(x**2)]],
))
\begin{tabular}{l l}
$0$ & $x^{3}$ \\
$c$ & $\frac{1}{4}$ \\
$\sqrt{x}$ & $\sin{\left (x^{2} \right )}$ \\
\end{tabular}
```