I'd like to spread the definition of a large multivariate symbolic function across several input lines (because it will eventually end up on a piece of paper - how quaint). Here is a simple example you can drop on a command line, or put into a two-line cell in the notebook without the triple dots, but physically on two lines.
T(r, t) = [r^2, ... t^2] Preparser cannot handle the continuation: File "<ipython console>", line 1 __tmp__=var("r,t"); T = symbolic_expression([r**Integer(2),).function(r,t) Workaround: outputs = [r^2, t^2] T(r, t) = outputs But if you start with this, the symbolic variables are not declared when you form the list - you lose some preparser magic. So it needs to become: r, t = var('r, t') outputs = [r^2, ... t^2] T(r, t) = outputs Not intolerable for a huge example, but it would be nice to just have a one-statement, multiple-continuation version possible. Any better workarounds? Any hope the preparser could be extended to handle this sort of thing? 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