Skip to content

Commit 81fbf15

Browse files
committed
Merge branch 'add-PartitionsP' of github.com:mathics/Mathics into add-PartitionsP
2 parents 9d36f4d + 7734796 commit 81fbf15

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mathics/builtin/combinatorial.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import math
99
from functools import lru_cache
10-
import sympy
1110
from sympy.functions.combinatorial.numbers import stirling
1211
from mathics.version import __version__ # noqa used in loading to check consistency.
1312

@@ -121,7 +120,7 @@ class PartitionsP(Builtin):
121120
def apply(self, n, evaluation):
122121
"PartitionsP[n_Integer]"
123122

124-
@lru_cache
123+
@lru_cache()
125124
def number_of_partitions(n: int) -> int:
126125
"""Algorithm NumberOfPartitions from Page 67 of Skiena: Implementing
127126
Discrete Mathematics, using Euler's recurrence"""

0 commit comments

Comments
 (0)