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(algorithm=...) does not work as claimed #17489
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Timing comparison:
This clearly shows sympy is not up to it, EDIT: and this ticket will speed up many computations 2x. |
comment:3
Replying to @rwst:
In fact, the So, there will be no speed changes with this ticket. This, however, means also that the problem with passing |
comment:4
It looks like #9240 abandoned GiNaC behaviour for |
Author: Ralf Stephan |
Commit: |
comment:7
If you no longer use the |
comment:8
Replying to @jdemeyer:
Sure? It is used by the |
comment:9
If it's only used by doctests, it's not used :-) |
comment:10
Replying to @jdemeyer:
And remove the doctest? In the same file there are more such wrappers: |
comment:12
Also, instead of removing the factorial function from |
Reviewer: Jeroen Demeyer |
comment:15
Replying to @jdemeyer:
Not possible because only the first message is printed. I removed the doctests.
Any import of |
comment:16
This is overly complicated:
Why not
Also: the |
This comment has been minimized.
This comment has been minimized.
Author: Ralf Stephan |
comment:47
Jeroen, are you still reviewer of this ticket? New commits:
|
Commit: |
Changed commit from |
comment:48
I think we are coming to the conclusion that functions with additional keywords (other than |
Changed branch from u/rws/factorial_algorithm______does_not_work_as_claimed to none |
Dependencies: #24178 |
Changed author from Ralf Stephan to none |
comment:50
The issue was moot because the |
comment:51
closing positively reviewed duplicates |
It's a defect because the
reference/misc/sage/rings/arith.html
documentation makes users expect thealgorithm
keyword to work butAs the implementation of the algorithm keyword in symbolic function seems difficult (#17531) as pragmatic solution would be to accept that for algorithm to work the arith version of factorial must be explicitly called, see #19461 comment:9 for the general argument.
The
rings
version apparently gets overwritten on import and thefunction/
does not accept/transfer thealgorithm
keyword.Depends on #24178
CC: @kcrisman @nthiery
Component: symbolics
Keywords: integer symbolic function
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/17489
The text was updated successfully, but these errors were encountered: