Hello,

A map command seems also right :

sage: [f0, f1] = map (lambda n: lambda x: bessel_J(n,x),[0,1]) ; f0(0);f1(0)
1.00000000000000
0.000000000000000

In the command [lambda x: n*x for n in [0..1]] there is a variable n in the for list, and questions about its value (a dalayed evaluation, an immediate assignment, ...)

In the map command there is no variable, n is only the parameter of the outer function,
bug about variables are impossible ;-).

F.

--
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

Reply via email to