We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d36f4d + 7734796 commit 81fbf15Copy full SHA for 81fbf15
1 file changed
mathics/builtin/combinatorial.py
@@ -7,7 +7,6 @@
7
8
import math
9
from functools import lru_cache
10
-import sympy
11
from sympy.functions.combinatorial.numbers import stirling
12
from mathics.version import __version__ # noqa used in loading to check consistency.
13
@@ -121,7 +120,7 @@ class PartitionsP(Builtin):
121
120
def apply(self, n, evaluation):
122
"PartitionsP[n_Integer]"
123
124
- @lru_cache
+ @lru_cache()
125
def number_of_partitions(n: int) -> int:
126
"""Algorithm NumberOfPartitions from Page 67 of Skiena: Implementing
127
Discrete Mathematics, using Euler's recurrence"""
0 commit comments