Math functions for frozen module

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
jk3ger
Posts: 6
Joined: Thu Jun 25, 2020 7:06 am

Math functions for frozen module

Post by jk3ger » Fri Jul 31, 2020 8:13 am

Does anybody know how to use specific math functions from math.h in mpy file.

User avatar
rcolistete
Posts: 352
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Re: Math functions for frozen module

Post by rcolistete » Fri Jul 31, 2020 3:21 pm

My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

jk3ger
Posts: 6
Joined: Thu Jun 25, 2020 7:06 am

Re: Math functions for frozen module

Post by jk3ger » Sat Aug 01, 2020 8:50 am

Seems I should use vectorise.
But my programming skill is not so advanced. I have made a lot of attempts but I have too much compiling mistakes.
How can I add MICROPY_FLOAT_C_FUN(cos)(value) macros into my mpy file?

Post Reply