#17489: remove redundant factorial() from rings/arith.py
-----------------------------+------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------+------------------------
Comment (by rws):
Timing comparison:
* (timeit) 10^3^!: sympy: 3.38 µs, ginac: 11.6 µs, gmp: 11.8 µs, pari:
22.4 µs
* (time) 10^6^!: sympy: 10s, ginac: 200 ms, gmp: 190 ms, pari: 410 ms
Here, sympy caches the result (or the computation), so subsequent calls
with the same argument are fast. In contrast, the other programs always
use 0.2-0.4 seconds per call to factorial(10^6^) so, by wrapping in a
@cached function, they would be as fast as sympy in followup calls.
This clearly shows sympy is not up to it.
--
Ticket URL: <http://trac.sagemath.org/ticket/17489#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.