Ask Your Question
1

Inconsistency in q_analogues?

asked 2016-07-19 14:47:44 -0600

Peter Luschny gravatar image

updated 2016-07-21 06:36:59 -0600

tmonteil gravatar image

In:

from sage.combinat.q_analogues import q_int
from sage.combinat.q_analogues import q_factorial
from sage.combinat.q_analogues import q_binomial
from sage.combinat.q_analogues import q_catalan_number

print q_int(5).parent()
print q_factorial(5).parent()
print q_binomial(3,2).parent()
print q_catalan_number(5).parent()

Out:

Univariate Polynomial Ring in q over Integer Ring
Univariate Polynomial Ring in q over Integer Ring
Univariate Polynomial Ring in q over Integer Ring
Fraction Field of Univariate Polynomial Ring in q over Integer Ring

What is the reason that the q_catalan_numbers have a different type than, say, the q_factorials?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2016-07-20 01:46:22 -0600

FrédéricC gravatar image
edit flag offensive delete link more

Comments

Thanks. I think replacing a / by a // at the right place will fix this.

Peter Luschny gravatar imagePeter Luschny ( 2016-07-20 02:34:57 -0600 )edit

Oh you have done that! Thanks.

Peter Luschny gravatar imagePeter Luschny ( 2016-07-20 02:48:12 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-07-19 14:47:44 -0600

Seen: 35 times

Last updated: Jul 19 '16