Is there a better way to do this w/out creating a function?

def Binomial_Vector(n):
    return [binomial(n,i) for i in range(n+1)]

Binomial_Vector(5)
  [1, 5, 10, 10, 5, 1]

In particular, what Python goodness could I add to the
sage.rings.arith binomial def to accomplish this?

    binomial(5).all()
or
    list(binomial(5))

Thanks!

/n/


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