From dbdfee15a1839858b4d12f352b2e34597e6e76e9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 17 Apr 2014 17:11:03 +0100 Subject: py: Add cmath module, for complex math. Disabled by default. Not all functions implemented. Not enabled on pyboard. --- py/builtintables.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py/builtintables.c') diff --git a/py/builtintables.c b/py/builtintables.c index 6bdae2400..c4c96ed35 100644 --- a/py/builtintables.c +++ b/py/builtintables.c @@ -139,6 +139,9 @@ STATIC const mp_map_elem_t mp_builtin_module_table[] = { #if MICROPY_ENABLE_FLOAT { MP_OBJ_NEW_QSTR(MP_QSTR_math), (mp_obj_t)&mp_module_math }, +#if MICROPY_ENABLE_MOD_CMATH + { MP_OBJ_NEW_QSTR(MP_QSTR_cmath), (mp_obj_t)&mp_module_cmath }, +#endif #endif #if MICROPY_ENABLE_MOD_SYS { MP_OBJ_NEW_QSTR(MP_QSTR_sys), (mp_obj_t)&mp_module_sys }, -- cgit v1.2.3