Ask Your Question

Revision history [back]

If you can put it in a matrix m, then latex(m) will give roughly a latex table.

sage: var('x,y,z')
(x, y, z)
sage: latex(matrix([[x*y,x+y,z],[z+y,x-y,x*y*z]]))
\left(\begin{array}{rrr}
x y & x + y & z \\
y + z & x - y & x y z
\end{array}\right)