lambda is a special word in python, it indicates a type of one-line function definition. Using any other word should work.
See: http://groups.google.com/group/sage-support/browse_thread/thread/728f27989ff87203/4b08aaaed8309cbc?q=sage+support+lambda for a similar discussion. For more on lambda functions (very useful by the way) see: http://diveintopython.org/power_of_introspection/lambda_functions.html -Andy On Dec 2, 5:05 am, Roger Mason <[email protected]> wrote: > Hello, > > I wish to define some variables thus: > > sage: x, y, lambda = var('x,y,lambda') > > but sage says: > > File "<ipython console>", line 1 > x, y, lambda = var('x,y,lambda') > ^ > SyntaxError: invalid syntax > > Is this because the last symbol consists of more than one character? > I'm using sage 4.6, compiled from source on T2 linux. > > Thanks, > Roger -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
