On Aug 20, 4:28 am, Jason Grout <jason-s...@creativetrax.com> wrote: > Robert Bradshaw wrote: > > > It's just syntactic sugar. > > To see what Sage transforms something like this into, you can use the > preparse function: > > sage: preparse('f(y,z)=y^2+z') > '__tmp__=var("y,z"); f = symbolic_expression(y**Integer(2)+z).function(y,z)' > > So the variables are first declared with var(), then the expression is > constructed, and then the .function() method is called.
Ah, that's very useful, thanks! --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---