First time here? Check out the FAQ!

Ask Your Question
1

Inconsistency in q_analogues?

asked 8 years ago

Peter Luschny gravatar image

updated 2 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 8 years ago

FrédéricC gravatar image
Preview: (hide)
link

Comments

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

Peter Luschny gravatar imagePeter Luschny ( 8 years ago )

Oh you have done that! Thanks.

Peter Luschny gravatar imagePeter Luschny ( 8 years ago )

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: 8 years ago

Seen: 762 times

Last updated: Jul 19 '16