Thanks for the quick response, but I'm not sure you understand my question: I can do one matrix at a time, I want the entire equation displayed on one line in matrix form. I can do that cutting and pasting the latex representations, and then displaying them with %latex, but that would require a seperate cell (as far as I know).
On Mar 28, 11:38 am, Jason Grout <[EMAIL PROTECTED]> wrote: > Marshall Hampton wrote: > > Hi, > > > I have a simple task I'd like to do, and I suspect that someone out > > there already knows how to do it: > > I'd like to display a matrix factorization using jsmath/latex. For > > example, if I do something like > > > import scipy.linalg > > my_mat = matrix(RR,2,2,[1,0,1,1]) > > u,s,vh = scipy.linalg.svd(my_mat.numpy()) > > > I would like to display the matrix factorization my_mat = u s vh > > (with the jsmath/latex version of the matrices instead of their > > names). This is for an interact example > > (seehttp://wiki.sagemath.org/interact, > > the singular value decomposition example) so I don't want to use a > > seperate cell starting with %latex. > > Try: > > sage: show(matrix(u)) > > sage: jsmath(matrix(u)) # This doesn't work and should probably be filed > as a bug. > > sage: latex(matrix(u)) > > sage: pretty_print_default(true) > sage: matrix(u) > > sage: # Click the "Typeset" checkbox at the top of the worksheet > sage: matrix(u) > > sage: pretty_print(matrix(u)) > > Note that > > sage: matrix(s) > > using the above code also doesn't work. It should be noted as a bug, > probably. > > Is that enough ways? Did I miss any? > > Thanks, > > Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---