Hi Stan,

You should use Python's list comprehensions to do that:

sage: f = 2*x^3+1
sage: v = [1,2,3]
sage: [f(x=a) for a in v]
[3, 17, 55]

or you could do

sage: map(f, v)
[3, 17, 55]

--Mike

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to