On Aug 20, 12:30 pm, William Stein <wst...@gmail.com> wrote: > Since you mention "InputForm[]", I can't help but mention Sage's > analogue of that (written by Carl Witty), which is called > "sage_input":
After posting, I knew I should have done a modicum of research first. Thanks for the reminder about sage_input(). > sage: a = random_matrix(QQ,4) > sage: sage_input(a) > matrix(QQ, [[0, 1, -1, 1/2], [0, -1, -2, 0], [0, 0, 2, 0], [1, 0, -1, 2]]) Maybe I will extend it to (optionally) produce matrix(QQ, [[0, 1, -1, 1/2], ... [0, -1, -2, 0], ... [0, 0, 2, 0], ... [1, 0, -1, 2]]) for quick-and-easy cut-and-paste into doctests, etc. Rob -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org