We have the following behaviour:
sage: var('a b')
sage: binomial(a,b)
binomial(a, b)
sage: q_binomial(a,b)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call
last)

/home/martin/martin/TeXSource/CyclicSieving/<ipython console> in
<module>()

/home/martin/SAGE/local/lib/python2.6/site-packages/sage/combinat/q_analogues.pyc
in q_binomial(n, k, p)
     77     """
     78 
---> 79     return
q_factorial(n,p)/(q_factorial(k,p)*q_factorial(n-k,p))
     80 
     81 

/home/martin/SAGE/local/lib/python2.6/site-packages/sage/combinat/q_analogues.pyc
in q_factorial(n, p)
     58         p^3 + 2*p^2 + 2*p + 1
     59     """
---> 60     return prod([q_int(i,p) for i in range(1, n+1)])
     61 
     62 def q_binomial(n,k,p=None):

TypeError: range() integer end argument expected, got 
sage.symbolic.expression.Expression.

Would it make sense to allow symbolic arguments for q-analogues, too?

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to