Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

factorial(n) is not known to be at least n for a nonnegative integer n #13616

Open
pelegm opened this issue Nov 17, 2017 · 4 comments
Open

factorial(n) is not known to be at least n for a nonnegative integer n #13616

pelegm opened this issue Nov 17, 2017 · 4 comments

Comments

@pelegm
Copy link
Contributor

pelegm commented Nov 17, 2017

Continuing the line of #9115 and #9150:

>>> n = Symbol('n', integer=True, nonnegative=True)
>>> factorial(n) >= n
factorial(n) >= n
@himanshukgp
Copy link
Contributor

I understand that python is printing string. It should compare and give boolean. I saw through previous issues but couldn't figure where to look in the code to bring required result. Please guide me through it. Thankyou

@ManasGupta1998
Copy link

I feel the problem we are encountering is that n is a symbol type parameter whereas factorial(n) returns factorial type which python is unable to compare.

@asmeurer
Copy link
Member

I'm not sure if this is something that should evaluate automatically.

@pelegm
Copy link
Contributor Author

pelegm commented Nov 24, 2017

OK, but it should at least be evaluated upon request, somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants