Status: Accepted Owner: ---- Labels: Type-Defect Priority-High Milestone-Release0.6.4
New issue 1326 by ondrej.certik: 10**1000000 takes Python forever to construct http://code.google.com/p/sympy/issues/detail?id=1326 If you apply this trivial patch: $ git diff diff --git a/sympy/core/tests/test_numbers.py b/sympy/core/tests/test_numbers.py index b43ff0b..5c49878 100644 --- a/sympy/core/tests/test_numbers.py +++ b/sympy/core/tests/test_numbers.py @@ -174,7 +174,7 @@ def test_powers(): assert integer_nthroot(2,10**10) == (1, False) assert integer_nthroot(10**(500*500), 500) == (10**500, True) - assert integer_nthroot(10**1000000, 100000) == (10**10, True) + #assert integer_nthroot(10**1000000, 100000) == (10**10, True) p, r = integer_nthroot(int(factorial(10000)), 100) assert p % (10**10) == 5322420655 assert not r you speedup tests of sympy/core from 5.27s to 2.64s. And by applying: $ git diff diff --git a/sympy/core/tests/test_numbers.py b/sympy/core/tests/test_numbers.py index b43ff0b..c27deaa 100644 --- a/sympy/core/tests/test_numbers.py +++ b/sympy/core/tests/test_numbers.py @@ -173,8 +173,8 @@ def test_powers(): assert integer_nthroot(c2-1, 2) == (c-1, False) assert integer_nthroot(2,10**10) == (1, False) - assert integer_nthroot(10**(500*500), 500) == (10**500, True) - assert integer_nthroot(10**1000000, 100000) == (10**10, True) + #assert integer_nthroot(10**(500*500), 500) == (10**500, True) + #assert integer_nthroot(10**1000000, 100000) == (10**10, True) p, r = integer_nthroot(int(factorial(10000)), 100) assert p % (10**10) == 5322420655 assert not r it goes down to 1.03s. So let's move these tests out of the core. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---
