[python] Enable math.factorial (#141)

This commit is contained in:
Yaya-Cout
2022-02-02 22:18:04 +01:00
committed by GitHub
parent 1a546e011b
commit 814e2dee06
2 changed files with 7 additions and 0 deletions

View File

@@ -181,6 +181,7 @@ Q(exp)
Q(expm1)
Q(extend)
Q(fabs)
Q(factorial)
Q(filter)
Q(find)
Q(float)

View File

@@ -82,6 +82,12 @@
// Whether to provide special math functions: math.{erf,erfc,gamma,lgamma}
#define MICROPY_PY_MATH_SPECIAL_FUNCTIONS (1)
// Whether to provide math.factorial function
#define MICROPY_PY_MATH_FACTORIAL (1)
// Whether math.factorial is large, fast and recursive (1) or small and slow (0).
#define MICROPY_OPT_MATH_FACTORIAL (0)
// Whether to provide "cmath" module
#define MICROPY_PY_CMATH (1)