Ask Your Question
1

Inconsistency in q_analogues?

asked 2016-07-19 21:47:44 +0200

Peter Luschny gravatar image

updated 2023-01-10 00:01:10 +0200

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 08:46:22 +0200

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 09:34:57 +0200 )edit

Oh you have done that! Thanks.

Peter Luschny gravatar imagePeter Luschny ( 2016-07-20 09:48:12 +0200 )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 21:47:44 +0200

Seen: 382 times

Last updated: Jul 19 '16