What do you think about the format % operator :

add([var("x%02d" % k) for k in [0..11]]) # creates 11 variables x00 to x11, and adds it
v1=vector ([var("x%02d" % k) for k in [0..11]])
v2=vector ([var("x%02d" % k) for k in [0..11]])
v1==v2 # is true.


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