mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[python] Enable math.factorial (#141)
This commit is contained in:
@@ -181,6 +181,7 @@ Q(exp)
|
|||||||
Q(expm1)
|
Q(expm1)
|
||||||
Q(extend)
|
Q(extend)
|
||||||
Q(fabs)
|
Q(fabs)
|
||||||
|
Q(factorial)
|
||||||
Q(filter)
|
Q(filter)
|
||||||
Q(find)
|
Q(find)
|
||||||
Q(float)
|
Q(float)
|
||||||
|
|||||||
@@ -82,6 +82,12 @@
|
|||||||
// Whether to provide special math functions: math.{erf,erfc,gamma,lgamma}
|
// Whether to provide special math functions: math.{erf,erfc,gamma,lgamma}
|
||||||
#define MICROPY_PY_MATH_SPECIAL_FUNCTIONS (1)
|
#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
|
// Whether to provide "cmath" module
|
||||||
#define MICROPY_PY_CMATH (1)
|
#define MICROPY_PY_CMATH (1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user