From 9fa5ac0acfbaba15e84dddf71bdd5c62f8467a4f Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Wed, 8 Nov 2017 18:10:07 +0100 Subject: [PATCH] [python] Use the extended math functions --- python/port/genhdr/qstrdefs.in.h | 13 +++++++++++++ python/port/mpconfigport.h | 1 + 2 files changed, 14 insertions(+) diff --git a/python/port/genhdr/qstrdefs.in.h b/python/port/genhdr/qstrdefs.in.h index 8c23b40a9..a5b61e426 100644 --- a/python/port/genhdr/qstrdefs.in.h +++ b/python/port/genhdr/qstrdefs.in.h @@ -106,13 +106,16 @@ Q(_percent__hash_x) Q(_star_) Q(abs) Q(acos) +Q(acosh) Q(all) Q(any) Q(append) Q(args) Q(asin) +Q(asinh) Q(atan) Q(atan2) +Q(atanh) Q(bin) Q(bool) Q(bound_method) @@ -132,6 +135,7 @@ Q(const) Q(copy) Q(copysign) Q(cos) +Q(cosh) Q(count) Q(degrees) Q(dict) @@ -141,9 +145,12 @@ Q(divmod) Q(e) Q(end) Q(endswith) +Q(erf) +Q(erfc) Q(eval) Q(exec) Q(exp) +Q(expm1) Q(extend) Q(fabs) Q(find) @@ -155,6 +162,7 @@ Q(frexp) Q(from_bytes) Q(fromkeys) Q(function) +Q(gamma) Q(generator) Q(get) Q(getattr) @@ -189,10 +197,13 @@ Q(key) Q(keys) Q(ldexp) Q(len) +Q(lgamma) Q(list) Q(little) Q(locals) Q(log) +Q(log10) +Q(log2) Q(lower) Q(lstrip) Q(map) @@ -232,6 +243,7 @@ Q(sep) Q(setattr) Q(setdefault) Q(sin) +Q(sinh) Q(sort) Q(sorted) Q(split) @@ -246,6 +258,7 @@ Q(strip) Q(sum) Q(super) Q(tan) +Q(tanh) Q(throw) Q(to_bytes) Q(trunc) diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index 9202d04d0..4d033b011 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -46,6 +46,7 @@ #define MICROPY_PY_ATTRTUPLE (0) #define MICROPY_PY_COLLECTIONS (0) #define MICROPY_PY_MATH (1) +#define MICROPY_PY_MATH_SPECIAL_FUNCTIONS (1) #define MICROPY_PY_CMATH (1) #define MICROPY_PY_IO (0) #define MICROPY_PY_STRUCT (0)